Changeset 9162 in orxonox.OLD for branches/presentation/src/world_entities/playable.cc
- Timestamp:
- Jul 4, 2006, 6:15:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/playable.cc
r9138 r9162 401 401 402 402 403 void Playable::destroy() 404 { 405 Explosion::explode(dynamic_cast<PNode*>(this), Vector(1.0f, 1.0f, 1.0f)); 406 407 403 void Playable::destroy(WorldEntity* killer) 404 { 408 405 if( !this->bDead) 409 406 { … … 414 411 if( this == State::getPlayer()->getPlayable()) 415 412 State::getGameRules()->onPlayerDeath(); 416 417 // this->toList(OM_GROUP_05);418 //HACK: moves the entity to an unknown place far far away: in the future, GameRules will look for that419 this->setAbsCoor(-2000.0, -2000.0, -2000.0);420 421 //explosion hack422 423 413 } 424 414 this->bDead = true; 415 416 if( State::getGameRules() != NULL) 417 State::getGameRules()->registerKill(Kill(killer, this)); 425 418 } 426 419 }
Note: See TracChangeset
for help on using the changeset viewer.