Changeset 3054 for code/branches/particles
- Timestamp:
- May 25, 2009, 12:37:19 PM (16 years ago)
- Location:
- code/branches/particles/src/orxonox
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particles/src/orxonox/OrxonoxPrereqs.h
r2826 r3054 143 143 class Billboard; 144 144 class BlinkingBillboard; 145 class BigExplosion; 145 146 class ExplosionChunk; 146 147 class FadingBillboard; -
code/branches/particles/src/orxonox/objects/worldentities/CMakeLists.txt
r2826 r3054 9 9 Billboard.cc 10 10 BlinkingBillboard.cc 11 BigExplosion.cc 11 12 ExplosionChunk.cc 12 13 FadingBillboard.cc -
code/branches/particles/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2826 r3054 39 39 #include "objects/worldentities/ParticleSpawner.h" 40 40 #include "objects/worldentities/ExplosionChunk.h" 41 #include "objects/worldentities/BigExplosion.h" 41 42 42 43 namespace orxonox … … 129 130 this->firehack_ = 0x0; 130 131 131 if (this->health_ <= 0 )132 if (this->health_ <= 0 && bAlive_){ 132 133 this->death(); 134 } 133 135 } 134 136 … … 212 214 213 215 if (Core::isMaster()) 214 this->deatheffect(); 216 // this->deathEffect(); 217 this->goWithStyle(); 215 218 } 216 219 else 217 220 this->setHealth(1); 218 221 } 219 222 void Pawn::goWithStyle() 223 { 224 this->bAlive_ = false; 225 this->setDestroyWhenPlayerLeft(false); 226 227 BigExplosion* chunk = new BigExplosion(this->getCreator()); 228 chunk->setPosition(this->getPosition()); 229 230 } 220 231 void Pawn::deatheffect() 221 232 { -
code/branches/particles/src/orxonox/objects/worldentities/pawns/Pawn.h
r2826 r3054 114 114 protected: 115 115 virtual void death(); 116 virtual void goWithStyle(); 116 117 virtual void deatheffect(); 117 118 virtual void spawneffect();
Note: See TracChangeset
for help on using the changeset viewer.