Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 10:14:41 AM (20 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/track_manager.cc

    r3540 r3543  
    223223/**
    224224   \brief standard destructor
    225 
    226225*/
    227226TrackManager::~TrackManager(void)
     227{
     228  this->destroy();
     229}
     230
     231/**
     232   \brief deletes all alocated Memory and also deletes everything from the Class this one is erived from
     233*/
     234void TrackManager::destroy(void)
    228235{
    229236  PRINTF(3)("Destruct TrackManager\n");
     
    234241  // we do not have a TrackManager anymore
    235242  singletonRef = NULL;
    236 }
    237 
     243 
     244  static_cast<BaseObject*>(this)->destroy();
     245}
     246
     247//! Singleton Reference to TrackManager
    238248TrackManager* TrackManager::singletonRef = NULL;
    239249
     
    663673
    664674      Vector v(0.0, 1.0, 0.0);
    665       Quaternion q(-1.57, v);
     675      Quaternion q(-PI/2, v);
    666676      //this->relDirection = this->relDirection * q;
    667677      quat = quat * q;
Note: See TracChangeset for help on using the changeset viewer.