Changeset 4441 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 1, 2005, 10:03:09 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/null_parent.cc
r4440 r4441 19 19 20 20 #include "null_parent.h" 21 #include "stdincl.h"22 #include "vector.h"23 #include "list.h"24 25 21 26 22 using namespace std; … … 35 31 } 36 32 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) 33 NullParent::NullParent (const Vector& absCoordinate) : PNode (absCoordinate, NULL) 43 34 { 44 PRINTF(4)("NullParent::NullParent() - making new NullParent, there can only be one..\n");45 this->setMode(PNODE_ALL);46 35 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"); 52 37 singletonRef = this; 53 38 this->setMode(PNODE_ALL); 54 this->setName("NullParent");55 39 } 56 40 … … 66 50 singletonRef = NULL; 67 51 } 68 69 /**70 \brief updates the absCoordinate/absDirection71 72 this is used to go through the parent-tree to update all the absolute coordinates73 and directions. this update should be done by the engine, so you don't have to74 worry, normaly...75 */ -
orxonox/trunk/src/lib/coord/null_parent.h
r4440 r4441 20 20 21 21 private: 22 NullParent (); 23 NullParent (const Vector& absCoordinate); 22 NullParent (const Vector& absCoordinate = Vector()); 24 23 static NullParent* singletonRef; 25 24
Note: See TracChangeset
for help on using the changeset viewer.