Changeset 6536 for code/trunk/src/modules/questsystem
- Timestamp:
- Mar 16, 2010, 11:22:36 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gamestate (added) merged: 6430-6432,6437,6439-6440
- Property svn:mergeinfo changed
-
code/trunk/src/modules/questsystem/QuestManager.cc
r6417 r6536 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/trunk/src/modules/questsystem/QuestManager.h
r6417 r6536 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.