Changeset 8841
- Timestamp:
- Aug 14, 2011, 10:10:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/modules/questsystem/QuestManager.cc
r8839 r8841 35 35 36 36 #include "util/Exception.h" 37 #include "util/OrxAssert.h" 37 38 #include "util/ScopedSingletonManager.h" 38 39 #include "core/command/ConsoleCommand.h" … … 99 100 bool QuestManager::registerQuest(Quest* quest) 100 101 { 101 assert(quest); 102 if(quest == NULL) 103 { 104 COUT(1) << "Quest pointer is NULL." << endl; 105 return false; 106 } 102 107 103 108 std::pair<std::map<std::string, Quest*>::iterator,bool> result; … … 137 142 bool QuestManager::registerHint(QuestHint* hint) 138 143 { 139 assert(hint); 144 if(hint == NULL) 145 { 146 COUT(1) << "Hint pointer is NULL." << endl; 147 return false; 148 } 140 149 141 150 std::pair<std::map<std::string, QuestHint*>::iterator,bool> result; … … 365 374 Quest* QuestManager::getParentQuest(Quest* quest) 366 375 { 376 OrxAssert(quest, "The input Quest is NULL."); 367 377 return quest->getParentQuest(); 368 378 } … … 378 388 QuestDescription* QuestManager::getDescription(Quest* item) 379 389 { 390 OrxAssert(item, "The input Quest is NULL."); 380 391 return item->getDescription(); 381 392 } … … 391 402 QuestDescription* QuestManager::getDescription(QuestHint* item) 392 403 { 404 OrxAssert(item, "The input QuestHint is NULL."); 393 405 return item->getDescription(); 394 406 } … … 404 416 const std::string QuestManager::getId(Quest* item) const 405 417 { 418 OrxAssert(item, "The input Quest is NULL."); 406 419 return item->getId(); 407 420 } … … 417 430 const std::string QuestManager::getId(QuestHint* item) const 418 431 { 432 OrxAssert(item, "The input QuestHint is NULL."); 419 433 return item->getId(); 420 434 }
Note: See TracChangeset
for help on using the changeset viewer.