Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 22, 2009, 12:44:05 PM (16 years ago)
Author:
dafrick
Message:

Some cleanup und resolved TODO's in questsystem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/questsystem/QuestGUI.h

    r5748 r5760  
    6060            virtual ~QuestGUI();
    6161
     62            void update(void); //!< Update the GUI.
    6263            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.
    6469
    6570            /**
     
    7580            inline CEGUI::Window* getRootWindow(void)
    7681                { 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 
    8182            /**
    8283            @brief Retreive the player.
     
    8586            inline PlayerInfo* getPlayer(void)
    8687                { return this->player_; }
    87 
    88             static QuestGUINode* findNode(CEGUI::Window* window); //!< Finde the QuestGUINode belonging to the input CEGUI Window.
    8988   
    9089        private:
     
    9392
    9493            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.
    9994
    10095            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
    101101            std::map<CEGUI::Window*, QuestGUINode*> nodes_; //!< A list of all QuestGUINodes, ordered by their respective CEGUI Windows.
    102102            std::list<CEGUI::Window*> windows_; //!< A list of windows to be used.
Note: See TracChangeset for help on using the changeset viewer.