Changeset 9629 for code/branches/core6/src/orxonox
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/orxonox
- Files:
-
- 159 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/orxonox/Level.cc
r9016 r9629 45 45 CreateFactory(Level); 46 46 47 Level::Level( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)47 Level::Level(Context* context) : BaseObject(context), Synchronisable(context), Context(context) 48 48 { 49 49 RegisterObject(Level); -
code/branches/core6/src/orxonox/Level.h
r9016 r9629 41 41 namespace orxonox 42 42 { 43 class _OrxonoxExport Level : public BaseObject, public Synchronisable 43 class _OrxonoxExport Level : public BaseObject, public Synchronisable, public Context 44 44 { 45 45 public: 46 Level( BaseObject* creator);46 Level(Context* context); 47 47 virtual ~Level(); 48 48 -
code/branches/core6/src/orxonox/LevelInfo.cc
r9348 r9629 250 250 The creator of this object. 251 251 */ 252 LevelInfo::LevelInfo( BaseObject* creator) : BaseObject(creator)252 LevelInfo::LevelInfo(Context* context) : BaseObject(context) 253 253 { 254 254 RegisterObject(LevelInfo); -
code/branches/core6/src/orxonox/LevelInfo.h
r9585 r9629 204 204 { 205 205 public: 206 LevelInfo( BaseObject* creator);206 LevelInfo(Context* context); 207 207 virtual ~LevelInfo(); 208 208 -
code/branches/core6/src/orxonox/Scene.cc
r9348 r9629 53 53 CreateFactory(Scene); 54 54 55 Scene::Scene( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)55 Scene::Scene(Context* context) : BaseObject(context), Synchronisable(context), Context(context) 56 56 { 57 57 RegisterObject(Scene); -
code/branches/core6/src/orxonox/Scene.h
r6417 r9629 45 45 namespace orxonox 46 46 { 47 class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable 47 class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable, public Context 48 48 { 49 49 public: 50 Scene( BaseObject* creator);50 Scene(Context* context); 51 51 virtual ~Scene(); 52 52 -
code/branches/core6/src/orxonox/Test.cc
r9558 r9629 56 56 Test* Test::instance_ = 0; 57 57 58 Test::Test( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)58 Test::Test(Context* context) : BaseObject(context), Synchronisable(context) 59 59 { 60 60 assert(instance_==0); -
code/branches/core6/src/orxonox/Test.h
r8858 r9629 46 46 { 47 47 public: 48 Test( BaseObject* creator);48 Test(Context* context); 49 49 virtual ~Test(); 50 50 -
code/branches/core6/src/orxonox/chat/ChatHistory.cc
r8858 r9629 39 39 /* constructor */ 40 40 #ifndef CHATTEST 41 //ChatHistory::ChatHistory( BaseObject* creator ) : BaseObject(creator)42 41 ChatHistory::ChatHistory() 43 42 #else -
code/branches/core6/src/orxonox/collisionshapes/CollisionShape.cc
r8858 r9629 49 49 Constructor. Registers and initializes the object. 50 50 */ 51 CollisionShape::CollisionShape( BaseObject* creator)52 : BaseObject(c reator)53 , Synchronisable(c reator)51 CollisionShape::CollisionShape(Context* context) 52 : BaseObject(context) 53 , Synchronisable(context) 54 54 { 55 55 RegisterObject(CollisionShape); -
code/branches/core6/src/orxonox/collisionshapes/CollisionShape.h
r8706 r9629 58 58 { 59 59 public: 60 CollisionShape( BaseObject* creator);60 CollisionShape(Context* context); 61 61 virtual ~CollisionShape(); 62 62 -
code/branches/core6/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r8858 r9629 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 CompoundCollisionShape::CompoundCollisionShape( BaseObject* creator) : CollisionShape(creator)50 CompoundCollisionShape::CompoundCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(CompoundCollisionShape); -
code/branches/core6/src/orxonox/collisionshapes/CompoundCollisionShape.h
r8706 r9629 58 58 { 59 59 public: 60 CompoundCollisionShape( BaseObject* creator);60 CompoundCollisionShape(Context* context); 61 61 virtual ~CompoundCollisionShape(); 62 62 -
code/branches/core6/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r9612 r9629 37 37 namespace orxonox 38 38 { 39 WorldEntityCollisionShape::WorldEntityCollisionShape( BaseObject* creator) : CompoundCollisionShape(creator)39 WorldEntityCollisionShape::WorldEntityCollisionShape(Context* context) : CompoundCollisionShape(context) 40 40 { 41 41 RegisterObject(WorldEntityCollisionShape); -
code/branches/core6/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r9612 r9629 38 38 { 39 39 public: 40 WorldEntityCollisionShape( BaseObject* creator);40 WorldEntityCollisionShape(Context* context); 41 41 virtual ~WorldEntityCollisionShape(); 42 42 -
code/branches/core6/src/orxonox/controllers/AIController.cc
r9016 r9629 41 41 CreateFactory(AIController); 42 42 43 AIController::AIController( BaseObject* creator) : ArtificialController(creator)43 AIController::AIController(Context* context) : ArtificialController(context) 44 44 { 45 45 RegisterObject(AIController); -
code/branches/core6/src/orxonox/controllers/AIController.h
r9016 r9629 41 41 { 42 42 public: 43 AIController( BaseObject* creator);43 AIController(Context* context); 44 44 virtual ~AIController(); 45 45 -
code/branches/core6/src/orxonox/controllers/ArtificialController.cc
r9252 r9629 45 45 SetConsoleCommand("ArtificialController", "setbotlevel", &ArtificialController::setAllBotLevel); 46 46 47 ArtificialController::ArtificialController( BaseObject* creator) : FormationController(creator)47 ArtificialController::ArtificialController(Context* context) : FormationController(context) 48 48 { 49 49 RegisterObject(ArtificialController); -
code/branches/core6/src/orxonox/controllers/ArtificialController.h
r9252 r9629 39 39 { 40 40 public: 41 ArtificialController( BaseObject* creator);41 ArtificialController(Context* context); 42 42 virtual ~ArtificialController(); 43 43 -
code/branches/core6/src/orxonox/controllers/Controller.cc
r6417 r9629 35 35 CreateUnloadableFactory(Controller); 36 36 37 Controller::Controller( BaseObject* creator) : BaseObject(creator)37 Controller::Controller(Context* context) : BaseObject(context) 38 38 { 39 39 RegisterObject(Controller); -
code/branches/core6/src/orxonox/controllers/Controller.h
r8706 r9629 42 42 43 43 public: 44 Controller( BaseObject* creator);44 Controller(Context* context); 45 45 virtual ~Controller(); 46 46 -
code/branches/core6/src/orxonox/controllers/DroneController.cc
r8891 r9629 45 45 const float DroneController::ACTION_INTERVAL = 1.0f; 46 46 47 DroneController::DroneController( BaseObject* creator) : ArtificialController(creator)47 DroneController::DroneController(Context* context) : ArtificialController(context) 48 48 { 49 49 RegisterObject(DroneController); -
code/branches/core6/src/orxonox/controllers/DroneController.h
r9557 r9629 50 50 { 51 51 public: 52 DroneController( BaseObject* creator);52 DroneController(Context* context); 53 53 virtual ~DroneController(); 54 54 -
code/branches/core6/src/orxonox/controllers/FormationController.cc
r9348 r9629 69 69 static const float ROTATEFACTOR_FREE = 0.8f; 70 70 71 FormationController::FormationController( BaseObject* creator) : Controller(creator)71 FormationController::FormationController(Context* context) : Controller(context) 72 72 { 73 73 RegisterObject(FormationController); -
code/branches/core6/src/orxonox/controllers/FormationController.h
r9567 r9629 46 46 47 47 public: 48 FormationController( BaseObject* creator);48 FormationController(Context* context); 49 49 50 50 virtual ~FormationController(); -
code/branches/core6/src/orxonox/controllers/HumanController.cc
r9256 r9629 71 71 /*static*/ const float HumanController::BOOSTING_TIME = 0.1f; 72 72 73 HumanController::HumanController( BaseObject* creator) : FormationController(creator)73 HumanController::HumanController(Context* context) : FormationController(context) 74 74 { 75 75 RegisterObject(HumanController); -
code/branches/core6/src/orxonox/controllers/HumanController.h
r9256 r9629 44 44 { // tolua_export 45 45 public: 46 HumanController( BaseObject* creator);46 HumanController(Context* context); 47 47 virtual ~HumanController(); 48 48 -
code/branches/core6/src/orxonox/controllers/NewHumanController.cc
r9348 r9629 60 60 NewHumanController* NewHumanController::localController_s = 0; 61 61 62 NewHumanController::NewHumanController( BaseObject* creator)63 : HumanController(c reator)62 NewHumanController::NewHumanController(Context* context) 63 : HumanController(context) 64 64 , crossHairOverlay_(NULL) 65 65 , centerOverlay_(NULL) … … 98 98 if (GameMode::showsGraphics()) 99 99 { 100 crossHairOverlay_ = new OrxonoxOverlay(this );100 crossHairOverlay_ = new OrxonoxOverlay(this->getContext()); 101 101 crossHairOverlay_->setBackgroundMaterial("Orxonox/Crosshair3"); 102 102 crossHairOverlay_->setSize(Vector2(overlaySize_, overlaySize_)); … … 104 104 //crossHairOverlay_->setAspectCorrection(true); not working 105 105 106 centerOverlay_ = new OrxonoxOverlay(this );106 centerOverlay_ = new OrxonoxOverlay(this->getContext()); 107 107 centerOverlay_->setBackgroundMaterial("Orxonox/CenterOverlay"); 108 108 centerOverlay_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 112 112 if (showDamageOverlay_) 113 113 { 114 damageOverlayTop_ = new OrxonoxOverlay(this );114 damageOverlayTop_ = new OrxonoxOverlay(this->getContext()); 115 115 damageOverlayTop_->setBackgroundMaterial("Orxonox/DamageOverlayTop"); 116 116 damageOverlayTop_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 118 118 damageOverlayTop_->hide(); 119 119 120 damageOverlayRight_ = new OrxonoxOverlay(this );120 damageOverlayRight_ = new OrxonoxOverlay(this->getContext()); 121 121 damageOverlayRight_->setBackgroundMaterial("Orxonox/DamageOverlayRight"); 122 122 damageOverlayRight_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 124 124 damageOverlayRight_->hide(); 125 125 126 damageOverlayBottom_ = new OrxonoxOverlay(this );126 damageOverlayBottom_ = new OrxonoxOverlay(this->getContext()); 127 127 damageOverlayBottom_->setBackgroundMaterial("Orxonox/DamageOverlayBottom"); 128 128 damageOverlayBottom_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 130 130 damageOverlayBottom_->hide(); 131 131 132 damageOverlayLeft_ = new OrxonoxOverlay(this );132 damageOverlayLeft_ = new OrxonoxOverlay(this->getContext()); 133 133 damageOverlayLeft_->setBackgroundMaterial("Orxonox/DamageOverlayLeft"); 134 134 damageOverlayLeft_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 139 139 if (showArrows_) 140 140 { 141 arrowsOverlay1_ = new OrxonoxOverlay(this );141 arrowsOverlay1_ = new OrxonoxOverlay(this->getContext()); 142 142 arrowsOverlay1_->setBackgroundMaterial("Orxonox/DirectionArrows1"); 143 143 arrowsOverlay1_->setSize(Vector2(0.02727f, 0.36f * arrowsSize_)); … … 146 146 arrowsOverlay1_->hide(); 147 147 148 arrowsOverlay2_ = new OrxonoxOverlay(this );148 arrowsOverlay2_ = new OrxonoxOverlay(this->getContext()); 149 149 arrowsOverlay2_->setBackgroundMaterial("Orxonox/DirectionArrows2"); 150 150 arrowsOverlay2_->setSize(Vector2(0.02727f, 0.59f * arrowsSize_)); … … 153 153 arrowsOverlay2_->hide(); 154 154 155 arrowsOverlay3_ = new OrxonoxOverlay(this );155 arrowsOverlay3_ = new OrxonoxOverlay(this->getContext()); 156 156 arrowsOverlay3_->setBackgroundMaterial("Orxonox/DirectionArrows3"); 157 157 arrowsOverlay3_->setSize(Vector2(0.02727f, 0.77f * arrowsSize_)); … … 160 160 arrowsOverlay3_->hide(); 161 161 162 arrowsOverlay4_ = new OrxonoxOverlay(this );162 arrowsOverlay4_ = new OrxonoxOverlay(this->getContext()); 163 163 arrowsOverlay4_->setBackgroundMaterial("Orxonox/DirectionArrows4"); 164 164 arrowsOverlay4_->setSize(Vector2(0.02727f, arrowsSize_)); -
code/branches/core6/src/orxonox/controllers/NewHumanController.h
r9016 r9629 42 42 { 43 43 public: 44 NewHumanController( BaseObject* creator);44 NewHumanController(Context* context); 45 45 virtual ~NewHumanController(); 46 46 -
code/branches/core6/src/orxonox/controllers/ScriptController.cc
r5781 r9629 34 34 CreateFactory(ScriptController); 35 35 36 ScriptController::ScriptController( BaseObject* creator) : ArtificialController(creator)36 ScriptController::ScriptController(Context* context) : ArtificialController(context) 37 37 { 38 38 RegisterObject(ScriptController); -
code/branches/core6/src/orxonox/controllers/ScriptController.h
r5781 r9629 38 38 { 39 39 public: 40 ScriptController( BaseObject* creator);40 ScriptController(Context* context); 41 41 virtual ~ScriptController() { } 42 42 -
code/branches/core6/src/orxonox/controllers/WaypointController.cc
r9252 r9629 36 36 CreateFactory(WaypointController); 37 37 38 WaypointController::WaypointController( BaseObject* creator) : ArtificialController(creator)38 WaypointController::WaypointController(Context* context) : ArtificialController(context) 39 39 { 40 40 RegisterObject(WaypointController); -
code/branches/core6/src/orxonox/controllers/WaypointController.h
r9252 r9629 41 41 { 42 42 public: 43 WaypointController( BaseObject* creator);43 WaypointController(Context* context); 44 44 virtual ~WaypointController(); 45 45 -
code/branches/core6/src/orxonox/controllers/WaypointPatrolController.cc
r9016 r9629 38 38 CreateFactory(WaypointPatrolController); 39 39 40 WaypointPatrolController::WaypointPatrolController( BaseObject* creator) : WaypointController(creator)40 WaypointPatrolController::WaypointPatrolController(Context* context) : WaypointController(context) 41 41 { 42 42 RegisterObject(WaypointPatrolController); -
code/branches/core6/src/orxonox/controllers/WaypointPatrolController.h
r9016 r9629 40 40 { 41 41 public: 42 WaypointPatrolController( BaseObject* creator);42 WaypointPatrolController(Context* context); 43 43 virtual ~WaypointPatrolController() {} 44 44 -
code/branches/core6/src/orxonox/gametypes/Asteroids.cc
r8858 r9629 37 37 CreateUnloadableFactory(Asteroids); 38 38 39 Asteroids::Asteroids( BaseObject* creator) : Gametype(creator)39 Asteroids::Asteroids(Context* context) : Gametype(context) 40 40 { 41 41 RegisterObject(Asteroids); -
code/branches/core6/src/orxonox/gametypes/Asteroids.h
r5781 r9629 38 38 { 39 39 public: 40 Asteroids( BaseObject* creator);40 Asteroids(Context* context); 41 41 virtual ~Asteroids() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/Deathmatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(Deathmatch); 39 39 40 Deathmatch::Deathmatch( BaseObject* creator) : Gametype(creator)40 Deathmatch::Deathmatch(Context* context) : Gametype(context) 41 41 { 42 42 RegisterObject(Deathmatch); -
code/branches/core6/src/orxonox/gametypes/Deathmatch.h
r9348 r9629 38 38 { 39 39 public: 40 Deathmatch( BaseObject* creator);40 Deathmatch(Context* context); 41 41 virtual ~Deathmatch() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/Dynamicmatch.cc
r9558 r9629 64 64 CreateUnloadableFactory(Dynamicmatch); 65 65 66 Dynamicmatch::Dynamicmatch( BaseObject* creator) : Gametype(creator)66 Dynamicmatch::Dynamicmatch(Context* context) : Gametype(context) 67 67 { 68 68 RegisterObject(Dynamicmatch); -
code/branches/core6/src/orxonox/gametypes/Dynamicmatch.h
r9348 r9629 44 44 { 45 45 public: 46 Dynamicmatch( BaseObject* creator);46 Dynamicmatch(Context* context); 47 47 virtual ~Dynamicmatch() {} 48 48 -
code/branches/core6/src/orxonox/gametypes/Gametype.cc
r9558 r9629 49 49 CreateUnloadableFactory(Gametype); 50 50 51 Gametype::Gametype( BaseObject* creator) : BaseObject(creator)51 Gametype::Gametype(Context* context) : BaseObject(context) 52 52 { 53 53 RegisterObject(Gametype); 54 54 55 this->gtinfo_ = new GametypeInfo(c reator);55 this->gtinfo_ = new GametypeInfo(context); 56 56 57 57 this->setGametype(SmartPtr<Gametype>(this, false)); … … 74 74 if (GameMode::showsGraphics() && !this->scoreboardTemplate_.empty()) 75 75 { 76 this->scoreboard_ = new OverlayGroup( this);76 this->scoreboard_ = new OverlayGroup(context); 77 77 this->scoreboard_->addTemplate(this->scoreboardTemplate_); 78 78 this->scoreboard_->setGametype(this); … … 160 160 ControllableEntity* oldentity = it->first->getControllableEntity(); 161 161 162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity );162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity->getContext()); 163 163 if (oldentity->getCamera()) 164 164 { … … 283 283 this->gtinfo_->pawnKilled(victim->getPlayer()); 284 284 285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getC reator());285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getContext()); 286 286 if (victim->getCamera()) 287 287 { … … 458 458 { 459 459 // force spawn at spawnpoint with default pawn 460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn );460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn->getContext()); 461 461 spawn->spawn(entity); 462 462 player->startControl(entity); … … 472 472 { 473 473 for (unsigned int i = 0; i < amount; ++i) 474 this->botclass_.fabricate(this );474 this->botclass_.fabricate(this->getContext()); 475 475 } 476 476 -
code/branches/core6/src/orxonox/gametypes/Gametype.h
r9563 r9629 67 67 68 68 public: 69 Gametype( BaseObject* creator);69 Gametype(Context* context); 70 70 virtual ~Gametype(); 71 71 -
code/branches/core6/src/orxonox/gametypes/LastManStanding.cc
r9558 r9629 40 40 CreateUnloadableFactory(LastManStanding); 41 41 42 LastManStanding::LastManStanding( BaseObject* creator) : Deathmatch(creator)42 LastManStanding::LastManStanding(Context* context) : Deathmatch(context) 43 43 { 44 44 RegisterObject(LastManStanding); -
code/branches/core6/src/orxonox/gametypes/LastManStanding.h
r7655 r9629 65 65 66 66 public: 67 LastManStanding( BaseObject* creator); //!< Default Constructor.67 LastManStanding(Context* context); //!< Default Constructor. 68 68 virtual ~LastManStanding() {} //!< Default Destructor. 69 69 void setConfigValues(); //!< Makes values configurable. -
code/branches/core6/src/orxonox/gametypes/LastTeamStanding.cc
r9558 r9629 40 40 CreateUnloadableFactory(LastTeamStanding); 41 41 42 LastTeamStanding::LastTeamStanding( BaseObject* creator) : TeamDeathmatch(creator)42 LastTeamStanding::LastTeamStanding(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(LastTeamStanding); -
code/branches/core6/src/orxonox/gametypes/LastTeamStanding.h
r8351 r9629 71 71 72 72 public: 73 LastTeamStanding( BaseObject* creator); //!< Default Constructor.73 LastTeamStanding(Context* context); //!< Default Constructor. 74 74 virtual ~LastTeamStanding(); //!< Default Destructor. 75 75 -
code/branches/core6/src/orxonox/gametypes/Mission.cc
r9348 r9629 39 39 CreateUnloadableFactory(Mission); 40 40 41 Mission::Mission( BaseObject* creator) : TeamGametype(creator)41 Mission::Mission(Context* context) : TeamGametype(context) 42 42 { 43 43 RegisterObject(Mission); -
code/branches/core6/src/orxonox/gametypes/Mission.h
r9348 r9629 39 39 { 40 40 public: 41 Mission( BaseObject* creator);41 Mission(Context* context); 42 42 virtual ~Mission() {} 43 43 -
code/branches/core6/src/orxonox/gametypes/TeamBaseMatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(TeamBaseMatch); 39 39 40 TeamBaseMatch::TeamBaseMatch( BaseObject* creator) : TeamDeathmatch(creator)40 TeamBaseMatch::TeamBaseMatch(Context* context) : TeamDeathmatch(context) 41 41 { 42 42 RegisterObject(TeamBaseMatch); -
code/branches/core6/src/orxonox/gametypes/TeamBaseMatch.h
r9348 r9629 41 41 { 42 42 public: 43 TeamBaseMatch( BaseObject* creator);43 TeamBaseMatch(Context* context); 44 44 virtual ~TeamBaseMatch() {} 45 45 -
code/branches/core6/src/orxonox/gametypes/TeamDeathmatch.cc
r9348 r9629 38 38 CreateUnloadableFactory(TeamDeathmatch); 39 39 40 TeamDeathmatch::TeamDeathmatch( BaseObject* creator) : TeamGametype(creator)40 TeamDeathmatch::TeamDeathmatch(Context* context) : TeamGametype(context) 41 41 { 42 42 RegisterObject(TeamDeathmatch); -
code/branches/core6/src/orxonox/gametypes/TeamDeathmatch.h
r9348 r9629 38 38 { 39 39 public: 40 TeamDeathmatch( BaseObject* creator);40 TeamDeathmatch(Context* context); 41 41 virtual ~TeamDeathmatch() {} 42 42 -
code/branches/core6/src/orxonox/gametypes/TeamGametype.cc
r9558 r9629 42 42 CreateUnloadableFactory(TeamGametype); 43 43 44 TeamGametype::TeamGametype( BaseObject* creator) : Gametype(creator)44 TeamGametype::TeamGametype(Context* context) : Gametype(context) 45 45 { 46 46 RegisterObject(TeamGametype); -
code/branches/core6/src/orxonox/gametypes/TeamGametype.h
r9348 r9629 41 41 { 42 42 public: 43 TeamGametype( BaseObject* creator);43 TeamGametype(Context* context); 44 44 virtual ~TeamGametype() {} 45 45 -
code/branches/core6/src/orxonox/gametypes/UnderAttack.cc
r9558 r9629 40 40 CreateUnloadableFactory(UnderAttack); 41 41 42 UnderAttack::UnderAttack( BaseObject* creator) : TeamDeathmatch(creator)42 UnderAttack::UnderAttack(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(UnderAttack); -
code/branches/core6/src/orxonox/gametypes/UnderAttack.h
r5929 r9629 39 39 { 40 40 public: 41 UnderAttack( BaseObject* creator);41 UnderAttack(Context* context); 42 42 virtual ~UnderAttack() {} 43 43 -
code/branches/core6/src/orxonox/graphics/AnimatedModel.cc
r8858 r9629 41 41 CreateFactory(AnimatedModel); 42 42 43 AnimatedModel::AnimatedModel( BaseObject* creator) : Model(creator)43 AnimatedModel::AnimatedModel(Context* context) : Model(context) 44 44 { 45 45 RegisterObject(AnimatedModel); -
code/branches/core6/src/orxonox/graphics/AnimatedModel.h
r8858 r9629 41 41 { 42 42 public: 43 AnimatedModel( BaseObject* creator);43 AnimatedModel(Context* context); 44 44 virtual ~AnimatedModel(); 45 45 -
code/branches/core6/src/orxonox/graphics/Backlight.cc
r8424 r9629 47 47 CreateFactory(Backlight); 48 48 49 Backlight::Backlight( BaseObject* creator) : FadingBillboard(creator)49 Backlight::Backlight(Context* context) : FadingBillboard(context) 50 50 { 51 51 RegisterObject(Backlight); -
code/branches/core6/src/orxonox/graphics/Backlight.h
r7163 r9629 41 41 { 42 42 public: 43 Backlight( BaseObject* creator);43 Backlight(Context* context); 44 44 virtual ~Backlight(); 45 45 -
code/branches/core6/src/orxonox/graphics/Billboard.cc
r8706 r9629 40 40 CreateFactory(Billboard); 41 41 42 Billboard::Billboard( BaseObject* creator) : StaticEntity(creator)42 Billboard::Billboard(Context* context) : StaticEntity(context) 43 43 { 44 44 RegisterObject(Billboard); -
code/branches/core6/src/orxonox/graphics/Billboard.h
r8706 r9629 44 44 { 45 45 public: 46 Billboard( BaseObject* creator);46 Billboard(Context* context); 47 47 virtual ~Billboard(); 48 48 -
code/branches/core6/src/orxonox/graphics/BlinkingBillboard.cc
r8351 r9629 37 37 CreateFactory(BlinkingBillboard); 38 38 39 BlinkingBillboard::BlinkingBillboard( BaseObject* creator) : Billboard(creator)39 BlinkingBillboard::BlinkingBillboard(Context* context) : Billboard(context) 40 40 { 41 41 RegisterObject(BlinkingBillboard); -
code/branches/core6/src/orxonox/graphics/BlinkingBillboard.h
r8351 r9629 41 41 { 42 42 public: 43 BlinkingBillboard( BaseObject* creator);43 BlinkingBillboard(Context* context); 44 44 virtual ~BlinkingBillboard(); 45 45 -
code/branches/core6/src/orxonox/graphics/Camera.cc
r9558 r9629 48 48 CreateFactory(Camera); 49 49 50 Camera::Camera( BaseObject* creator) : StaticEntity(creator)50 Camera::Camera(Context* context) : StaticEntity(context) 51 51 { 52 52 RegisterObject(Camera); -
code/branches/core6/src/orxonox/graphics/Camera.h
r8706 r9629 46 46 47 47 public: 48 Camera( BaseObject* creator);48 Camera(Context* context); 49 49 virtual ~Camera(); 50 50 -
code/branches/core6/src/orxonox/graphics/FadingBillboard.cc
r5929 r9629 36 36 CreateFactory(FadingBillboard); 37 37 38 FadingBillboard::FadingBillboard( BaseObject* creator) : Billboard(creator)38 FadingBillboard::FadingBillboard(Context* context) : Billboard(context) 39 39 { 40 40 RegisterObject(FadingBillboard); -
code/branches/core6/src/orxonox/graphics/FadingBillboard.h
r7163 r9629 42 42 { 43 43 public: 44 FadingBillboard( BaseObject* creator);44 FadingBillboard(Context* context); 45 45 virtual ~FadingBillboard(); 46 46 -
code/branches/core6/src/orxonox/graphics/GlobalShader.cc
r8079 r9629 38 38 CreateFactory(GlobalShader); 39 39 40 GlobalShader::GlobalShader( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)40 GlobalShader::GlobalShader(Context* context) : BaseObject(context), Synchronisable(context) 41 41 { 42 42 RegisterObject(GlobalShader); -
code/branches/core6/src/orxonox/graphics/GlobalShader.h
r8079 r9629 41 41 { 42 42 public: 43 GlobalShader( BaseObject* creator);43 GlobalShader(Context* context); 44 44 virtual ~GlobalShader(); 45 45 -
code/branches/core6/src/orxonox/graphics/Light.cc
r5781 r9629 49 49 BOOST_STATIC_ASSERT((int)Ogre::Light::LT_SPOTLIGHT == (int)Light::Spotlight); 50 50 51 Light::Light( BaseObject* creator) : StaticEntity(creator)51 Light::Light(Context* context) : StaticEntity(context) 52 52 { 53 53 RegisterObject(Light); -
code/branches/core6/src/orxonox/graphics/Light.h
r7401 r9629 53 53 54 54 public: 55 Light( BaseObject* creator);55 Light(Context* context); 56 56 virtual ~Light(); 57 57 -
code/branches/core6/src/orxonox/graphics/MeshLodInformation.cc
r7183 r9629 40 40 CreateFactory(MeshLodInformation); 41 41 42 MeshLodInformation::MeshLodInformation( BaseObject* creator)43 : BaseObject(c reator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15f)42 MeshLodInformation::MeshLodInformation(Context* context) 43 : BaseObject(context), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15f) 44 44 { 45 45 RegisterObject(MeshLodInformation); -
code/branches/core6/src/orxonox/graphics/MeshLodInformation.h
r7163 r9629 41 41 { 42 42 public: 43 MeshLodInformation( BaseObject* creator);43 MeshLodInformation(Context* context); 44 44 virtual ~MeshLodInformation(); 45 45 -
code/branches/core6/src/orxonox/graphics/Model.cc
r9558 r9629 43 43 CreateFactory(Model); 44 44 45 Model::Model( BaseObject* creator) :46 StaticEntity(c reator), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15f)45 Model::Model(Context* context) : 46 StaticEntity(context), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15f) 47 47 { 48 48 RegisterObject(Model); -
code/branches/core6/src/orxonox/graphics/Model.h
r7166 r9629 41 41 { 42 42 public: 43 Model( BaseObject* creator);43 Model(Context* context); 44 44 virtual ~Model(); 45 45 -
code/branches/core6/src/orxonox/graphics/ParticleEmitter.cc
r9589 r9629 45 45 CreateFactory(ParticleEmitter); 46 46 47 ParticleEmitter::ParticleEmitter( BaseObject* creator) : StaticEntity(creator)47 ParticleEmitter::ParticleEmitter(Context* context) : StaticEntity(context) 48 48 { 49 49 RegisterObject(ParticleEmitter); -
code/branches/core6/src/orxonox/graphics/ParticleEmitter.h
r7904 r9629 40 40 { 41 41 public: 42 ParticleEmitter( BaseObject* creator);42 ParticleEmitter(Context* context); 43 43 virtual ~ParticleEmitter(); 44 44 -
code/branches/core6/src/orxonox/graphics/ParticleSpawner.cc
r7284 r9629 39 39 CreateFactory(ParticleSpawner); 40 40 41 ParticleSpawner::ParticleSpawner( BaseObject* creator) : ParticleEmitter(creator)41 ParticleSpawner::ParticleSpawner(Context* context) : ParticleEmitter(context) 42 42 { 43 43 RegisterObject(ParticleSpawner); -
code/branches/core6/src/orxonox/graphics/ParticleSpawner.h
r5929 r9629 40 40 { 41 41 public: 42 ParticleSpawner( BaseObject* creator);42 ParticleSpawner(Context* context); 43 43 virtual ~ParticleSpawner(); 44 44 -
code/branches/core6/src/orxonox/infos/Bot.cc
r9558 r9629 40 40 CreateFactory(Bot); 41 41 42 Bot::Bot( BaseObject* creator) : PlayerInfo(creator)42 Bot::Bot(Context* context) : PlayerInfo(context) 43 43 { 44 44 RegisterObject(Bot); -
code/branches/core6/src/orxonox/infos/Bot.h
r5781 r9629 40 40 { 41 41 public: 42 Bot( BaseObject* creator);42 Bot(Context* context); 43 43 virtual ~Bot(); 44 44 -
code/branches/core6/src/orxonox/infos/GametypeInfo.cc
r9348 r9629 65 65 Registers and initializes the object. 66 66 */ 67 GametypeInfo::GametypeInfo( BaseObject* creator) : Info(creator)67 GametypeInfo::GametypeInfo(Context* context) : Info(context) 68 68 { 69 69 RegisterObject(GametypeInfo); -
code/branches/core6/src/orxonox/infos/GametypeInfo.h
r9348 r9629 58 58 59 59 public: 60 GametypeInfo( BaseObject* creator);60 GametypeInfo(Context* context); 61 61 virtual ~GametypeInfo(); 62 62 -
code/branches/core6/src/orxonox/infos/HumanPlayer.cc
r9558 r9629 43 43 CreateUnloadableFactory(HumanPlayer); 44 44 45 HumanPlayer::HumanPlayer( BaseObject* creator) : PlayerInfo(creator)45 HumanPlayer::HumanPlayer(Context* context) : PlayerInfo(context) 46 46 { 47 47 RegisterObject(HumanPlayer); … … 183 183 if (this->isLocalPlayer() && !this->humanHudTemplate_.empty() && GameMode::showsGraphics()) 184 184 { 185 this->humanHud_ = new OverlayGroup(this );185 this->humanHud_ = new OverlayGroup(this->getContext()); 186 186 this->humanHud_->addTemplate(this->humanHudTemplate_); 187 187 this->humanHud_->setOwner(this); … … 199 199 if (this->isLocalPlayer() && !this->gametypeHudTemplate_.empty()) 200 200 { 201 this->gametypeHud_ = new OverlayGroup(this );201 this->gametypeHud_ = new OverlayGroup(this->getContext()); 202 202 this->gametypeHud_->addTemplate(this->gametypeHudTemplate_); 203 203 this->gametypeHud_->setOwner(this); -
code/branches/core6/src/orxonox/infos/HumanPlayer.h
r7163 r9629 40 40 { 41 41 public: 42 HumanPlayer( BaseObject* creator);42 HumanPlayer(Context* context); 43 43 virtual ~HumanPlayer(); 44 44 -
code/branches/core6/src/orxonox/infos/Info.cc
r5781 r9629 32 32 namespace orxonox 33 33 { 34 Info::Info( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)34 Info::Info(Context* context) : BaseObject(context), Synchronisable(context) 35 35 { 36 36 RegisterObject(Info); -
code/branches/core6/src/orxonox/infos/Info.h
r5781 r9629 40 40 { 41 41 public: 42 Info( BaseObject* creator);42 Info(Context* context); 43 43 virtual ~Info() {} 44 44 }; -
code/branches/core6/src/orxonox/infos/PlayerInfo.cc
r9348 r9629 40 40 namespace orxonox 41 41 { 42 PlayerInfo::PlayerInfo( BaseObject* creator) : Info(creator)42 PlayerInfo::PlayerInfo(Context* context) : Info(context) 43 43 { 44 44 RegisterObject(PlayerInfo); … … 136 136 this->controller_ = 0; 137 137 } 138 this->controller_ = this->defaultController_.fabricate(this );138 this->controller_ = this->defaultController_.fabricate(this->getContext()); 139 139 assert(this->controller_); 140 140 this->controller_->setPlayer(this); -
code/branches/core6/src/orxonox/infos/PlayerInfo.h
r9563 r9629 41 41 { // tolua_export 42 42 public: 43 PlayerInfo( BaseObject* creator);43 PlayerInfo(Context* context); 44 44 virtual ~PlayerInfo(); 45 45 -
code/branches/core6/src/orxonox/items/Engine.cc
r9558 r9629 46 46 Constructor. Registers and initializes the object. 47 47 */ 48 Engine::Engine( BaseObject* creator) : Item(creator)48 Engine::Engine(Context* context) : Item(context) 49 49 { 50 50 RegisterObject(Engine); -
code/branches/core6/src/orxonox/items/Engine.h
r8727 r9629 56 56 { 57 57 public: 58 Engine( BaseObject* creator);58 Engine(Context* context); 59 59 virtual ~Engine(); 60 60 -
code/branches/core6/src/orxonox/items/Item.cc
r5781 r9629 32 32 namespace orxonox 33 33 { 34 Item::Item( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)34 Item::Item(Context* context) : BaseObject(context), Synchronisable(context) 35 35 { 36 36 RegisterObject(Item); -
code/branches/core6/src/orxonox/items/Item.h
r5781 r9629 40 40 { 41 41 public: 42 Item( BaseObject* creator);42 Item(Context* context); 43 43 virtual ~Item() {} 44 44 }; -
code/branches/core6/src/orxonox/items/MultiStateEngine.cc
r8727 r9629 51 51 CreateFactory(MultiStateEngine); 52 52 53 MultiStateEngine::MultiStateEngine( BaseObject* creator) : Engine(creator)53 MultiStateEngine::MultiStateEngine(Context* context) : Engine(context) 54 54 { 55 55 RegisterObject(MultiStateEngine); … … 57 57 if (GameMode::isMaster()) 58 58 { 59 this->defEngineSndNormal_ = new WorldSound(this );60 this->defEngineSndBoost_ = new WorldSound(this );59 this->defEngineSndNormal_ = new WorldSound(this->getContext()); 60 this->defEngineSndBoost_ = new WorldSound(this->getContext()); 61 61 this->defEngineSndNormal_->setLooping(true); 62 62 this->defEngineSndBoost_->setLooping(true); -
code/branches/core6/src/orxonox/items/MultiStateEngine.h
r8727 r9629 49 49 }; 50 50 51 MultiStateEngine( BaseObject* creator);51 MultiStateEngine(Context* context); 52 52 virtual ~MultiStateEngine(); 53 53 -
code/branches/core6/src/orxonox/overlays/GUISheet.cc
r7401 r9629 38 38 CreateFactory(GUISheet); 39 39 40 GUISheet::GUISheet( BaseObject* creator)41 : BaseObject(c reator)40 GUISheet::GUISheet(Context* context) 41 : BaseObject(context) 42 42 , bShowOnLoad_(false) 43 43 , bHidePrevious_(false) -
code/branches/core6/src/orxonox/overlays/GUISheet.h
r7401 r9629 41 41 { 42 42 public: 43 GUISheet( BaseObject* creator);43 GUISheet(Context* context); 44 44 ~GUISheet(); 45 45 -
code/branches/core6/src/orxonox/overlays/OrxonoxOverlay.cc
r8858 r9629 63 63 SetConsoleCommand("OrxonoxOverlay", "rotateOverlay", &OrxonoxOverlay::rotateOverlay); 64 64 65 OrxonoxOverlay::OrxonoxOverlay( BaseObject* creator)66 : BaseObject(c reator)65 OrxonoxOverlay::OrxonoxOverlay(Context* context) 66 : BaseObject(context) 67 67 { 68 68 RegisterObject(OrxonoxOverlay); -
code/branches/core6/src/orxonox/overlays/OrxonoxOverlay.h
r9563 r9629 87 87 88 88 public: 89 OrxonoxOverlay( BaseObject* creator);89 OrxonoxOverlay(Context* context); 90 90 virtual ~OrxonoxOverlay(); 91 91 -
code/branches/core6/src/orxonox/overlays/OverlayGroup.cc
r8309 r9629 48 48 SetConsoleCommand("OverlayGroup", "scrollGroup", &OverlayGroup::scrollGroup); 49 49 50 OverlayGroup::OverlayGroup( BaseObject* creator)51 : BaseObject(c reator)50 OverlayGroup::OverlayGroup(Context* context) 51 : BaseObject(context) 52 52 { 53 53 RegisterObject(OverlayGroup); -
code/branches/core6/src/orxonox/overlays/OverlayGroup.h
r8309 r9629 54 54 { 55 55 public: 56 OverlayGroup( BaseObject* creator);56 OverlayGroup(Context* context); 57 57 //! Empty destructor. 58 58 ~OverlayGroup(); -
code/branches/core6/src/orxonox/sound/WorldAmbientSound.cc
r7854 r9629 38 38 CreateFactory(WorldAmbientSound); 39 39 40 WorldAmbientSound::WorldAmbientSound( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)40 WorldAmbientSound::WorldAmbientSound(Context* context) : BaseObject(context), Synchronisable(context) 41 41 { 42 42 RegisterObject(WorldAmbientSound); -
code/branches/core6/src/orxonox/sound/WorldAmbientSound.h
r7854 r9629 44 44 { 45 45 public: 46 WorldAmbientSound( BaseObject* creator);46 WorldAmbientSound(Context* context); 47 47 virtual ~WorldAmbientSound(); 48 48 -
code/branches/core6/src/orxonox/sound/WorldSound.cc
r8858 r9629 43 43 CreateFactory(WorldSound); 44 44 45 WorldSound::WorldSound( BaseObject* creator)46 : StaticEntity(c reator)45 WorldSound::WorldSound(Context* context) 46 : StaticEntity(context) 47 47 { 48 48 RegisterObject(WorldSound); -
code/branches/core6/src/orxonox/sound/WorldSound.h
r7854 r9629 45 45 { 46 46 public: 47 WorldSound( BaseObject* creator);47 WorldSound(Context* context); 48 48 49 49 void XMLPort(Element& xmlelement, XMLPort::Mode mode); -
code/branches/core6/src/orxonox/weaponsystem/DefaultWeaponmodeLink.cc
r5781 r9629 37 37 CreateFactory(DefaultWeaponmodeLink); 38 38 39 DefaultWeaponmodeLink::DefaultWeaponmodeLink( BaseObject* creator) : BaseObject(creator)39 DefaultWeaponmodeLink::DefaultWeaponmodeLink(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(DefaultWeaponmodeLink); -
code/branches/core6/src/orxonox/weaponsystem/DefaultWeaponmodeLink.h
r5781 r9629 39 39 { 40 40 public: 41 DefaultWeaponmodeLink( BaseObject* creator);41 DefaultWeaponmodeLink(Context* context); 42 42 virtual ~DefaultWeaponmodeLink(); 43 43 -
code/branches/core6/src/orxonox/weaponsystem/Munition.cc
r8729 r9629 37 37 CreateFactory(Munition); 38 38 39 Munition::Munition( BaseObject* creator) : BaseObject(creator)39 Munition::Munition(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(Munition); -
code/branches/core6/src/orxonox/weaponsystem/Munition.h
r7851 r9629 56 56 57 57 public: 58 Munition( BaseObject* creator);58 Munition(Context* context); 59 59 virtual ~Munition(); 60 60 -
code/branches/core6/src/orxonox/weaponsystem/Weapon.cc
r5929 r9629 41 41 CreateFactory(Weapon); 42 42 43 Weapon::Weapon( BaseObject* creator) : StaticEntity(creator)43 Weapon::Weapon(Context* context) : StaticEntity(context) 44 44 { 45 45 RegisterObject(Weapon); -
code/branches/core6/src/orxonox/weaponsystem/Weapon.h
r5929 r9629 42 42 { 43 43 public: 44 Weapon( BaseObject* creator);44 Weapon(Context* context); 45 45 virtual ~Weapon(); 46 46 -
code/branches/core6/src/orxonox/weaponsystem/WeaponMode.cc
r8858 r9629 45 45 namespace orxonox 46 46 { 47 WeaponMode::WeaponMode( BaseObject* creator) : BaseObject(creator)47 WeaponMode::WeaponMode(Context* context) : BaseObject(context) 48 48 { 49 49 RegisterObject(WeaponMode); … … 75 75 if( GameMode::isMaster() ) 76 76 { 77 this->defSndWpnFire_ = new WorldSound(this );77 this->defSndWpnFire_ = new WorldSound(this->getContext()); 78 78 this->defSndWpnFire_->setLooping(false); 79 79 this->bSoundAttached_ = false; -
code/branches/core6/src/orxonox/weaponsystem/WeaponMode.h
r9563 r9629 44 44 { 45 45 public: 46 WeaponMode( BaseObject* creator);46 WeaponMode(Context* context); 47 47 virtual ~WeaponMode(); 48 48 -
code/branches/core6/src/orxonox/weaponsystem/WeaponPack.cc
r6417 r9629 40 40 CreateFactory(WeaponPack); 41 41 42 WeaponPack::WeaponPack( BaseObject* creator) : BaseObject(creator)42 WeaponPack::WeaponPack(Context* context) : BaseObject(context) 43 43 { 44 44 RegisterObject(WeaponPack); -
code/branches/core6/src/orxonox/weaponsystem/WeaponPack.h
r6417 r9629 41 41 { 42 42 public: 43 WeaponPack( BaseObject* creator);43 WeaponPack(Context* context); 44 44 virtual ~WeaponPack(); 45 45 -
code/branches/core6/src/orxonox/weaponsystem/WeaponSet.cc
r5781 r9629 39 39 CreateFactory(WeaponSet); 40 40 41 WeaponSet::WeaponSet( BaseObject* creator) : BaseObject(creator)41 WeaponSet::WeaponSet(Context* context) : BaseObject(context) 42 42 { 43 43 RegisterObject(WeaponSet); -
code/branches/core6/src/orxonox/weaponsystem/WeaponSet.h
r5781 r9629 41 41 { 42 42 public: 43 WeaponSet( BaseObject* creator);43 WeaponSet(Context* context); 44 44 virtual ~WeaponSet(); 45 45 -
code/branches/core6/src/orxonox/weaponsystem/WeaponSlot.cc
r8706 r9629 39 39 CreateFactory(WeaponSlot); 40 40 41 WeaponSlot::WeaponSlot( BaseObject* creator) : StaticEntity(creator)41 WeaponSlot::WeaponSlot(Context* context) : StaticEntity(context) 42 42 { 43 43 RegisterObject(WeaponSlot); -
code/branches/core6/src/orxonox/weaponsystem/WeaponSlot.h
r8891 r9629 57 57 { 58 58 public: 59 WeaponSlot( BaseObject* creator);59 WeaponSlot(Context* context); 60 60 virtual ~WeaponSlot(); 61 61 -
code/branches/core6/src/orxonox/weaponsystem/WeaponSystem.cc
r9563 r9629 48 48 CreateFactory(WeaponSystem); 49 49 50 WeaponSystem::WeaponSystem( BaseObject* creator) : BaseObject(creator)50 WeaponSystem::WeaponSystem(Context* context) : BaseObject(context) 51 51 { 52 52 RegisterObject(WeaponSystem); … … 308 308 else if (identifier->getIdentifier()->isA(Class(Munition))) 309 309 { 310 Munition* munition = identifier->fabricate(this );310 Munition* munition = identifier->fabricate(this->getContext()); 311 311 this->munitions_[identifier->getIdentifier()] = munition; 312 312 return munition; -
code/branches/core6/src/orxonox/weaponsystem/WeaponSystem.h
r6417 r9629 43 43 { 44 44 public: 45 WeaponSystem( BaseObject* creator);45 WeaponSystem(Context* context); 46 46 virtual ~WeaponSystem(); 47 47 -
code/branches/core6/src/orxonox/worldentities/BigExplosion.cc
r9589 r9629 43 43 CreateFactory(BigExplosion); 44 44 45 BigExplosion::BigExplosion( BaseObject* creator) : StaticEntity(creator)45 BigExplosion::BigExplosion(Context* context) : StaticEntity(context) 46 46 { 47 47 RegisterObject(BigExplosion); … … 80 80 void BigExplosion::init() 81 81 { 82 this->debrisEntity1_ = new MovableEntity(this );83 this->debrisEntity2_ = new MovableEntity(this );84 this->debrisEntity3_ = new MovableEntity(this );85 this->debrisEntity4_ = new MovableEntity(this );82 this->debrisEntity1_ = new MovableEntity(this->getContext()); 83 this->debrisEntity2_ = new MovableEntity(this->getContext()); 84 this->debrisEntity3_ = new MovableEntity(this->getContext()); 85 this->debrisEntity4_ = new MovableEntity(this->getContext()); 86 86 87 87 this->debrisEntity1_->setSyncMode(0); … … 90 90 this->debrisEntity4_->setSyncMode(0); 91 91 92 this->debris1_ = new Model(this );93 this->debris2_ = new Model(this );94 this->debris3_ = new Model(this );95 this->debris4_ = new Model(this );92 this->debris1_ = new Model(this->getContext()); 93 this->debris2_ = new Model(this->getContext()); 94 this->debris3_ = new Model(this->getContext()); 95 this->debris4_ = new Model(this->getContext()); 96 96 97 97 this->debris1_->setSyncMode(0); … … 100 100 this->debris4_->setSyncMode(0); 101 101 102 this->explosion_ = new StaticEntity(this );102 this->explosion_ = new StaticEntity(this->getContext()); 103 103 this->explosion_->setSyncMode(0); 104 104 … … 148 148 this->debrisEntity4_->attach(debris4_); 149 149 150 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());150 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 151 151 effect->setDestroyAfterLife(true); 152 152 effect->setSource("Orxonox/explosion2b"); … … 154 154 effect->setSyncMode(0); 155 155 156 ParticleSpawner* effect2 = new ParticleSpawner(this->getC reator());156 ParticleSpawner* effect2 = new ParticleSpawner(this->getContext()); 157 157 effect2->setDestroyAfterLife(true); 158 158 effect2->setSource("Orxonox/smoke6"); … … 172 172 for(int i=0;i<10;i++) 173 173 { 174 Model* part1 = new Model(this );175 Model* part2 = new Model(this );176 177 MovableEntity* partEntity1 = new MovableEntity(this );178 MovableEntity* partEntity2 = new MovableEntity(this );174 Model* part1 = new Model(this->getContext()); 175 Model* part2 = new Model(this->getContext()); 176 177 MovableEntity* partEntity1 = new MovableEntity(this->getContext()); 178 MovableEntity* partEntity2 = new MovableEntity(this->getContext()); 179 179 180 180 part1->setSyncMode(0); -
code/branches/core6/src/orxonox/worldentities/BigExplosion.h
r7176 r9629 40 40 { 41 41 public: 42 BigExplosion( BaseObject* creator);42 BigExplosion(Context* context); 43 43 virtual ~BigExplosion(); 44 44 -
code/branches/core6/src/orxonox/worldentities/CameraPosition.cc
r8706 r9629 37 37 CreateFactory(CameraPosition); 38 38 39 CameraPosition::CameraPosition( BaseObject* creator) : StaticEntity(creator)39 CameraPosition::CameraPosition(Context* context) : StaticEntity(context) 40 40 { 41 41 RegisterObject(CameraPosition); -
code/branches/core6/src/orxonox/worldentities/CameraPosition.h
r5781 r9629 38 38 { 39 39 public: 40 CameraPosition( BaseObject* creator);40 CameraPosition(Context* context); 41 41 virtual ~CameraPosition(); 42 42 -
code/branches/core6/src/orxonox/worldentities/ControllableEntity.cc
r9558 r9629 52 52 registerMemberNetworkFunction( ControllableEntity, setTargetInternal ); 53 53 54 ControllableEntity::ControllableEntity( BaseObject* creator) : MobileEntity(creator)54 ControllableEntity::ControllableEntity(Context* context) : MobileEntity(context) 55 55 { 56 56 RegisterObject(ControllableEntity); … … 397 397 if (!this->camera_ && GameMode::showsGraphics()) 398 398 { 399 this->camera_ = new Camera(this );399 this->camera_ = new Camera(this->getContext()); 400 400 this->camera_->requestFocus(); 401 401 if (!this->cameraPositionTemplate_.empty()) … … 423 423 if (!this->hudtemplate_.empty()) 424 424 { 425 this->hud_ = new OverlayGroup(this );425 this->hud_ = new OverlayGroup(this->getContext()); 426 426 this->hud_->addTemplate(this->hudtemplate_); 427 427 this->hud_->setOwner(this); -
code/branches/core6/src/orxonox/worldentities/ControllableEntity.h
r9348 r9629 44 44 45 45 public: 46 ControllableEntity( BaseObject* creator);46 ControllableEntity(Context* context); 47 47 virtual ~ControllableEntity(); 48 48 -
code/branches/core6/src/orxonox/worldentities/Drone.cc
r7163 r9629 39 39 Constructor. Registers the object and initializes some default values. 40 40 */ 41 Drone::Drone( BaseObject* creator) : Pawn(creator)41 Drone::Drone(Context* context) : Pawn(context) 42 42 { 43 43 RegisterObject(Drone); … … 50 50 this->setCollisionType(WorldEntity::Dynamic); 51 51 52 myController_ = new DroneController( static_cast<BaseObject*>(this)); //!< Creates a new controller and passes our this pointer to it as creator.52 myController_ = new DroneController(this->getContext()); //!< Creates a new controller and passes our this pointer to it as creator. 53 53 myController_->setDrone(this); 54 54 -
code/branches/core6/src/orxonox/worldentities/Drone.h
r7163 r9629 47 47 { 48 48 public: 49 Drone( BaseObject* creator);49 Drone(Context* context); 50 50 virtual ~Drone(); 51 51 -
code/branches/core6/src/orxonox/worldentities/EffectContainer.cc
r6417 r9629 42 42 CreateFactory(EffectContainer); 43 43 44 EffectContainer::EffectContainer( BaseObject* creator)45 : BaseObject(c reator)44 EffectContainer::EffectContainer(Context* context) 45 : BaseObject(context) 46 46 , lua_(NULL) 47 47 { -
code/branches/core6/src/orxonox/worldentities/EffectContainer.h
r6417 r9629 40 40 { 41 41 public: 42 EffectContainer( BaseObject* creator);42 EffectContainer(Context* context); 43 43 virtual ~EffectContainer(); 44 44 -
code/branches/core6/src/orxonox/worldentities/ExplosionChunk.cc
r9589 r9629 40 40 CreateFactory(ExplosionChunk); 41 41 42 ExplosionChunk::ExplosionChunk( BaseObject* creator) : MovableEntity(creator)42 ExplosionChunk::ExplosionChunk(Context* context) : MovableEntity(context) 43 43 { 44 44 RegisterObject(ExplosionChunk); -
code/branches/core6/src/orxonox/worldentities/ExplosionChunk.h
r7163 r9629 40 40 { 41 41 public: 42 ExplosionChunk( BaseObject* creator);42 ExplosionChunk(Context* context); 43 43 virtual ~ExplosionChunk(); 44 44 -
code/branches/core6/src/orxonox/worldentities/MobileEntity.cc
r8858 r9629 39 39 namespace orxonox 40 40 { 41 MobileEntity::MobileEntity( BaseObject* creator) : WorldEntity(creator)41 MobileEntity::MobileEntity(Context* context) : WorldEntity(context) 42 42 { 43 43 RegisterObject(MobileEntity); -
code/branches/core6/src/orxonox/worldentities/MobileEntity.h
r8727 r9629 41 41 { 42 42 public: 43 MobileEntity( BaseObject* creator);43 MobileEntity(Context* context); 44 44 virtual ~MobileEntity(); 45 45 -
code/branches/core6/src/orxonox/worldentities/MovableEntity.cc
r7284 r9629 43 43 CreateFactory(MovableEntity); 44 44 45 MovableEntity::MovableEntity( BaseObject* creator) : MobileEntity(creator)45 MovableEntity::MovableEntity(Context* context) : MobileEntity(context) 46 46 { 47 47 RegisterObject(MovableEntity); -
code/branches/core6/src/orxonox/worldentities/MovableEntity.h
r7163 r9629 43 43 { 44 44 public: 45 MovableEntity( BaseObject* creator);45 MovableEntity(Context* context); 46 46 virtual ~MovableEntity(); 47 47 -
code/branches/core6/src/orxonox/worldentities/SpawnPoint.cc
r8858 r9629 39 39 CreateFactory(SpawnPoint); 40 40 41 SpawnPoint::SpawnPoint( BaseObject* creator) : StaticEntity(creator)41 SpawnPoint::SpawnPoint(Context* context) : StaticEntity(context) 42 42 { 43 43 RegisterObject(SpawnPoint); … … 81 81 Pawn* SpawnPoint::spawn() 82 82 { 83 Pawn* entity = this->spawnclass_.fabricate(this );83 Pawn* entity = this->spawnclass_.fabricate(this->getContext()); 84 84 if (entity) 85 85 { -
code/branches/core6/src/orxonox/worldentities/SpawnPoint.h
r9563 r9629 41 41 { 42 42 public: 43 SpawnPoint( BaseObject* creator);43 SpawnPoint(Context* context); 44 44 virtual ~SpawnPoint() {} 45 45 -
code/branches/core6/src/orxonox/worldentities/StaticEntity.cc
r8858 r9629 39 39 CreateFactory(StaticEntity); 40 40 41 StaticEntity::StaticEntity( BaseObject* creator) : WorldEntity(creator)41 StaticEntity::StaticEntity(Context* context) : WorldEntity(context) 42 42 { 43 43 RegisterObject(StaticEntity); -
code/branches/core6/src/orxonox/worldentities/StaticEntity.h
r7163 r9629 39 39 { 40 40 public: 41 StaticEntity( BaseObject* creator);41 StaticEntity(Context* context); 42 42 virtual ~StaticEntity(); 43 43 -
code/branches/core6/src/orxonox/worldentities/TeamSpawnPoint.cc
r5781 r9629 36 36 CreateFactory(TeamSpawnPoint); 37 37 38 TeamSpawnPoint::TeamSpawnPoint( BaseObject* creator) : SpawnPoint(creator)38 TeamSpawnPoint::TeamSpawnPoint(Context* context) : SpawnPoint(context) 39 39 { 40 40 RegisterObject(TeamSpawnPoint); -
code/branches/core6/src/orxonox/worldentities/TeamSpawnPoint.h
r5781 r9629 40 40 { 41 41 public: 42 TeamSpawnPoint( BaseObject* creator);42 TeamSpawnPoint(Context* context); 43 43 virtual ~TeamSpawnPoint() {} 44 44 -
code/branches/core6/src/orxonox/worldentities/WorldEntity.cc
r9612 r9629 66 66 All the default values are being set here. 67 67 */ 68 WorldEntity::WorldEntity( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)68 WorldEntity::WorldEntity(Context* context) : BaseObject(context), Synchronisable(context) 69 69 { 70 70 RegisterObject(WorldEntity); … … 92 92 this->bPhysicsActiveSynchronised_ = false; 93 93 this->bPhysicsActiveBeforeAttaching_ = false; 94 this->collisionShape_ = new WorldEntityCollisionShape(this );94 this->collisionShape_ = new WorldEntityCollisionShape(this->getContext()); 95 95 this->collisionShape_->setWorldEntityOwner(this); 96 96 this->collisionType_ = None; -
code/branches/core6/src/orxonox/worldentities/WorldEntity.h
r7910 r9629 90 90 91 91 public: 92 WorldEntity( BaseObject* creator);92 WorldEntity(Context* context); 93 93 virtual ~WorldEntity(); 94 94 -
code/branches/core6/src/orxonox/worldentities/pawns/Destroyer.cc
r5929 r9629 36 36 CreateFactory(Destroyer); 37 37 38 Destroyer::Destroyer( BaseObject* creator) : SpaceShip(creator)38 Destroyer::Destroyer(Context* context) : SpaceShip(context) 39 39 { 40 40 RegisterObject(Destroyer); -
code/branches/core6/src/orxonox/worldentities/pawns/Destroyer.h
r5781 r9629 39 39 { 40 40 public: 41 Destroyer( BaseObject* creator);41 Destroyer(Context* context); 42 42 virtual ~Destroyer() {}; 43 43 -
code/branches/core6/src/orxonox/worldentities/pawns/FpsPlayer.cc
r9558 r9629 55 55 CreateFactory(FpsPlayer); 56 56 57 FpsPlayer::FpsPlayer( BaseObject* creator) : Pawn(creator)57 FpsPlayer::FpsPlayer(Context* context) : Pawn(context) 58 58 { 59 59 RegisterObject(FpsPlayer); -
code/branches/core6/src/orxonox/worldentities/pawns/FpsPlayer.h
r9016 r9629 43 43 { 44 44 public: 45 FpsPlayer( BaseObject* creator);45 FpsPlayer(Context* context); 46 46 virtual ~FpsPlayer(); 47 47 -
code/branches/core6/src/orxonox/worldentities/pawns/Pawn.cc
r9554 r9629 51 51 CreateFactory(Pawn); 52 52 53 Pawn::Pawn( BaseObject* creator)54 : ControllableEntity(c reator)55 , RadarViewable( creator, static_cast<WorldEntity*>(this))53 Pawn::Pawn(Context* context) 54 : ControllableEntity(context) 55 , RadarViewable(this, static_cast<WorldEntity*>(this)) 56 56 { 57 57 RegisterObject(Pawn); … … 84 84 if (GameMode::isMaster()) 85 85 { 86 this->weaponSystem_ = new WeaponSystem(this );86 this->weaponSystem_ = new WeaponSystem(this->getContext()); 87 87 this->weaponSystem_->setPawn(this); 88 88 } … … 297 297 if (!this->spawnparticlesource_.empty()) 298 298 { 299 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());299 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 300 300 effect->setPosition(this->getPosition()); 301 301 effect->setOrientation(this->getOrientation()); … … 334 334 this->setDestroyWhenPlayerLeft(false); 335 335 336 BigExplosion* chunk = new BigExplosion(this->getC reator());336 BigExplosion* chunk = new BigExplosion(this->getContext()); 337 337 chunk->setPosition(this->getPosition()); 338 338 … … 342 342 // play death effect 343 343 { 344 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());344 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 345 345 effect->setPosition(this->getPosition()); 346 346 effect->setOrientation(this->getOrientation()); … … 350 350 } 351 351 { 352 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());352 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 353 353 effect->setPosition(this->getPosition()); 354 354 effect->setOrientation(this->getOrientation()); … … 358 358 } 359 359 { 360 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());360 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 361 361 effect->setPosition(this->getPosition()); 362 362 effect->setOrientation(this->getOrientation()); … … 367 367 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 368 368 { 369 ExplosionChunk* chunk = new ExplosionChunk(this->getC reator());369 ExplosionChunk* chunk = new ExplosionChunk(this->getContext()); 370 370 chunk->setPosition(this->getPosition()); 371 371 } -
code/branches/core6/src/orxonox/worldentities/pawns/Pawn.h
r9348 r9629 45 45 46 46 public: 47 Pawn( BaseObject* creator);47 Pawn(Context* context); 48 48 virtual ~Pawn(); 49 49 -
code/branches/core6/src/orxonox/worldentities/pawns/SpaceShip.cc
r9589 r9629 48 48 CreateFactory(SpaceShip); 49 49 50 SpaceShip::SpaceShip( BaseObject* creator) : Pawn(creator), boostBlur_(NULL)50 SpaceShip::SpaceShip(Context* context) : Pawn(context), boostBlur_(NULL) 51 51 { 52 52 RegisterObject(SpaceShip); -
code/branches/core6/src/orxonox/worldentities/pawns/SpaceShip.h
r8727 r9629 88 88 { 89 89 public: 90 SpaceShip( BaseObject* creator);90 SpaceShip(Context* context); 91 91 virtual ~SpaceShip(); 92 92 -
code/branches/core6/src/orxonox/worldentities/pawns/Spectator.cc
r9558 r9629 47 47 CreateFactory(Spectator); 48 48 49 Spectator::Spectator( BaseObject* creator) : ControllableEntity(creator)49 Spectator::Spectator(Context* context) : ControllableEntity(context) 50 50 { 51 51 RegisterObject(Spectator); -
code/branches/core6/src/orxonox/worldentities/pawns/Spectator.h
r7862 r9629 40 40 { 41 41 public: 42 Spectator( BaseObject* creator);42 Spectator(Context* context); 43 43 virtual ~Spectator(); 44 44 -
code/branches/core6/src/orxonox/worldentities/pawns/TeamBaseMatchBase.cc
r5929 r9629 39 39 CreateFactory(TeamBaseMatchBase); 40 40 41 TeamBaseMatchBase::TeamBaseMatchBase( BaseObject* creator) : Pawn(creator)41 TeamBaseMatchBase::TeamBaseMatchBase(Context* context) : Pawn(context) 42 42 { 43 43 RegisterObject(TeamBaseMatchBase); -
code/branches/core6/src/orxonox/worldentities/pawns/TeamBaseMatchBase.h
r5781 r9629 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.