Changeset 5789 for sandbox_light/src/orxonox
- Timestamp:
- Sep 26, 2009, 12:44:49 AM (15 years ago)
- Location:
- sandbox_light/src/orxonox
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_light/src/orxonox/CMakeLists.txt
r5782 r5789 26 26 SET_SOURCE_FILES(ORXONOX_SRC_FILES 27 27 Main.cc 28 GSRoot.cc29 28 ) 30 29 31 30 ORXONOX_ADD_LIBRARY(orxonox 32 31 FIND_HEADER_FILES 32 TOLUA_FILES 33 Main.h 33 34 DEFINE_SYMBOL 34 35 "ORXONOX_SHARED_BUILD" -
sandbox_light/src/orxonox/Main.cc
r5782 r5789 35 35 36 36 #include "OrxonoxPrereqs.h" 37 #include "SpecialConfig.h"38 37 39 #include "util/Exception.h"40 38 #include "core/CommandLine.h" 41 #include "core/Game.h" 39 #include "core/Core.h" 40 #include "core/Clock.h" 42 41 #include "core/LuaState.h" 42 #include "ToluaBindOrxonox.h" 43 43 #include "Main.h" 44 45 DeclareToluaInterface(Orxonox); 44 46 45 47 namespace orxonox 46 48 { 49 void sandbox() 50 { 51 } 52 47 53 /** 48 54 @brief … … 51 57 int main(const std::string& strCmdLine) 52 58 { 53 Game* game = new Game(strCmdLine); 59 // Create the Core 60 Core* core = new Core(strCmdLine); 61 // Set up a basic clock to keep time 62 Clock* clock = new Clock(); 54 63 55 game->setStateHierarchy( 56 "root" 57 ); 64 sandbox(); 58 65 59 game->requestState("root"); 60 61 game->run(); 62 delete game; 63 66 delete clock; 67 delete core; 64 68 return 0; 65 69 }
Note: See TracChangeset
for help on using the changeset viewer.