- Timestamp:
- Oct 30, 2008, 9:52:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/AddQuestHint.cc
r2021 r2068 28 28 29 29 #include "core/CoreIncludes.h" 30 #include "util/Exception.h" 30 31 31 32 #include "QuestManager.h" … … 66 67 @param player 67 68 The player. 69 @return 70 Returns true if the effect was successfully invoked. 68 71 */ 69 voidAddQuestHint::invoke(Player* player)72 bool AddQuestHint::invoke(Player* player) 70 73 { 71 QuestHint* hint = QuestManager::findHint(this->hintId_); 72 hint->activate(player); 74 if(player == NULL) 75 { 76 COUT(2) << "The input player is NULL." << std::endl; 77 return false; 78 } 79 80 try 81 { 82 QuestHint* hint = QuestManager::findHint(this->hintId_); 83 if(!hint->activate(player)) 84 { 85 return false; 86 } 87 } 88 catch(const Exception& e) 89 { 90 COUT(2) << e.getFullDescription() << std::endl; 91 return false; 92 } 93 94 return true; 95 73 96 } 74 97 }
Note: See TracChangeset
for help on using the changeset viewer.