- Timestamp:
- Nov 12, 2008, 1:29:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/QuestManager.h
r2159 r2191 47 47 /** 48 48 @brief 49 Is a static class and manages quests, by registering every quest/hint (through registerX()) and making them globally accessable (through findX()).50 Quests (and Hints) are registered in the QuestManager with their id, and can be accessed in the same way.49 Is a static class and manages Quests, by registering every Quest/QuestHint (through registerX()) and making them globally accessable (through findX()). 50 Quests (and QuestHints) are registered in the QuestManager with their id, and can be accessed in the same way. 51 51 @author 52 52 Damian 'Mozork' Frick … … 59 59 virtual ~QuestManager(); 60 60 61 static bool registerQuest(Quest* quest); //!< Registers a quest in the QuestManager.61 static bool registerQuest(Quest* quest); //!< Registers a Quest in the QuestManager. 62 62 static bool registerHint(QuestHint* quest); //!< Registers a QuestHint in the QuestManager. 63 63 64 static Quest* findQuest(const std::string & questId); //!< Returns the quest with the input id.64 static Quest* findQuest(const std::string & questId); //!< Returns the Quest with the input id. 65 65 static QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id. 66 66 67 67 private: 68 static std::map<std::string, Quest*> questMap_s; //!< All quests registered by their id's.69 static std::map<std::string, QuestHint*> hintMap_s; //!< All hints registered by their id's.68 static std::map<std::string, Quest*> questMap_s; //!< All Quests registered by their id's. 69 static std::map<std::string, QuestHint*> hintMap_s; //!< All QuestHints registered by their id's. 70 70 71 71 };
Note: See TracChangeset
for help on using the changeset viewer.