Changeset 2960 for code/trunk
- Timestamp:
- May 10, 2009, 11:56:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
r2911 r2960 41 41 42 42 #include "core/OrxonoxClass.h" 43 #include "orxonox/objects/infos/PlayerInfo.h" 43 44 45 // tolua_begin 44 46 namespace orxonox 45 47 { 48 // tolua_end 49 50 struct RootQuest 51 { 52 Quest* quest; 53 RootQuest* next; 54 }; 55 56 // tolua_begin 46 57 /** 47 58 @brief … … 51 62 Damian 'Mozork' Frick 52 63 */ 53 class _OrxonoxExport QuestManager : public OrxonoxClass 64 class _OrxonoxExport QuestManager 65 // tolua_end 66 : public OrxonoxClass 67 // tolua_begin 54 68 { 69 // tolua_end 55 70 public: 56 71 QuestManager(); 57 72 virtual ~QuestManager(); 58 73 59 static QuestManager& getInstance(); // !< Returns a reference to the single instance of the Quest Manager.74 static QuestManager& getInstance(); // tolua_export //!< Returns a reference to the single instance of the Quest Manager. 60 75 61 76 bool registerQuest(Quest* quest); //!< Registers a Quest in the QuestManager. … … 65 80 QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id. 66 81 82 RootQuest* getQuests(const PlayerInfo & player); 83 84 static void toggleQuestGUI(void); //!< Opens the GUI. 85 67 86 private: 68 87 static QuestManager* singletonRef_s; 88 static bool GUIOpen; 69 89 70 90 std::map<std::string, Quest*> questMap_; //!< All Quests registered by their id's. 71 91 std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's. 72 92 73 }; 93 }; // tolua_export 74 94 75 } 95 } // tolua_export 76 96 77 97 #endif /* _QuestManager_H__ */
Note: See TracChangeset
for help on using the changeset viewer.