Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4445 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Jun 1, 2005, 10:30:26 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: cleaned up the orxonox class: removed all unused variables and functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4442 r4445  
    5454Orxonox::Orxonox ()
    5555{
    56   this->pause = false;
    57 
    58   this->world = NULL;
     56  this->setClassID(CL_ORXONOX, "Orxonox");
     57
    5958  this->resourceManager = NULL;
    6059  this->objectManager = NULL;
     
    7271  int i =0;
    7372  Orxonox::singletonRef = NULL;
    74   if( world != NULL) delete world;
    7573  delete GraphicsEngine::getInstance(); // deleting the Graphics
    7674  delete ResourceManager::getInstance(); // deletes the Resource Manager
    7775  delete ObjectManager::getInstance();
    7876  delete TextEngine::getInstance();
     77  delete EventHandler::getInstance();
    7978}
    8079
     
    236235
    237236
    238 /**
    239    \brief initializes the world
    240 */
    241 int Orxonox::initWorld()
    242 {
    243   //world = new World();
    244  
    245   // TO DO: replace this with a menu/intro
    246   //world->load_debug_level();
    247  
    248   return 0;
    249 }
    250237
    251238
     
    296283 
    297284
    298 
     285/**
     286  \brief processes the events for orxonox main class
     287  \param the event to handle
     288*/
    299289void Orxonox::process(const Event &event)
    300290{}
    301291
    302 
    303 
    304 /**
    305    \brief retrieve a pointer to the local World
    306    \return a pointer to world
    307 */
    308 World* Orxonox::getWorld()
    309 {
    310   return world;
    311 }
    312 
    313 /**
    314    \return The reference of the SDL-screen of orxonox
    315 */
    316 SDL_Surface* Orxonox::getScreen ()
    317 {
    318   return this->screen;
    319 }
    320292
    321293
Note: See TracChangeset for help on using the changeset viewer.