- Timestamp:
- Jun 1, 2005, 10:30:26 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/class_list.h
r4367 r4445 13 13 typedef enum classList 14 14 { 15 CL_ORXONOX, 16 15 17 CL_PARENT, 16 18 CL_HELPER_PARENT, -
orxonox/trunk/src/orxonox.cc
r4442 r4445 54 54 Orxonox::Orxonox () 55 55 { 56 this->pause = false; 57 58 this->world = NULL; 56 this->setClassID(CL_ORXONOX, "Orxonox"); 57 59 58 this->resourceManager = NULL; 60 59 this->objectManager = NULL; … … 72 71 int i =0; 73 72 Orxonox::singletonRef = NULL; 74 if( world != NULL) delete world;75 73 delete GraphicsEngine::getInstance(); // deleting the Graphics 76 74 delete ResourceManager::getInstance(); // deletes the Resource Manager 77 75 delete ObjectManager::getInstance(); 78 76 delete TextEngine::getInstance(); 77 delete EventHandler::getInstance(); 79 78 } 80 79 … … 236 235 237 236 238 /**239 \brief initializes the world240 */241 int Orxonox::initWorld()242 {243 //world = new World();244 245 // TO DO: replace this with a menu/intro246 //world->load_debug_level();247 248 return 0;249 }250 237 251 238 … … 296 283 297 284 298 285 /** 286 \brief processes the events for orxonox main class 287 \param the event to handle 288 */ 299 289 void Orxonox::process(const Event &event) 300 290 {} 301 291 302 303 304 /**305 \brief retrieve a pointer to the local World306 \return a pointer to world307 */308 World* Orxonox::getWorld()309 {310 return world;311 }312 313 /**314 \return The reference of the SDL-screen of orxonox315 */316 SDL_Surface* Orxonox::getScreen ()317 {318 return this->screen;319 }320 292 321 293 -
orxonox/trunk/src/orxonox.h
r4442 r4445 7 7 #define _ORXONOX_H 8 8 9 #include "comincl.h"10 9 #include "glincl.h" 11 10 #include "event_listener.h" 11 12 12 13 13 … … 26 26 class Orxonox : public EventListener { 27 27 28 29 public: 30 static Orxonox* getInstance (); 31 virtual ~Orxonox (); 32 int init (int argc, char** argv); 33 34 void start(); 35 void quitGame(); 36 37 void graphicsHandler (SDL_Event* event); 38 void process(const Event &event); 39 40 private: 41 int initVideo (); 42 int initSound (); 43 int initInput (); 44 int initNetworking (); 45 int initResources (); 46 28 47 private: 29 48 static Orxonox* singletonRef; … … 31 50 32 51 char configfilename[256]; //!< Filename of the configuration-file. 33 World* world; //!< Reference to the current running world.34 SDL_Surface* screen; //!< The current Screen35 52 GameLoader* gameLoader; //!< The gameLoader 36 53 ResourceManager* resourceManager; //!< The ResourceManager … … 46 63 47 64 void getConfigFile (int argc, char** argv); 48 49 // subsystem initialization50 int initVideo ();51 int initSound ();52 int initInput ();53 int initNetworking ();54 int initResources ();55 int initWorld ();56 57 public:58 static Orxonox* getInstance ();59 virtual ~Orxonox ();60 65 61 void start();62 void quitGame();63 64 void graphicsHandler (SDL_Event* event);65 void process(const Event &event);66 67 int init (int argc, char** argv);68 66 69 67 70 World* getWorld();71 SDL_Surface* getScreen ();72 73 //void mainLoop();74 68 }; 75 69 -
orxonox/trunk/src/util/loading/game_loader.cc
r4443 r4445 36 36 GameLoader* GameLoader::singletonRef = 0; 37 37 38 /* 38 /** 39 39 \brief simple constructor 40 40 */ … … 45 45 46 46 47 /* 47 /** 48 48 \brief simple deconstructor 49 49 */
Note: See TracChangeset
for help on using the changeset viewer.