- Timestamp:
- Jul 19, 2009, 3:48:00 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3222-3224,3238
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/BigExplosion.cc
r3280 r3325 99 99 Identifier* idDE1 = Class(MovableEntity); 100 100 BaseObject* oDE1 = idDE1->fabricate(this); 101 this->debrisEntity1_ = dynamic_cast<MovableEntity*>(oDE1);101 this->debrisEntity1_ = orxonox_cast<MovableEntity*>(oDE1); 102 102 103 103 Identifier* idDE2 = Class(MovableEntity); 104 104 BaseObject* oDE2 = idDE2->fabricate(this); 105 this->debrisEntity2_ = dynamic_cast<MovableEntity*>(oDE2);105 this->debrisEntity2_ = orxonox_cast<MovableEntity*>(oDE2); 106 106 107 107 Identifier* idDE3 = Class(MovableEntity); 108 108 BaseObject* oDE3 = idDE3 ->fabricate(this); 109 this->debrisEntity3_ = dynamic_cast<MovableEntity*>(oDE3);109 this->debrisEntity3_ = orxonox_cast<MovableEntity*>(oDE3); 110 110 111 111 Identifier* idDE4 = Class(MovableEntity); 112 112 BaseObject* oDE4 = idDE4->fabricate(this); 113 this->debrisEntity4_ = dynamic_cast<MovableEntity*>(oDE4);113 this->debrisEntity4_ = orxonox_cast<MovableEntity*>(oDE4); 114 114 115 115 Identifier* idD1 = Class(Model); 116 116 BaseObject* oD1 = idD1->fabricate(this); 117 this->debris1_ = dynamic_cast<Model*>(oD1);117 this->debris1_ = orxonox_cast<Model*>(oD1); 118 118 119 119 Identifier* idD2 = Class(Model); 120 120 BaseObject* oD2 = idD2->fabricate(this); 121 this->debris2_ = dynamic_cast<Model*>(oD2);121 this->debris2_ = orxonox_cast<Model*>(oD2); 122 122 123 123 Identifier* idD3 = Class(Model); 124 124 BaseObject* oD3 = idD3->fabricate(this); 125 this->debris3_ = dynamic_cast<Model*>(oD3);125 this->debris3_ = orxonox_cast<Model*>(oD3); 126 126 127 127 Identifier* idD4 = Class(Model); 128 128 BaseObject* oD4 = idD4->fabricate(this); 129 this->debris4_ = dynamic_cast<Model*>(oD4);129 this->debris4_ = orxonox_cast<Model*>(oD4); 130 130 131 131 Identifier* id6 = Class(StaticEntity); 132 132 BaseObject* object4 = id6->fabricate(this); 133 this->explosion_ = dynamic_cast<StaticEntity*>(object4);133 this->explosion_ = orxonox_cast<StaticEntity*>(object4); 134 134 135 135 this->debrisSmoke1_ = new ParticleInterface(this->getScene()->getSceneManager(), "Orxonox/smoke7", this->LOD_); … … 202 202 Identifier* idf1 = Class(Model); 203 203 BaseObject* obj1 = idf1->fabricate(this); 204 Model* part1 = dynamic_cast<Model*>(obj1);204 Model* part1 = orxonox_cast<Model*>(obj1); 205 205 206 206 207 207 Identifier* idf2 = Class(Model); 208 208 BaseObject* obj2 = idf2->fabricate(this); 209 Model* part2 = dynamic_cast<Model*>(obj2);209 Model* part2 = orxonox_cast<Model*>(obj2); 210 210 211 211 Identifier* idf3 = Class(MovableEntity); 212 212 BaseObject* obj3 = idf3->fabricate(this); 213 MovableEntity* partEntity1 = dynamic_cast<MovableEntity*>(obj3);213 MovableEntity* partEntity1 = orxonox_cast<MovableEntity*>(obj3); 214 214 215 215 Identifier* idf4 = Class(MovableEntity); 216 216 BaseObject* obj4 = idf4->fabricate(this); 217 MovableEntity* partEntity2 = dynamic_cast<MovableEntity*>(obj4);217 MovableEntity* partEntity2 = orxonox_cast<MovableEntity*>(obj4); 218 218 219 219 partEntity1->setVelocity(Vector3(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1))*rnd(10,100));
Note: See TracChangeset
for help on using the changeset viewer.