- Timestamp:
- Aug 11, 2009, 12:27:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libraries/src/orxonox/objects/quest/QuestManager.h
r3370 r5617 92 92 QuestContainer* getQuestTree(std::string & name); // tolua_export 93 93 94 inline void setPlayer(const std::string& guiname, PlayerInfo* player) 95 { this->players_[guiname] = player; } 96 inline PlayerInfo* getPlayer(const std::string& guiname) const 97 { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : 0; } 98 94 99 private: 95 100 static QuestManager* singletonPtr_s; … … 97 102 std::map<std::string, Quest*> questMap_; //!< All Quests registered by their id's. 98 103 std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's. 104 std::map<std::string, PlayerInfo*> players_; //!< Stores the player (owner) for each gui 99 105 100 106 void getRootQuests(const PlayerInfo* player, std::list<Quest*> & list);
Note: See TracChangeset
for help on using the changeset viewer.