Changeset 3365 in orxonox.OLD for orxonox/trunk/src/world_entity.cc
- Timestamp:
- Jan 7, 2005, 1:14:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entity.cc
r3245 r3365 36 36 WorldEntity::WorldEntity (bool isFree) : bFree(isFree) 37 37 { 38 this->setClassName ("WorldEntity"); 38 39 this->bDraw = true; 39 40 collisioncluster = NULL; 40 owner = NULL;41 41 } 42 42 … … 53 53 \return a pointer to location 54 54 */ 55 /*PN 55 56 Location* WorldEntity::getLocation () 56 57 { 57 58 return &loc; 58 59 } 60 */ 59 61 60 62 /** … … 62 64 \return a pointer to placement 63 65 */ 66 /*PN 64 67 Placement* WorldEntity::getPlacement () 65 68 { 66 69 return &place; 67 70 } 68 71 */ 69 72 /** 70 73 \brief query whether the WorldEntity in question is free … … 89 92 } 90 93 94 91 95 /** 92 96 \brief this method is called every frame … … 99 103 } 100 104 105 106 /** 107 \brief process draw function 108 */ 109 void WorldEntity::processDraw () 110 { 111 this->draw (); 112 PNode* pn = this->children->enumerate (); 113 while( pn != NULL) 114 { 115 ((WorldEntity*)pn)->processDraw (); 116 pn = this->children->nextElement(); 117 } 118 } 119 120 121 void WorldEntity::setDrawable (bool bDraw) 122 { 123 this->bDraw = bDraw; 124 } 125 126 101 127 /** 102 128 \brief the entity is drawn onto the screen with this function … … 105 131 */ 106 132 void WorldEntity::draw() 107 { 108 } 133 {} 109 134 110 135 /** … … 134 159 void WorldEntity::destroy() {} 135 160 136 137 /**138 \brief basic initialisation for bound Entities139 */140 void WorldEntity::init( Location* spawnloc, WorldEntity* spawnowner)141 {142 loc = *spawnloc;143 owner = spawnowner;144 }145 146 /**147 \brief basic initialisation for free Entities148 */149 void WorldEntity::init( Placement* spawnplc, WorldEntity* spawnowner)150 {151 place = *spawnplc;152 owner = spawnowner;153 }154 161 155 162 /** … … 181 188 to look at the location you return with this. 182 189 */ 190 /*PN 183 191 void WorldEntity::getLookat (Location* locbuf) 184 192 { 185 193 } 194 */ 186 195 187 196 /**
Note: See TracChangeset
for help on using the changeset viewer.