Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 10:14:41 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.

File:
1 edited

Legend:

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

    r3526 r3543  
    4848Orxonox::~Orxonox ()
    4949{
     50  this->destroy();
     51}
     52
     53/**
     54   \brief destroys orxonox. Frees al memory and so on.
     55*/
     56void Orxonox::destroy(void)
     57{
    5058  Orxonox::singletonRef = NULL;
    5159  if( world != NULL) delete world;
     
    5361  if( localcamera != NULL) delete localcamera;
    5462  if( resources != NULL) delete resources;
    55 }
    56 
     63
     64 
     65}
    5766
    5867/** \brief this is a singleton class to prevent duplicates */
Note: See TracChangeset for help on using the changeset viewer.