- Timestamp:
- Sep 15, 2010, 7:29:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/effects/CompleteQuest.cc
r7401 r7456 28 28 29 29 /** 30 @file 30 @file CompleteQuest.cc 31 31 @brief Implementation of the CompleteQuest class. 32 32 */ … … 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/XMLPort.h" 38 39 #include "questsystem/Quest.h" 38 40 #include "questsystem/QuestManager.h" 39 #include "questsystem/Quest.h"40 41 41 42 namespace orxonox … … 58 59 CompleteQuest::~CompleteQuest() 59 60 { 61 60 62 } 61 63 … … 81 83 bool CompleteQuest::invoke(PlayerInfo* player) 82 84 { 83 if(player == NULL) //!< You know, what we think of NULL-pointers... 85 //TODO: Replace with assert? 86 if(player == NULL) // You know, what we think of NULL-pointers... 84 87 { 85 88 COUT(2) << "Input player is NULL." << std::endl; … … 95 98 quest = QuestManager::getInstance().findQuest(this->getQuestId()); 96 99 if(quest == NULL || !quest->complete(player)) 97 {98 100 return false; 99 }100 101 } 101 102 catch(const Exception& e)
Note: See TracChangeset
for help on using the changeset viewer.