Changeset 6440
- Timestamp:
- Jan 3, 2010, 3:55:39 PM (15 years ago)
- Location:
- code/branches/gamestate/src/modules/questsystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/src/modules/questsystem/QuestManager.cc
r6417 r6440 235 235 CEGUI::Window* QuestManager::getQuestGUI(const std::string & guiName) 236 236 { 237 PlayerInfo* player = this->retr eivePlayer(guiName);237 PlayerInfo* player = this->retrievePlayer(guiName); 238 238 239 239 if(this->questGUIs_.find(player) == this->questGUIs_.end()) //!< Create a new GUI, if there is none, yet. … … 253 253 This very well might be outdated. So: Check if still needed, and update if necessary. 254 254 */ 255 PlayerInfo* QuestManager::retr eivePlayer(const std::string & guiName)255 PlayerInfo* QuestManager::retrievePlayer(const std::string & guiName) 256 256 { 257 257 PlayerInfo* player = GUIManager::getInstance().getPlayer(guiName); -
code/branches/gamestate/src/modules/questsystem/QuestManager.h
r6417 r6440 52 52 /** 53 53 @brief 54 Is a Singleton and manages Quests, by registering every Quest/QuestHint (through registerX()) and making them globally access able (through findX()).54 Is a Singleton and manages Quests, by registering every Quest/QuestHint (through registerX()) and making them globally accessible (through findX()). 55 55 Quests (and QuestHints) are registered in the QuestManager with their id, and can be accessed in the same way. 56 56 @author … … 72 72 static QuestManager& getInstance() { return Singleton<QuestManager>::getInstance(); } // tolua_export 73 73 74 //! Retr eive the main window for the GUI.74 //! Retrieve the main window for the GUI. 75 75 CEGUI::Window* getQuestGUI(const std::string & guiName); // tolua_export 76 76 … … 82 82 83 83 protected: 84 std::map<std::string, Quest*> & getQuests(void); //!< Retr eive all Quests.84 std::map<std::string, Quest*> & getQuests(void); //!< Retrieve all Quests. 85 85 86 86 private: 87 87 static QuestManager* singletonPtr_s; 88 PlayerInfo* retr eivePlayer(const std::string & guiName); //!< Retrieve the player for a certain GUI.88 PlayerInfo* retrievePlayer(const std::string & guiName); //!< Retrieve the player for a certain GUI. 89 89 90 90 std::map<std::string, Quest*> questMap_; //!< All Quests registered by their id's.
Note: See TracChangeset
for help on using the changeset viewer.