Changeset 3302 in orxonox.OLD for orxonox/branches/parenting/src/world_entity.cc
- Timestamp:
- Dec 27, 2004, 9:31:52 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/world_entity.cc
r3245 r3302 36 36 WorldEntity::WorldEntity (bool isFree) : bFree(isFree) 37 37 { 38 this->setClassName ("WorldEntity"); 38 39 this->bDraw = true; 39 40 collisioncluster = NULL; … … 53 54 \return a pointer to location 54 55 */ 56 /*PN 55 57 Location* WorldEntity::getLocation () 56 58 { 57 59 return &loc; 58 60 } 61 */ 59 62 60 63 /** … … 62 65 \return a pointer to placement 63 66 */ 67 /*PN 64 68 Placement* WorldEntity::getPlacement () 65 69 { 66 70 return &place; 67 71 } 68 72 */ 69 73 /** 70 74 \brief query whether the WorldEntity in question is free … … 89 93 } 90 94 95 91 96 /** 92 97 \brief this method is called every frame … … 99 104 } 100 105 106 107 /** 108 \brief process draw function 109 */ 110 void WorldEntity::processDraw () 111 { 112 this->draw (); 113 PNode* pn = this->children->enumerate (); 114 while( pn != NULL) 115 { 116 ((WorldEntity*)pn)->processDraw (); 117 pn = this->children->nextElement(); 118 } 119 } 120 121 122 void WorldEntity::setDrawable (bool bDraw) 123 { 124 this->bDraw = bDraw; 125 } 126 127 101 128 /** 102 129 \brief the entity is drawn onto the screen with this function … … 105 132 */ 106 133 void WorldEntity::draw() 107 { 108 } 134 {} 109 135 110 136 /** … … 140 166 void WorldEntity::init( Location* spawnloc, WorldEntity* spawnowner) 141 167 { 142 loc = *spawnloc;143 owner = spawnowner;168 // loc = *spawnloc; 169 //owner = spawnowner; 144 170 } 145 171 … … 149 175 void WorldEntity::init( Placement* spawnplc, WorldEntity* spawnowner) 150 176 { 151 place = *spawnplc;152 owner = spawnowner;177 //place = *spawnplc; 178 //owner = spawnowner; 153 179 } 154 180 … … 181 207 to look at the location you return with this. 182 208 */ 209 /*PN 183 210 void WorldEntity::getLookat (Location* locbuf) 184 211 { 185 212 } 213 */ 186 214 187 215 /**
Note: See TracChangeset
for help on using the changeset viewer.