Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3551 in orxonox.OLD for orxonox/trunk/src/lib/coord


Ignore:
Timestamp:
Mar 14, 2005, 11:46:50 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: renamed all timing functions to tick() - cleanede up world

Location:
orxonox/trunk/src/lib/coord
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3545 r3551  
    7272   worry, normaly...
    7373*/
    74 void NullParent::update (float timeStamp)
     74void NullParent::update ()
    7575{
    7676
     
    8787      if( this->bRelDirChanged || this->bAbsDirChanged)
    8888        pn->parentDirChanged ();
    89       pn->update (timeStamp);
     89      pn->update ();
    9090      pn = this->children->nextElement ();
    9191    }
  • orxonox/trunk/src/lib/coord/null_parent.h

    r3544 r3551  
    2020  static NullParent* singletonRef;
    2121
    22   virtual void update (float timeStamp);
     22  virtual void update ();
    2323
    2424 private:
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3547 r3551  
    1313   ### File Specific:
    1414   main-programmer: Patrick Boenzli
    15    co-programmer: ...
    16 
    17    \todo Null-Parent => center of the coord system - singleton
     15   co-programmer:
     16
    1817   \todo Smooth-Parent: delay, speed
    19    \todo destroy the stuff again, delete...
    2018*/
    2119
     
    109107  delete &this->absDirection;
    110108  */
    111   this->parent = NULL;
     109  //this->parent = NULL;
    112110  /* there is currently a problem with cleaning up - fix*/
    113111
     112 
    114113  PNode* pn = this->children->enumerate();
    115114  while( pn != NULL)
     
    117116      pn = this->children->nextElement();
    118117      delete pn;
    119     }
     118    }
     119   
    120120  /* this deletes all children in the list */
    121121  delete this->children;
     
    429429   worry, normaly...
    430430*/
    431 void PNode::update (float timeStamp)
     431void PNode::update ()
    432432{
    433433  PRINTF(2)("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
     
    493493      if( this->bRelDirChanged || this->bAbsDirChanged)
    494494        pn->parentDirChanged ();
    495       pn->update(timeStamp);
     495      pn->update();
    496496      pn = this->children->nextElement();
    497497    }
     
    511511void PNode::processTick (float dt)
    512512{
    513   this->tick (dt);
     513  //this->tick (dt);
    514514  PNode* pn = this->children->enumerate();
    515515  while( pn != NULL)
     
    520520}
    521521
    522 /**
    523    \param dt time to tick
    524 */
    525 void PNode::tick (float dt)
    526 {}
    527522
    528523/**
  • orxonox/trunk/src/lib/coord/p_node.h

    r3544 r3551  
    7474  parentingMode getMode();
    7575
    76   virtual void update (float timeStamp);
     76  virtual void update ();
    7777  void processTick (float dt);
    78   virtual void tick (float dt);
    7978
    8079  void setName (char* newName);
Note: See TracChangeset for help on using the changeset viewer.