Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 15, 2005, 2:34:44 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: trackNode not static anymore

File:
1 edited

Legend:

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

    r3546 r3556  
    217217  this->maxTime = 0;
    218218  this->trackElemCount = 1;
    219   this->bindSlave = TrackNode::getInstance();
     219  this->bindSlave = this->trackNode = new TrackNode();
    220220}
    221221
     
    701701void TrackManager::setBindSlave(PNode* bindSlave)
    702702{
    703   if (this->bindSlave == TrackNode::getInstance() || bindSlave == TrackNode::getInstance())
    704     this->bindSlave = bindSlave;
    705   else
    706     PRINTF(2)("Already a Bindslave set that is not the TrackNode itself. Not updating\n");
    707 }
    708 
     703  this->bindSlave = bindSlave;
     704}
     705
     706/**
     707   \returns the main TrackNode
     708*/
     709PNode* TrackManager::getTrackNode(void)
     710{
     711  return this->trackNode;
     712}
    709713
    710714// DEBUG //
Note: See TracChangeset for help on using the changeset viewer.