Changeset 3277 in orxonox.OLD for orxonox/branches/parenting/src/world.cc
- Timestamp:
- Dec 25, 2004, 1:44:31 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/world.cc
r3276 r3277 67 67 this->entities->destroy(); 68 68 69 /* FIX the parent list has to be cleared - not possible if we got the old list also*/ 70 //this->nullParent->destroy (); 71 69 72 delete this->entities; 70 73 delete this->localCamera; … … 82 85 83 86 /* this is only for test purposes */ 84 //this->debug ();87 this->debug (); 85 88 } 86 89 … … 128 131 case DEBUG_WORLD_0: 129 132 { 133 this->nullParent = new NullParent (); 134 130 135 // create some path nodes 131 136 this->pathnodes = new Vector[6]; … … 146 151 // !\todo old track-system has to be removed 147 152 148 //this->nullParent = new NullParent ();149 150 153 // create a player 151 154 WorldEntity* myPlayer = new Player(); … … 160 163 this->localCamera = new Camera(this); 161 164 this->getCamera()->bind (myPlayer); 162 165 166 /* 163 167 Placement* plc = new Placement; 164 168 plc->r = Vector(100, 10, 10); … … 166 170 WorldEntity* env = new Environment(); 167 171 this->spawn(env, plc); 172 */ 168 173 169 174 break; … … 171 176 case DEBUG_WORLD_1: 172 177 { 178 this->nullParent = new NullParent (); 179 173 180 // create some path nodes 174 181 this->pathnodes = new Vector[6]; … … 622 629 p3->debug (); 623 630 p4->debug (); 631 632 p1->destroy (); 633 634 624 635 /* 625 636 WorldEntity* entity; … … 778 789 WorldEntity* owner; 779 790 791 if( this->nullParent != NULL) 792 this->nullParent->addChild (entity); 793 780 794 entities->add (entity); 781 795 zeroloc.dist = 0; … … 800 814 void World::spawn(WorldEntity* entity, Location* loc) 801 815 { 816 if( this->nullParent != NULL) 817 this->nullParent->addChild (entity); 818 802 819 Location zeroLoc; 803 820 WorldEntity* owner; … … 828 845 void World::spawn(WorldEntity* entity, Placement* plc) 829 846 { 847 if( this->nullParent != NULL) 848 this->nullParent->addChild (entity); 849 830 850 Placement zeroPlc; 831 851 WorldEntity* owner;
Note: See TracChangeset
for help on using the changeset viewer.