Changeset 2963 for code/trunk/src/orxonox/objects/quest/QuestManager.h
- Timestamp:
- May 10, 2009, 11:41:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
r2960 r2963 38 38 39 39 #include <map> 40 #include <list> 40 41 #include <string> 41 42 42 43 #include "core/OrxonoxClass.h" 43 44 #include "orxonox/objects/infos/PlayerInfo.h" 45 #include "overlays/GUIOverlay.h" 44 46 45 47 // tolua_begin 46 48 namespace orxonox 47 49 { 48 // tolua_end49 50 50 struct RootQuest 51 struct QuestContainer; 52 struct HintContainer; 53 54 struct QuestContainer 51 55 { 52 Quest* quest; 53 RootQuest* next; 56 const QuestDescription* description; 57 HintContainer* hint; 58 QuestContainer* subQuests; 59 QuestContainer* next; 54 60 }; 55 61 56 // tolua_begin 62 struct HintContainer 63 { 64 const QuestDescription* description; 65 HintContainer* next; 66 }; 67 57 68 /** 58 69 @brief … … 80 91 QuestHint* findHint(const std::string & hintId); //!< Returns the QuestHint with the input id. 81 92 82 RootQuest* getQuests(const PlayerInfo & player);93 QuestContainer* getQuestTree(std::string & name); // tolua_export 83 94 84 95 static void toggleQuestGUI(void); //!< Opens the GUI. … … 91 102 std::map<std::string, QuestHint*> hintMap_; //!< All QuestHints registered by their id's. 92 103 104 void getRootQuests(const PlayerInfo* player, std::list<Quest*> & list); 105 void addHints(QuestContainer* container, Quest* quest, const PlayerInfo* player); 106 void addSubQuests(QuestContainer* container, Quest* quest, const PlayerInfo* player); 107 93 108 }; // tolua_export 94 109
Note: See TracChangeset
for help on using the changeset viewer.