Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2009, 11:53:47 AM (15 years ago)
Author:
scheusso
Message:

Added return to Game button to InGameMenu
MainMenu button now requests mainmenu gamestate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ingamemenu/src/libraries/core/Game.h

    r5929 r6019  
    5858#define DeclareGameState(className, stateName, bIgnoreTickTime, bGraphicsMode) \
    5959    static bool BOOST_PP_CAT(bGameStateDummy_##className, __LINE__) = orxonox::Game::declareGameState<className>(#className, stateName, bIgnoreTickTime, bGraphicsMode)
    60 
     60// tolua_begin
    6161namespace orxonox
    6262{
     63// tolua_end
    6364    class GameConfiguration;
    6465
     
    7879        You should only create this singleton once because it owns the Core class! (see remark there)
    7980    */
    80     class _CoreExport Game : public Singleton<Game>
     81// tolua_begin
     82    class _CoreExport Game
     83        : public Singleton<Game>
    8184    {
     85// tolua_end
    8286        friend class Singleton<Game>;
    8387        typedef std::vector<shared_ptr<GameState> > GameStateVector;
     
    9599        void stop();
    96100
    97         void requestState(const std::string& name);
    98         void requestStates(const std::string& names);
    99         void popState();
     101        static Game& getInstance(){ return Singleton<Game>::getInstance(); } // tolua_export
     102
     103        void requestState(const std::string& name); //tolua_export
     104        void requestStates(const std::string& names); //tolua_export
     105        void popState(); //tolua_export
    100106
    101107        const Clock& getGameClock() { return *this->gameClock_; }
     
    183189        static std::map<std::string, GameStateInfo> gameStateDeclarations_s;
    184190        static Game* singletonPtr_s;        //!< Pointer to the Singleton
    185     };
     191    }; //tolua_export
    186192
    187193    template <class T>
     
    209215        return true;
    210216    }
    211 }
     217} //tolua_export
    212218
    213219#endif /* _Game_H__ */
Note: See TracChangeset for help on using the changeset viewer.