Changeset 6150 for code/branches/presentation2/src/libraries/core/Game.h
- Timestamp:
- Nov 25, 2009, 4:52:37 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2
- Property svn:mergeinfo changed
/code/branches/ingamemenu (added) merged: 6003,6018-6020,6022-6023 /code/branches/menu (added) merged: 5941,5944,5952,6024,6032,6036,6047-6049,6051,6145-6146,6148
- Property svn:mergeinfo changed
-
code/branches/presentation2/src/libraries/core/Game.h
r6121 r6150 59 59 #define DeclareGameState(className, stateName, bIgnoreTickTime, bGraphicsMode) \ 60 60 static bool BOOST_PP_CAT(bGameStateDummy_##className, __LINE__) = orxonox::Game::declareGameState<className>(#className, stateName, bIgnoreTickTime, bGraphicsMode) 61 61 // tolua_begin 62 62 namespace orxonox 63 63 { 64 // tolua_end 65 64 66 //! Helper object required before GameStates are being constructed 65 67 struct GameStateInfo … … 77 79 You should only create this singleton once because it owns the Core class! (see remark there) 78 80 */ 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 81 86 friend class Singleton<Game>; 82 87 typedef std::vector<shared_ptr<GameState> > GameStateVector; … … 95 100 void run(); 96 101 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 101 109 102 110 const Clock& getGameClock() { return *this->gameClock_; } … … 188 196 static std::map<std::string, GameStateInfo> gameStateDeclarations_s; 189 197 static Game* singletonPtr_s; //!< Pointer to the Singleton 190 }; 198 }; //tolua_export 191 199 192 200 template <class T> … … 214 222 return true; 215 223 } 216 } 224 } //tolua_export 217 225 218 226 #endif /* _Game_H__ */
Note: See TracChangeset
for help on using the changeset viewer.