Changeset 2996 for code/branches/netp3/src/core/Game.h
- Timestamp:
- May 20, 2009, 4:13:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/core/Game.h
r2946 r2996 43 43 #include "OrxonoxClass.h" 44 44 45 #define AddGameState(classname, name) \ 46 static bool MACRO_CONCATENATE(bGameStateDummy_##classname, __LINE__) = orxonox::Game::addGameState(new classname(name)) 45 /** 46 @def 47 Adds a new GameState to the Game. The second parameter is the name as string 48 and every following paramter is a constructor argument (which is usually non existent) 49 */ 50 #define AddGameState(classname, ...) \ 51 static bool MACRO_CONCATENATE(bGameStateDummy_##classname, __LINE__) = orxonox::Game::addGameState(new classname(__VA_ARGS__)) 47 52 48 53 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.