Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2009, 8:04:51 PM (16 years ago)
Author:
rgrieder
Message:

Moved GUIManager::getLevelList to LevelManager because the GUIManager has nothing to do with levels.
I also had to change the way the information flows: Instead of operation on the Lua state, you tell the LevelManager to compile the list and then get the elements one by one.
The reason for this change is simple: There is no way to know from which LuaState the call came (without making an ugly hack in Tolua itself).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/orxonox/gui/GUIManager.h

    r3338 r3339  
    4747#include "core/input/InputHandler.h"
    4848
    49 // tolua_begin
    5049namespace orxonox
    5150{
     
    6160        Those input events are then injected into CEGUI in Lua.
    6261    */
    63     class _OrxonoxExport GUIManager
    64 // tolua_end
    65         : public InputHandler
    66 // tolua_begin
     62    class _OrxonoxExport GUIManager : public InputHandler
    6763    {
    68 // tolua_end
    6964    public:
    7065        GUIManager(Ogre::RenderWindow* renderWindow);
     
    7873        void setCamera(Ogre::Camera* camera);
    7974
    80         static GUIManager& getInstance()    { assert(singletonRef_s); return *singletonRef_s; } // tolua_export
     75        static GUIManager& getInstance()    { assert(singletonRef_s); return *singletonRef_s; }
    8176        static GUIManager* getInstancePtr() { return singletonRef_s; }
    8277
    83         void getLevelList(); //tolua_export
    84 
    8578    private:
    86         GUIManager(const GUIManager& instance);                 //!< private constructor (this is a singleton class)
     79        GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class)
    8780
    8881        void loadLuaCode();
     
    108101        static GUIManager*       singletonRef_s;    //!< Singleton reference to GUIManager
    109102
    110     }; // tolua_export
    111 } // tolua_export
     103    };
     104}
    112105
    113106#endif /* _GUIManager_H__ */
Note: See TracChangeset for help on using the changeset viewer.