Changeset 9667 for code/trunk/src/orxonox/worldentities/pawns
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 13 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/Destroyer.cc
r5929 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(Destroyer);36 RegisterClass(Destroyer); 37 37 38 Destroyer::Destroyer( BaseObject* creator) : SpaceShip(creator)38 Destroyer::Destroyer(Context* context) : SpaceShip(context) 39 39 { 40 40 RegisterObject(Destroyer); -
code/trunk/src/orxonox/worldentities/pawns/Destroyer.h
r5781 r9667 39 39 { 40 40 public: 41 Destroyer( BaseObject* creator);41 Destroyer(Context* context); 42 42 virtual ~Destroyer() {}; 43 43 -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc
r9016 r9667 38 38 39 39 #include "core/CoreIncludes.h" 40 #include "core/ ConfigValueIncludes.h"40 #include "core/config/ConfigValueIncludes.h" 41 41 #include "core/Template.h" 42 42 #include "core/XMLPort.h" … … 53 53 const float orientationGain_ = 100; 54 54 const float jumpValue_ = 300; 55 CreateFactory(FpsPlayer);56 57 FpsPlayer::FpsPlayer( BaseObject* creator) : Pawn(creator)55 RegisterClass(FpsPlayer); 56 57 FpsPlayer::FpsPlayer(Context* context) : Pawn(context) 58 58 { 59 59 RegisterObject(FpsPlayer); -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.h
r9016 r9667 43 43 { 44 44 public: 45 FpsPlayer( BaseObject* creator);45 FpsPlayer(Context* context); 46 46 virtual ~FpsPlayer(); 47 47 -
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 } -
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r9625 r9667 45 45 46 46 public: 47 Pawn( BaseObject* creator);47 Pawn(Context* context); 48 48 virtual ~Pawn(); 49 49 -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r9348 r9667 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/Template.h" 36 36 #include "core/XMLPort.h" … … 46 46 namespace orxonox 47 47 { 48 CreateFactory(SpaceShip);49 50 SpaceShip::SpaceShip( BaseObject* creator) : Pawn(creator), boostBlur_(NULL)48 RegisterClass(SpaceShip); 49 50 SpaceShip::SpaceShip(Context* context) : Pawn(context), boostBlur_(NULL) 51 51 { 52 52 RegisterObject(SpaceShip); … … 96 96 97 97 if (this->boostBlur_) 98 this->boostBlur_->destroy();98 delete this->boostBlur_; 99 99 } 100 100 } … … 447 447 if (!this->bEnableMotionBlur_ && this->boostBlur_ != NULL) 448 448 { 449 this->boostBlur_->destroy();449 delete this->boostBlur_; 450 450 this->boostBlur_ = NULL; 451 451 } -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.h
r8727 r9667 88 88 { 89 89 public: 90 SpaceShip( BaseObject* creator);90 SpaceShip(Context* context); 91 91 virtual ~SpaceShip(); 92 92 -
code/trunk/src/orxonox/worldentities/pawns/Spectator.cc
r7863 r9667 31 31 #include "util/Convert.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ ConfigValueIncludes.h"33 #include "core/config/ConfigValueIncludes.h" 34 34 #include "core/GameMode.h" 35 35 #include "core/command/CommandExecutor.h" … … 45 45 extern const std::string __CC_suicide_name; 46 46 47 CreateFactory(Spectator);48 49 Spectator::Spectator( BaseObject* creator) : ControllableEntity(creator)47 RegisterClass(Spectator); 48 49 Spectator::Spectator(Context* context) : ControllableEntity(context) 50 50 { 51 51 RegisterObject(Spectator); -
code/trunk/src/orxonox/worldentities/pawns/Spectator.h
r7862 r9667 40 40 { 41 41 public: 42 Spectator( BaseObject* creator);42 Spectator(Context* context); 43 43 virtual ~Spectator(); 44 44 -
code/trunk/src/orxonox/worldentities/pawns/TeamBaseMatchBase.cc
r5929 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(TeamBaseMatchBase);39 RegisterClass(TeamBaseMatchBase); 40 40 41 TeamBaseMatchBase::TeamBaseMatchBase( BaseObject* creator) : Pawn(creator)41 TeamBaseMatchBase::TeamBaseMatchBase(Context* context) : Pawn(context) 42 42 { 43 43 RegisterObject(TeamBaseMatchBase); -
code/trunk/src/orxonox/worldentities/pawns/TeamBaseMatchBase.h
r5781 r9667 50 50 { 51 51 public: 52 TeamBaseMatchBase( BaseObject* creator);52 TeamBaseMatchBase(Context* context); 53 53 54 54 // if class closes, close everything
Note: See TracChangeset
for help on using the changeset viewer.