Changeset 2022
- Timestamp:
- Oct 27, 2008, 8:55:56 PM (16 years ago)
- Location:
- code/branches/questsystem/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/CMakeLists.txt
r2021 r2022 76 76 objects/QuestHint.cc 77 77 objects/QuestItem.cc 78 objects/QuestManager.cc 78 79 79 80 tolua/tolua_bind.cc -
code/branches/questsystem/src/orxonox/objects/QuestManager.cc
r2021 r2022 57 57 bool QuestManager::registerQuest(Quest* quest) 58 58 { 59 this->questMap_.insert ( pair<std::string,Quest>(quest->getId(),quest) );59 questMap_.insert( std::pair<std::string,Quest*>(quest->getId(),quest) ); 60 60 return true; 61 61 } … … 71 71 bool QuestManager::registerHint(QuestHint* hint) 72 72 { 73 this->hintMap_.insert ( pair<std::string,Hint>(hint->getId(),hint) );73 hintMap_.insert ( std::pair<std::string,QuestHint*>(hint->getId(),hint) ); 74 74 return true; 75 75 } … … 88 88 { 89 89 Quest* quest; 90 std::map<std::string, Quest*>::iterator it = this->questMap_.find(questId);91 if (it != this->questMap_.end())90 std::map<std::string, Quest*>::iterator it = questMap_.find(questId); 91 if (it != questMap_.end()) 92 92 { 93 quest = &(it->second);93 quest = it->second; 94 94 } 95 95 else … … 113 113 Throw exceptopns in case of errors. 114 114 */ 115 QuestHint* QuestManager::findHint(const std::string & hintId) const115 QuestHint* QuestManager::findHint(const std::string & hintId) 116 116 { 117 117 QuestHint* hint; 118 std::map<std::string, QuestHint*>::iterator it = this->hintMap_.find(hintId);119 if (it != this->hintMap_.end())118 std::map<std::string, QuestHint*>::iterator it = hintMap_.find(hintId); 119 if (it != hintMap_.end()) 120 120 { 121 hint = &(it->second);121 hint = it->second; 122 122 } 123 123 else
Note: See TracChangeset
for help on using the changeset viewer.