Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4441 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 1, 2005, 10:03:09 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: update of the NullParent-class

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

Legend:

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

    r4440 r4441  
    1919
    2020#include "null_parent.h"
    21 #include "stdincl.h"
    22 #include "vector.h"
    23 #include "list.h"
    24 
    2521
    2622using namespace std;
     
    3531}
    3632
    37 /**
    38    \brief standard constructor
    39 
    40    \todo this constructor is not jet implemented - do it
    41 */
    42 NullParent::NullParent () : PNode (Vector(0,0,0), NULL)
     33NullParent::NullParent (const Vector& absCoordinate) : PNode (absCoordinate, NULL)
    4334{
    44   PRINTF(4)("NullParent::NullParent() - making new NullParent, there can only be one..\n");
    45   this->setMode(PNODE_ALL);
    4635  this->setName("NullParent");
    47 }
    48 
    49 
    50 NullParent::NullParent (const Vector& absCoordinate) : PNode (Vector(0,0,0), NULL)
    51 {
     36  this->setClassID(CL_NULL_PARENT, "NullParent");
    5237  singletonRef = this;
    5338  this->setMode(PNODE_ALL);
    54   this->setName("NullParent");
    5539}
    5640
     
    6650  singletonRef = NULL;
    6751}
    68 
    69 /**
    70    \brief updates the absCoordinate/absDirection
    71 
    72    this is used to go through the parent-tree to update all the absolute coordinates
    73    and directions. this update should be done by the engine, so you don't have to
    74    worry, normaly...
    75 */
  • orxonox/trunk/src/lib/coord/null_parent.h

    r4440 r4441  
    2020
    2121 private:
    22   NullParent ();
    23   NullParent (const Vector& absCoordinate);
     22  NullParent (const Vector& absCoordinate = Vector());
    2423  static NullParent* singletonRef;
    2524
Note: See TracChangeset for help on using the changeset viewer.