Changeset 5760 for code/trunk/src/modules/questsystem/QuestGUI.h
- Timestamp:
- Sep 22, 2009, 12:44:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestGUI.h
r5748 r5760 60 60 virtual ~QuestGUI(); 61 61 62 void update(void); //!< Update the GUI. 62 63 CEGUI::Window* getGUI(void); //!< Get the root CEGUI Window of the GUI. 63 void update(void); //!< Update the GUI. 64 65 CEGUI::Window* getWindow(void); //!< Get a CEGUI Window to use. 66 void giveWindow(CEGUI::Window* window); //!< Return a no longer needed CEGUI Window for reuse. 67 68 static QuestGUINode* findNode(CEGUI::Window* window); //!< Finde the QuestGUINode belonging to the input CEGUI Window. 64 69 65 70 /** … … 75 80 inline CEGUI::Window* getRootWindow(void) 76 81 { return this->rootWindow_; } 77 78 CEGUI::Window* getWindow(void); //!< Get a CEGUI Window to use.79 void giveWindow(CEGUI::Window* window); //!< Return a no longer needed CEGUI Window for reuse.80 81 82 /** 82 83 @brief Retreive the player. … … 85 86 inline PlayerInfo* getPlayer(void) 86 87 { return this->player_; } 87 88 static QuestGUINode* findNode(CEGUI::Window* window); //!< Finde the QuestGUINode belonging to the input CEGUI Window.89 88 90 89 private: … … 93 92 94 93 void clear(void); //!< Clear the QuestGUI. 95 96 PlayerInfo* player_; //!< The player that owns the GUI.97 CEGUI::WindowManager* windowManager_; //!< The CEGUI WindowManager. //TODO: needed?98 CEGUI::Window* rootWindow_; //!< The root CEGUI Window of the GUI.99 94 100 95 QuestGUINode* root_; //!< An empty QuestGUINode being the parent of all otherwise parent-less nodes. 96 97 CEGUI::WindowManager* windowManager_; //!< The CEGUI WindowManager. 98 CEGUI::Window* rootWindow_; //!< The root CEGUI Window of the GUI. 99 PlayerInfo* player_; //!< The player that owns the GUI. 100 101 101 std::map<CEGUI::Window*, QuestGUINode*> nodes_; //!< A list of all QuestGUINodes, ordered by their respective CEGUI Windows. 102 102 std::list<CEGUI::Window*> windows_; //!< A list of windows to be used.
Note: See TracChangeset
for help on using the changeset viewer.