Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2009, 4:52:37 PM (15 years ago)
Author:
scheusso
Message:

merged menu branch to presentation2 branch with some additional fixes and features ;)

Location:
code/branches/presentation2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2

  • code/branches/presentation2/src/libraries/core/Game.h

    r6121 r6150  
    5959#define DeclareGameState(className, stateName, bIgnoreTickTime, bGraphicsMode) \
    6060    static bool BOOST_PP_CAT(bGameStateDummy_##className, __LINE__) = orxonox::Game::declareGameState<className>(#className, stateName, bIgnoreTickTime, bGraphicsMode)
    61 
     61// tolua_begin
    6262namespace orxonox
    6363{
     64// tolua_end
     65
    6466    //! Helper object required before GameStates are being constructed
    6567    struct GameStateInfo
     
    7779        You should only create this singleton once because it owns the Core class! (see remark there)
    7880    */
    79     class _CoreExport Game : public Singleton<Game>, public OrxonoxClass
    80     {
     81// tolua_begin
     82    class _CoreExport Game
     83// tolua_end
     84        : public Singleton<Game>, public OrxonoxClass
     85    { // tolua_export
    8186        friend class Singleton<Game>;
    8287        typedef std::vector<shared_ptr<GameState> > GameStateVector;
     
    95100        void run();
    96101        void stop();
    97 
    98         void requestState(const std::string& name);
    99         void requestStates(const std::string& names);
    100         void popState();
     102        void keyESC();
     103
     104        static Game& getInstance(){ return Singleton<Game>::getInstance(); } // tolua_export
     105
     106        void requestState(const std::string& name); //tolua_export
     107        void requestStates(const std::string& names); //tolua_export
     108        void popState(); //tolua_export
    101109
    102110        const Clock& getGameClock() { return *this->gameClock_; }
     
    188196        static std::map<std::string, GameStateInfo> gameStateDeclarations_s;
    189197        static Game* singletonPtr_s;        //!< Pointer to the Singleton
    190     };
     198    }; //tolua_export
    191199
    192200    template <class T>
     
    214222        return true;
    215223    }
    216 }
     224} //tolua_export
    217225
    218226#endif /* _Game_H__ */
Note: See TracChangeset for help on using the changeset viewer.