Changeset 9667 for code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r9666 r9667 51 51 namespace orxonox 52 52 { 53 CreateFactory(Pawn);54 55 Pawn::Pawn( BaseObject* creator)56 : ControllableEntity(c reator)57 , RadarViewable( creator, static_cast<WorldEntity*>(this))53 RegisterClass(Pawn); 54 55 Pawn::Pawn(Context* context) 56 : ControllableEntity(context) 57 , RadarViewable(this, static_cast<WorldEntity*>(this)) 58 58 { 59 59 RegisterObject(Pawn); … … 86 86 if (GameMode::isMaster()) 87 87 { 88 this->weaponSystem_ = new WeaponSystem(this );88 this->weaponSystem_ = new WeaponSystem(this->getContext()); 89 89 this->weaponSystem_->setPawn(this); 90 90 } … … 299 299 if (!this->spawnparticlesource_.empty()) 300 300 { 301 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());301 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 302 302 effect->setPosition(this->getPosition()); 303 303 effect->setOrientation(this->getOrientation()); … … 365 365 this->setDestroyWhenPlayerLeft(false); 366 366 367 BigExplosion* chunk = new BigExplosion(this->getC reator());367 BigExplosion* chunk = new BigExplosion(this->getContext()); 368 368 chunk->setPosition(this->getPosition()); 369 369 … … 373 373 // play death effect 374 374 { 375 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());375 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 376 376 effect->setPosition(this->getPosition()); 377 377 effect->setOrientation(this->getOrientation()); … … 381 381 } 382 382 { 383 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());383 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 384 384 effect->setPosition(this->getPosition()); 385 385 effect->setOrientation(this->getOrientation()); … … 389 389 } 390 390 { 391 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());391 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 392 392 effect->setPosition(this->getPosition()); 393 393 effect->setOrientation(this->getOrientation()); … … 398 398 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 399 399 { 400 ExplosionChunk* chunk = new ExplosionChunk(this->getC reator());400 ExplosionChunk* chunk = new ExplosionChunk(this->getContext()); 401 401 chunk->setPosition(this->getPosition()); 402 402 }
Note: See TracChangeset
for help on using the changeset viewer.