Index: code/branches/core6/src/modules/designtools/CreateStars.cc
===================================================================
--- code/branches/core6/src/modules/designtools/CreateStars.cc	(revision 9600)
+++ code/branches/core6/src/modules/designtools/CreateStars.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(CreateStars);
 
-    CreateStars::CreateStars(BaseObject* creator) : BaseObject(creator)
+    CreateStars::CreateStars(Context* context) : BaseObject(context)
     {
         RegisterObject(CreateStars);
@@ -69,5 +69,5 @@
         for(int i=0; i < numStars_; i++)
         {
-            Billboard* bb = new Billboard(this);
+            Billboard* bb = new Billboard(this->getContext());
 
             float r = rnd(-colourDiff_,colourDiff_);
Index: code/branches/core6/src/modules/designtools/CreateStars.h
===================================================================
--- code/branches/core6/src/modules/designtools/CreateStars.h	(revision 9600)
+++ code/branches/core6/src/modules/designtools/CreateStars.h	(revision 9629)
@@ -38,5 +38,5 @@
     {
         public:
-            CreateStars(orxonox::BaseObject* creator);
+            CreateStars(Context* context);
             virtual ~CreateStars();
 
Index: code/branches/core6/src/modules/docking/Dock.cc
===================================================================
--- code/branches/core6/src/modules/docking/Dock.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/Dock.cc	(revision 9629)
@@ -53,5 +53,5 @@
     registerStaticNetworkFunction(Dock::showDockingDialog);
 
-    Dock::Dock(BaseObject* creator) : StaticEntity(creator)
+    Dock::Dock(Context* context) : StaticEntity(context)
     {
         RegisterObject(Dock);
Index: code/branches/core6/src/modules/docking/Dock.h
===================================================================
--- code/branches/core6/src/modules/docking/Dock.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/Dock.h	(revision 9629)
@@ -57,5 +57,5 @@
     { // tolua_export
         public:
-            Dock(BaseObject* creator);
+            Dock(Context* context);
             virtual ~Dock();
 
Index: code/branches/core6/src/modules/docking/DockToShip.cc
===================================================================
--- code/branches/core6/src/modules/docking/DockToShip.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockToShip.cc	(revision 9629)
@@ -40,5 +40,5 @@
     CreateFactory(DockToShip);
 
-    DockToShip::DockToShip(BaseObject* creator) : DockingEffect(creator)
+    DockToShip::DockToShip(Context* context) : DockingEffect(context)
     {
         RegisterObject(DockToShip);
Index: code/branches/core6/src/modules/docking/DockToShip.h
===================================================================
--- code/branches/core6/src/modules/docking/DockToShip.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockToShip.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            DockToShip(BaseObject* creator);
+            DockToShip(Context* context);
             virtual ~DockToShip();
 
Index: code/branches/core6/src/modules/docking/DockingAnimation.cc
===================================================================
--- code/branches/core6/src/modules/docking/DockingAnimation.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingAnimation.cc	(revision 9629)
@@ -39,5 +39,5 @@
 namespace orxonox
 {
-    DockingAnimation::DockingAnimation(BaseObject* creator) : BaseObject(creator)
+    DockingAnimation::DockingAnimation(Context* context) : BaseObject(context)
     {
         RegisterObject(DockingAnimation);
Index: code/branches/core6/src/modules/docking/DockingAnimation.h
===================================================================
--- code/branches/core6/src/modules/docking/DockingAnimation.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingAnimation.h	(revision 9629)
@@ -63,5 +63,5 @@
     {
         public:
-            DockingAnimation(BaseObject* creator);
+            DockingAnimation(Context* context);
             virtual ~DockingAnimation();
 
Index: code/branches/core6/src/modules/docking/DockingController.cc
===================================================================
--- code/branches/core6/src/modules/docking/DockingController.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingController.cc	(revision 9629)
@@ -40,5 +40,5 @@
     CreateFactory(DockingController);
 
-    DockingController::DockingController(BaseObject* creator) : ArtificialController(creator)
+    DockingController::DockingController(Context* context) : ArtificialController(context)
     {
         RegisterObject(DockingController);
Index: code/branches/core6/src/modules/docking/DockingController.h
===================================================================
--- code/branches/core6/src/modules/docking/DockingController.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingController.h	(revision 9629)
@@ -42,5 +42,5 @@
     {
         public:
-            DockingController(BaseObject* creator);
+            DockingController(Context* context);
             virtual ~DockingController();
 
Index: code/branches/core6/src/modules/docking/DockingEffect.cc
===================================================================
--- code/branches/core6/src/modules/docking/DockingEffect.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingEffect.cc	(revision 9629)
@@ -37,5 +37,5 @@
 namespace orxonox
 {
-    DockingEffect::DockingEffect(BaseObject* creator) : BaseObject(creator)
+    DockingEffect::DockingEffect(Context* context) : BaseObject(context)
     {
         RegisterObject(DockingEffect);
Index: code/branches/core6/src/modules/docking/DockingEffect.h
===================================================================
--- code/branches/core6/src/modules/docking/DockingEffect.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingEffect.h	(revision 9629)
@@ -61,5 +61,5 @@
     {
         public:
-            DockingEffect(BaseObject* creator);
+            DockingEffect(Context* context);
             virtual ~DockingEffect();
 
Index: code/branches/core6/src/modules/docking/DockingTarget.cc
===================================================================
--- code/branches/core6/src/modules/docking/DockingTarget.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingTarget.cc	(revision 9629)
@@ -41,5 +41,5 @@
     CreateFactory(DockingTarget);
 
-    DockingTarget::DockingTarget(BaseObject* creator) : StaticEntity(creator)
+    DockingTarget::DockingTarget(Context* context) : StaticEntity(context)
     {
         RegisterObject(DockingTarget);
Index: code/branches/core6/src/modules/docking/DockingTarget.h
===================================================================
--- code/branches/core6/src/modules/docking/DockingTarget.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/DockingTarget.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            DockingTarget(BaseObject* creator);
+            DockingTarget(Context* context);
             virtual ~DockingTarget();
 
Index: code/branches/core6/src/modules/docking/MoveToDockingTarget.cc
===================================================================
--- code/branches/core6/src/modules/docking/MoveToDockingTarget.cc	(revision 9600)
+++ code/branches/core6/src/modules/docking/MoveToDockingTarget.cc	(revision 9629)
@@ -42,5 +42,5 @@
     CreateFactory(MoveToDockingTarget);
 
-    MoveToDockingTarget::MoveToDockingTarget(BaseObject *creator) : DockingAnimation(creator)
+    MoveToDockingTarget::MoveToDockingTarget(Context* context) : DockingAnimation(context)
     {
         RegisterObject(MoveToDockingTarget);
@@ -55,5 +55,5 @@
         assert(this->parent_);
 
-        DockingController *dockingController = new DockingController(this);
+        DockingController *dockingController = new DockingController(this->getContext());
         dockingController->setDock(this->parent_);
         dockingController->setPlayer(player);
Index: code/branches/core6/src/modules/docking/MoveToDockingTarget.h
===================================================================
--- code/branches/core6/src/modules/docking/MoveToDockingTarget.h	(revision 9600)
+++ code/branches/core6/src/modules/docking/MoveToDockingTarget.h	(revision 9629)
@@ -56,5 +56,5 @@
     {
         public:
-            MoveToDockingTarget(BaseObject* creator);
+            MoveToDockingTarget(Context* context);
             virtual ~MoveToDockingTarget();
 
Index: code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.cc	(revision 9629)
@@ -40,5 +40,5 @@
     CreateFactory(OldRaceCheckPoint);
 
-    OldRaceCheckPoint::OldRaceCheckPoint(BaseObject* creator): DistanceTrigger(creator), RadarViewable(creator, static_cast<WorldEntity*>(this))
+    OldRaceCheckPoint::OldRaceCheckPoint(Context* context): DistanceTrigger(context), RadarViewable(this, static_cast<WorldEntity*>(this))
     {
         RegisterObject(OldRaceCheckPoint);
Index: code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.h
===================================================================
--- code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/OldRaceCheckPoint.h	(revision 9629)
@@ -45,5 +45,5 @@
     {
         public:
-            OldRaceCheckPoint(BaseObject* creator);
+            OldRaceCheckPoint(Context* context);
             virtual ~OldRaceCheckPoint();
 
Index: code/branches/core6/src/modules/gametypes/OldSpaceRace.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/OldSpaceRace.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/OldSpaceRace.cc	(revision 9629)
@@ -38,5 +38,5 @@
     CreateUnloadableFactory(OldSpaceRace);
 
-    OldSpaceRace::OldSpaceRace(BaseObject* creator) : Gametype(creator)
+    OldSpaceRace::OldSpaceRace(Context* context) : Gametype(context)
     {
         RegisterObject(OldSpaceRace);
Index: code/branches/core6/src/modules/gametypes/OldSpaceRace.h
===================================================================
--- code/branches/core6/src/modules/gametypes/OldSpaceRace.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/OldSpaceRace.h	(revision 9629)
@@ -52,5 +52,5 @@
 
         public:
-            OldSpaceRace(BaseObject* creator);
+            OldSpaceRace(Context* context);
             virtual ~OldSpaceRace() {}
 
Index: code/branches/core6/src/modules/gametypes/RaceCheckPoint.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/RaceCheckPoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/RaceCheckPoint.cc	(revision 9629)
@@ -43,6 +43,6 @@
     CreateFactory(RaceCheckPoint);
 
-    RaceCheckPoint::RaceCheckPoint(BaseObject* creator) : DistanceMultiTrigger(creator),
-            RadarViewable(creator, static_cast<WorldEntity*> (this))
+    RaceCheckPoint::RaceCheckPoint(Context* context) : DistanceMultiTrigger(context),
+            RadarViewable(this, static_cast<WorldEntity*> (this))
     {
         RegisterObject(RaceCheckPoint);
Index: code/branches/core6/src/modules/gametypes/RaceCheckPoint.h
===================================================================
--- code/branches/core6/src/modules/gametypes/RaceCheckPoint.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/RaceCheckPoint.h	(revision 9629)
@@ -45,5 +45,5 @@
     {
         public:
-            RaceCheckPoint(BaseObject* creator);
+            RaceCheckPoint(Context* context);
             virtual ~RaceCheckPoint();
 
Index: code/branches/core6/src/modules/gametypes/SpaceRace.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRace.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRace.cc	(revision 9629)
@@ -42,5 +42,5 @@
     CreateUnloadableFactory(SpaceRace);
 
-    SpaceRace::SpaceRace(BaseObject* creator) : Gametype(creator)
+    SpaceRace::SpaceRace(Context* context) : Gametype(context)
     {
         RegisterObject(SpaceRace);
Index: code/branches/core6/src/modules/gametypes/SpaceRace.h
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRace.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRace.h	(revision 9629)
@@ -54,5 +54,5 @@
 
         public:
-            SpaceRace(BaseObject* creator);
+            SpaceRace(Context* context);
             virtual ~SpaceRace() {}
 
Index: code/branches/core6/src/modules/gametypes/SpaceRaceBot.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceBot.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceBot.cc	(revision 9629)
@@ -31,5 +31,5 @@
     CreateFactory(SpaceRaceBot);
 
-    SpaceRaceBot::SpaceRaceBot(BaseObject* creator) : Bot(creator){
+    SpaceRaceBot::SpaceRaceBot(Context* context) : Bot(context){
         RegisterObject(SpaceRaceBot);
         this->defaultController_ = Class(SpaceRaceController);// ClassByString("")
Index: code/branches/core6/src/modules/gametypes/SpaceRaceBot.h
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceBot.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceBot.h	(revision 9629)
@@ -41,5 +41,5 @@
     {
         public:
-        SpaceRaceBot(BaseObject* creator);
+        SpaceRaceBot(Context* context);
             virtual ~SpaceRaceBot() {}
     };
Index: code/branches/core6/src/modules/gametypes/SpaceRaceController.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceController.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceController.cc	(revision 9629)
@@ -52,6 +52,6 @@
      * Idea: Find static Point (checkpoints the spaceship has to reach)
      */
-    SpaceRaceController::SpaceRaceController(BaseObject* creator) :
-        ArtificialController(creator)
+    SpaceRaceController::SpaceRaceController(Context* context) :
+        ArtificialController(context)
     {
         RegisterObject(SpaceRaceController)
Index: code/branches/core6/src/modules/gametypes/SpaceRaceController.h
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceController.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceController.h	(revision 9629)
@@ -65,5 +65,5 @@
 
         public:
-            SpaceRaceController(BaseObject* creator);
+            SpaceRaceController(Context* context);
             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
             virtual ~SpaceRaceController();
Index: code/branches/core6/src/modules/gametypes/SpaceRaceManager.cc
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceManager.cc	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceManager.cc	(revision 9629)
@@ -42,6 +42,6 @@
     CreateFactory(SpaceRaceManager);
 
-    SpaceRaceManager::SpaceRaceManager(BaseObject* creator) :
-        BaseObject(creator)
+    SpaceRaceManager::SpaceRaceManager(Context* context) :
+        BaseObject(context)
     {
         RegisterObject(SpaceRaceManager);
Index: code/branches/core6/src/modules/gametypes/SpaceRaceManager.h
===================================================================
--- code/branches/core6/src/modules/gametypes/SpaceRaceManager.h	(revision 9600)
+++ code/branches/core6/src/modules/gametypes/SpaceRaceManager.h	(revision 9629)
@@ -55,5 +55,5 @@
 
         public:
-            SpaceRaceManager(BaseObject* creator);
+            SpaceRaceManager(Context* context);
             virtual ~SpaceRaceManager() ;
 
Index: code/branches/core6/src/modules/notifications/NotificationDispatcher.cc
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationDispatcher.cc	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationDispatcher.cc	(revision 9629)
@@ -57,5 +57,5 @@
         Default constructor. Initializes the object.
     */
-    NotificationDispatcher::NotificationDispatcher(BaseObject* creator) : BaseObject(creator), Synchronisable(creator)
+    NotificationDispatcher::NotificationDispatcher(Context* context) : BaseObject(context), Synchronisable(context)
     {
         RegisterObject(NotificationDispatcher);
Index: code/branches/core6/src/modules/notifications/NotificationDispatcher.h
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationDispatcher.h	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationDispatcher.h	(revision 9629)
@@ -76,5 +76,5 @@
     {
         public:
-            NotificationDispatcher(BaseObject* creator); //!< Default constructor. Initializes the object.
+            NotificationDispatcher(Context* context); //!< Default constructor. Initializes the object.
             virtual ~NotificationDispatcher(); //!< Destructor.
 
Index: code/branches/core6/src/modules/notifications/NotificationQueue.cc
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationQueue.cc	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationQueue.cc	(revision 9629)
@@ -52,5 +52,5 @@
         The creator of the NotificationQueue.
     */
-    NotificationQueue::NotificationQueue(BaseObject* creator) : BaseObject(creator), Synchronisable(creator), registered_(false)
+    NotificationQueue::NotificationQueue(Context* context) : BaseObject(context), Synchronisable(context), registered_(false)
     {
         RegisterObject(NotificationQueue);
Index: code/branches/core6/src/modules/notifications/NotificationQueue.h
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationQueue.h	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationQueue.h	(revision 9629)
@@ -94,5 +94,5 @@
 
         public:
-            NotificationQueue(BaseObject* creator);
+            NotificationQueue(Context* context);
             virtual ~NotificationQueue();
 
Index: code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.cc
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.cc	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.cc	(revision 9629)
@@ -50,5 +50,5 @@
     /*static*/ const std::string NotificationQueueCEGUI::NOTIFICATION_LAYER("NotificationLayer");
 
-    NotificationQueueCEGUI::NotificationQueueCEGUI(BaseObject* creator) : NotificationQueue(creator)
+    NotificationQueueCEGUI::NotificationQueueCEGUI(Context* context) : NotificationQueue(context)
     {
         RegisterObject(NotificationQueueCEGUI);
Index: code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.h
===================================================================
--- code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.h	(revision 9600)
+++ code/branches/core6/src/modules/notifications/NotificationQueueCEGUI.h	(revision 9629)
@@ -70,5 +70,5 @@
 
         public:
-            NotificationQueueCEGUI(BaseObject* creator);
+            NotificationQueueCEGUI(Context* context);
             virtual ~NotificationQueueCEGUI();
 
Index: code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.cc
===================================================================
--- code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.cc	(revision 9600)
+++ code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.cc	(revision 9629)
@@ -50,5 +50,5 @@
         Default Constructor. Registers the object and initializes variables.
     */
-    CommandNotification::CommandNotification(BaseObject* creator) : NotificationDispatcher(creator)
+    CommandNotification::CommandNotification(Context* context) : NotificationDispatcher(context)
     {
         RegisterObject(CommandNotification);
Index: code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.h
===================================================================
--- code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.h	(revision 9600)
+++ code/branches/core6/src/modules/notifications/dispatchers/CommandNotification.h	(revision 9629)
@@ -70,5 +70,5 @@
 
         public:
-            CommandNotification(BaseObject* creator); //!< Default Constructor.
+            CommandNotification(Context* context); //!< Default Constructor.
             virtual ~CommandNotification(); //!< Destructor.
 
Index: code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.cc
===================================================================
--- code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.cc	(revision 9600)
+++ code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.cc	(revision 9629)
@@ -45,5 +45,5 @@
         Default Constructor. Registers the object and initializes variables.
     */
-    SimpleNotification::SimpleNotification(BaseObject* creator) : NotificationDispatcher(creator)
+    SimpleNotification::SimpleNotification(Context* context) : NotificationDispatcher(context)
     {
         RegisterObject(SimpleNotification);
Index: code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.h
===================================================================
--- code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.h	(revision 9600)
+++ code/branches/core6/src/modules/notifications/dispatchers/SimpleNotification.h	(revision 9629)
@@ -67,5 +67,5 @@
     {
         public:
-            SimpleNotification(BaseObject* creator); //!< Default Constructor.
+            SimpleNotification(Context* context); //!< Default Constructor.
             virtual ~SimpleNotification(); //!< Destructor.
 
Index: code/branches/core6/src/modules/objects/Attacher.cc
===================================================================
--- code/branches/core6/src/modules/objects/Attacher.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/Attacher.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(Attacher);
 
-    Attacher::Attacher(BaseObject* creator) : StaticEntity(creator)
+    Attacher::Attacher(Context* context) : StaticEntity(context)
     {
         RegisterObject(Attacher);
Index: code/branches/core6/src/modules/objects/Attacher.h
===================================================================
--- code/branches/core6/src/modules/objects/Attacher.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/Attacher.h	(revision 9629)
@@ -48,5 +48,5 @@
     {
         public:
-            Attacher(BaseObject* creator);
+            Attacher(Context* context);
             virtual ~Attacher() {}
 
Index: code/branches/core6/src/modules/objects/ForceField.cc
===================================================================
--- code/branches/core6/src/modules/objects/ForceField.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/ForceField.cc	(revision 9629)
@@ -53,5 +53,5 @@
         Constructor. Registers the object and initializes some values.
     */
-    ForceField::ForceField(BaseObject* creator) : StaticEntity(creator)
+    ForceField::ForceField(Context* context) : StaticEntity(context)
     {
         RegisterObject(ForceField);
Index: code/branches/core6/src/modules/objects/ForceField.h
===================================================================
--- code/branches/core6/src/modules/objects/ForceField.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/ForceField.h	(revision 9629)
@@ -86,5 +86,5 @@
     {
         public:
-            ForceField(BaseObject* creator);
+            ForceField(Context* context);
             virtual ~ForceField();
 
Index: code/branches/core6/src/modules/objects/Planet.cc
===================================================================
--- code/branches/core6/src/modules/objects/Planet.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/Planet.cc	(revision 9629)
@@ -47,5 +47,5 @@
      * @brief Constructor
      */
-    Planet::Planet(BaseObject* creator) : MovableEntity(creator)
+    Planet::Planet(Context* context) : MovableEntity(context)
     {
         RegisterObject(Planet);
Index: code/branches/core6/src/modules/objects/Planet.h
===================================================================
--- code/branches/core6/src/modules/objects/Planet.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/Planet.h	(revision 9629)
@@ -48,5 +48,5 @@
     {
         public:
-            Planet(BaseObject* creator);
+            Planet(Context* context);
 
             virtual ~Planet();
Index: code/branches/core6/src/modules/objects/Script.cc
===================================================================
--- code/branches/core6/src/modules/objects/Script.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/Script.cc	(revision 9629)
@@ -61,5 +61,5 @@
         The creator of this object.
     */
-    Script::Script(BaseObject* creator) : BaseObject(creator)
+    Script::Script(Context* context) : BaseObject(context)
     {
         RegisterObject(Script);
Index: code/branches/core6/src/modules/objects/Script.h
===================================================================
--- code/branches/core6/src/modules/objects/Script.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/Script.h	(revision 9629)
@@ -95,5 +95,5 @@
     {
         public:
-            Script(BaseObject* creator);
+            Script(Context* context);
             virtual ~Script();
 
Index: code/branches/core6/src/modules/objects/SpaceBoundaries.cc
===================================================================
--- code/branches/core6/src/modules/objects/SpaceBoundaries.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/SpaceBoundaries.cc	(revision 9629)
@@ -44,5 +44,5 @@
     CreateFactory(SpaceBoundaries);
 
-    SpaceBoundaries::SpaceBoundaries(BaseObject* creator) : StaticEntity(creator)
+    SpaceBoundaries::SpaceBoundaries(Context* context) : StaticEntity(context)
     {
         RegisterObject(SpaceBoundaries);
@@ -104,5 +104,5 @@
         if (current == this->billboards_.size())
         {
-            Billboard* billboard = new Billboard(this);
+            Billboard* billboard = new Billboard(this->getContext());
             billboard->setPosition(position);
             billboard->setSyncMode(ObjectDirection::None);
Index: code/branches/core6/src/modules/objects/SpaceBoundaries.h
===================================================================
--- code/branches/core6/src/modules/objects/SpaceBoundaries.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/SpaceBoundaries.h	(revision 9629)
@@ -75,5 +75,5 @@
     {
         public:
-            SpaceBoundaries(BaseObject* creator);
+            SpaceBoundaries(Context* context);
             ~SpaceBoundaries();
 
Index: code/branches/core6/src/modules/objects/Turret.cc
===================================================================
--- code/branches/core6/src/modules/objects/Turret.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/Turret.cc	(revision 9629)
@@ -40,8 +40,8 @@
      * @brief Constructor
      */
-    Turret::Turret(BaseObject* creator) : SpaceShip(creator)
+    Turret::Turret(Context* context) : SpaceShip(context)
     {
         RegisterObject(Turret);
-        this->controller_ = new WaypointPatrolController(this);
+        this->controller_ = new WaypointPatrolController(this->getContext());
     }
 
Index: code/branches/core6/src/modules/objects/Turret.h
===================================================================
--- code/branches/core6/src/modules/objects/Turret.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/Turret.h	(revision 9629)
@@ -45,5 +45,5 @@
     {
         public:
-            Turret(BaseObject* creator);
+            Turret(Context* context);
             virtual ~Turret();
 
Index: code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.cc
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object.
     */
-    BoxCollisionShape::BoxCollisionShape(BaseObject* creator) : CollisionShape(creator)
+    BoxCollisionShape::BoxCollisionShape(Context* context) : CollisionShape(context)
     {
         RegisterObject(BoxCollisionShape);
Index: code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.h
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            BoxCollisionShape(BaseObject* creator);
+            BoxCollisionShape(Context* context);
             virtual ~BoxCollisionShape();
 
Index: code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.cc
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object.
     */
-    ConeCollisionShape::ConeCollisionShape(BaseObject* creator) : CollisionShape(creator)
+    ConeCollisionShape::ConeCollisionShape(Context* context) : CollisionShape(context)
     {
         RegisterObject(ConeCollisionShape);
Index: code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.h
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            ConeCollisionShape(BaseObject* creator);
+            ConeCollisionShape(Context* context);
             virtual ~ConeCollisionShape();
 
Index: code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object.
     */
-    PlaneCollisionShape::PlaneCollisionShape(BaseObject* creator) : CollisionShape(creator)
+    PlaneCollisionShape::PlaneCollisionShape(Context* context) : CollisionShape(context)
     {
         RegisterObject(PlaneCollisionShape);
Index: code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.h
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            PlaneCollisionShape(BaseObject* creator);
+            PlaneCollisionShape(Context* context);
             virtual ~PlaneCollisionShape();
 
Index: code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.cc
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. registers and initializes the object.
     */
-    SphereCollisionShape::SphereCollisionShape(BaseObject* creator) : CollisionShape(creator)
+    SphereCollisionShape::SphereCollisionShape(Context* context) : CollisionShape(context)
     {
         RegisterObject(SphereCollisionShape);
Index: code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.h
===================================================================
--- code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            SphereCollisionShape(BaseObject* creator);
+            SphereCollisionShape(Context* context);
             virtual ~SphereCollisionShape();
 
Index: code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.cc
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.cc	(revision 9629)
@@ -37,5 +37,5 @@
     CreateFactory(EventDispatcher);
 
-    EventDispatcher::EventDispatcher(BaseObject* creator) : BaseObject(creator)
+    EventDispatcher::EventDispatcher(Context* context) : BaseObject(context)
     {
         RegisterObject(EventDispatcher);
Index: code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.h
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.h	(revision 9629)
@@ -46,5 +46,5 @@
     {
         public:
-            EventDispatcher(BaseObject* creator);
+            EventDispatcher(Context* context);
             virtual ~EventDispatcher();
 
Index: code/branches/core6/src/modules/objects/eventsystem/EventFilter.cc
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventFilter.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventFilter.cc	(revision 9629)
@@ -38,5 +38,5 @@
     CreateFactory(EventFilter);
 
-    EventFilter::EventFilter(BaseObject* creator) : BaseObject(creator)
+    EventFilter::EventFilter(Context* context) : BaseObject(context)
     {
         RegisterObject(EventFilter);
Index: code/branches/core6/src/modules/objects/eventsystem/EventFilter.h
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventFilter.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventFilter.h	(revision 9629)
@@ -46,5 +46,5 @@
     {
         public:
-            EventFilter(BaseObject* creator);
+            EventFilter(Context* context);
             virtual ~EventFilter();
 
Index: code/branches/core6/src/modules/objects/eventsystem/EventListener.cc
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventListener.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventListener.cc	(revision 9629)
@@ -37,5 +37,5 @@
     CreateFactory(EventListener);
 
-    EventListener::EventListener(BaseObject* creator) : BaseObject(creator)
+    EventListener::EventListener(Context* context) : BaseObject(context)
     {
         RegisterObject(EventListener);
Index: code/branches/core6/src/modules/objects/eventsystem/EventListener.h
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventListener.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventListener.h	(revision 9629)
@@ -47,5 +47,5 @@
     {
         public:
-            EventListener(BaseObject* creator);
+            EventListener(Context* context);
             virtual ~EventListener();
 
Index: code/branches/core6/src/modules/objects/eventsystem/EventName.cc
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventName.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventName.cc	(revision 9629)
@@ -34,5 +34,5 @@
     CreateFactory(EventName);
 
-    EventName::EventName(BaseObject* creator) : BaseObject(creator)
+    EventName::EventName(Context* context) : BaseObject(context)
     {
         RegisterObject(EventName);
Index: code/branches/core6/src/modules/objects/eventsystem/EventName.h
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventName.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventName.h	(revision 9629)
@@ -45,5 +45,5 @@
     {
         public:
-            EventName(BaseObject* creator);
+            EventName(Context* context);
             virtual ~EventName() {}
     };
Index: code/branches/core6/src/modules/objects/eventsystem/EventTarget.cc
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventTarget.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventTarget.cc	(revision 9629)
@@ -35,5 +35,5 @@
     CreateFactory(EventTarget);
 
-    EventTarget::EventTarget(BaseObject* creator) : BaseObject(creator)
+    EventTarget::EventTarget(Context* context) : BaseObject(context)
     {
         RegisterObject(EventTarget);
Index: code/branches/core6/src/modules/objects/eventsystem/EventTarget.h
===================================================================
--- code/branches/core6/src/modules/objects/eventsystem/EventTarget.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/eventsystem/EventTarget.h	(revision 9629)
@@ -46,5 +46,5 @@
     {
         public:
-            EventTarget(BaseObject* creator);
+            EventTarget(Context* context);
             virtual ~EventTarget();
 
Index: code/branches/core6/src/modules/objects/triggers/CheckPoint.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/CheckPoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/CheckPoint.cc	(revision 9629)
@@ -44,7 +44,7 @@
     CreateFactory(CheckPoint);
 
-    CheckPoint::CheckPoint(BaseObject* creator)
-        : DistanceTrigger(creator)
-        , RadarViewable(creator, static_cast<WorldEntity*>(this))
+    CheckPoint::CheckPoint(Context* context)
+        : DistanceTrigger(context)
+        , RadarViewable(this, static_cast<WorldEntity*>(this))
     {
         RegisterObject(CheckPoint);
Index: code/branches/core6/src/modules/objects/triggers/CheckPoint.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/CheckPoint.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/CheckPoint.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
     public:
-        CheckPoint(BaseObject* creator);
+        CheckPoint(Context* context);
         virtual ~CheckPoint();
 
Index: code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.cc	(revision 9629)
@@ -53,5 +53,5 @@
         Default Constructor. Registers the object and initializes default values.
     */
-    DistanceMultiTrigger::DistanceMultiTrigger(BaseObject* creator) : MultiTrigger(creator)
+    DistanceMultiTrigger::DistanceMultiTrigger(Context* context) : MultiTrigger(context)
     {
         RegisterObject(DistanceMultiTrigger);
Index: code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.h	(revision 9629)
@@ -95,5 +95,5 @@
 
         public:
-            DistanceMultiTrigger(BaseObject* creator); // Default Constructor. Registers the object and initializes default values.
+            DistanceMultiTrigger(Context* context); // Default Constructor. Registers the object and initializes default values.
             virtual ~DistanceMultiTrigger(); // Destructor.
 
Index: code/branches/core6/src/modules/objects/triggers/DistanceTrigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceTrigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceTrigger.cc	(revision 9629)
@@ -57,5 +57,5 @@
         The creator of this trigger.
     */
-    DistanceTrigger::DistanceTrigger(BaseObject* creator) : Trigger(creator)
+    DistanceTrigger::DistanceTrigger(Context* context) : Trigger(context)
     {
         RegisterObject(DistanceTrigger);
Index: code/branches/core6/src/modules/objects/triggers/DistanceTrigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceTrigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceTrigger.h	(revision 9629)
@@ -97,5 +97,5 @@
     {
         public:
-            DistanceTrigger(BaseObject* creator); // Constructor. Registers and initializes the object.
+            DistanceTrigger(Context* context); // Constructor. Registers and initializes the object.
             virtual ~DistanceTrigger();
 
Index: code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.cc	(revision 9629)
@@ -48,5 +48,5 @@
         The creator of this object.
     */
-    DistanceTriggerBeacon::DistanceTriggerBeacon(BaseObject* creator) : StaticEntity(creator)
+    DistanceTriggerBeacon::DistanceTriggerBeacon(Context* context) : StaticEntity(context)
     {
         RegisterObject(DistanceTriggerBeacon);
Index: code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.h	(revision 9629)
@@ -57,5 +57,5 @@
 
         public:
-            DistanceTriggerBeacon(BaseObject* creator); //!< Constructor.
+            DistanceTriggerBeacon(Context* context); //!< Constructor.
             virtual ~DistanceTriggerBeacon() {} //!< Destructor.
 
Index: code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.cc	(revision 9629)
@@ -49,5 +49,5 @@
         Constructor. Registers the object.
     */
-    EventMultiTrigger::EventMultiTrigger(BaseObject* creator) : MultiTrigger(creator)
+    EventMultiTrigger::EventMultiTrigger(Context* context) : MultiTrigger(context)
     {
         RegisterObject(EventMultiTrigger);
Index: code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.h	(revision 9629)
@@ -73,5 +73,5 @@
 
         public:
-            EventMultiTrigger(BaseObject* creator); //!< Constructor. Registers the object.
+            EventMultiTrigger(Context* context); //!< Constructor. Registers the object.
             virtual ~EventMultiTrigger(); //!< Destructor.
 
Index: code/branches/core6/src/modules/objects/triggers/EventTrigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/EventTrigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/EventTrigger.cc	(revision 9629)
@@ -48,5 +48,5 @@
         The creator of the EventTrigger.
     */
-    EventTrigger::EventTrigger(BaseObject* creator) : Trigger(creator)
+    EventTrigger::EventTrigger(Context* context) : Trigger(context)
     {
         RegisterObject(EventTrigger);
Index: code/branches/core6/src/modules/objects/triggers/EventTrigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/EventTrigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/EventTrigger.h	(revision 9629)
@@ -70,5 +70,5 @@
     {
         public:
-            EventTrigger(BaseObject* creator); // Constructor. Registers and initializes the object.
+            EventTrigger(Context* context); // Constructor. Registers and initializes the object.
             virtual ~EventTrigger();
 
Index: code/branches/core6/src/modules/objects/triggers/MultiTrigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/MultiTrigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/MultiTrigger.cc	(revision 9629)
@@ -51,5 +51,5 @@
         The creator.
     */
-    MultiTrigger::MultiTrigger(BaseObject* creator) : TriggerBase(creator)
+    MultiTrigger::MultiTrigger(Context* context) : TriggerBase(context)
     {
         RegisterObject(MultiTrigger);
@@ -451,5 +451,5 @@
         }
 
-        MultiTriggerContainer* container = new MultiTriggerContainer(this, this, originator);
+        MultiTriggerContainer* container = new MultiTriggerContainer(this->getContext(), this, originator);
         this->fireEvent(status, container);
         orxout(verbose, context::triggers) << "MultiTrigger '" <<  this->getName() << "' (&" << this << "): Fired event. originator: " << originator->getIdentifier()->getName() << " (&" << originator << "), status: " << status << "." << endl;
Index: code/branches/core6/src/modules/objects/triggers/MultiTrigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/MultiTrigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/MultiTrigger.h	(revision 9629)
@@ -99,5 +99,5 @@
     {
         public:
-            MultiTrigger(BaseObject* creator); //!< Constructor. Registers the objects and initializes default values.
+            MultiTrigger(Context* context); //!< Constructor. Registers the objects and initializes default values.
             virtual ~MultiTrigger(); //!< Destructor.
 
Index: code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.cc	(revision 9629)
@@ -50,5 +50,5 @@
         The creator.
     */
-    MultiTriggerContainer::MultiTriggerContainer(BaseObject* creator) : BaseObject(creator), originator_(NULL), data_(NULL)
+    MultiTriggerContainer::MultiTriggerContainer(Context* context) : BaseObject(context), originator_(NULL), data_(NULL)
     {
         RegisterObject(MultiTriggerContainer);
@@ -65,5 +65,5 @@
         A pointer to the data that should be sent with the container.
     */
-    MultiTriggerContainer::MultiTriggerContainer(BaseObject* creator, MultiTrigger* originator, BaseObject* data) : BaseObject(creator), originator_(originator), data_(data)
+    MultiTriggerContainer::MultiTriggerContainer(Context* context, MultiTrigger* originator, BaseObject* data) : BaseObject(context), originator_(originator), data_(data)
     {
         RegisterObject(MultiTriggerContainer);
Index: code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.h	(revision 9629)
@@ -58,6 +58,6 @@
 
         public:
-            MultiTriggerContainer(BaseObject* creator); //!< Default constructor. Registers the object and creates an empty container.
-            MultiTriggerContainer(BaseObject* creator, MultiTrigger* originator, BaseObject* data); //!< Constructor. Registers the object and sets the input values.
+            MultiTriggerContainer(Context* context); //!< Default constructor. Registers the object and creates an empty container.
+            MultiTriggerContainer(Context* context, MultiTrigger* originator, BaseObject* data); //!< Constructor. Registers the object and sets the input values.
             virtual ~MultiTriggerContainer(); //!< Destructor.
 
Index: code/branches/core6/src/modules/objects/triggers/Trigger.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/Trigger.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/Trigger.cc	(revision 9629)
@@ -55,5 +55,5 @@
         The creator of the Trigger.
     */
-    Trigger::Trigger(BaseObject* creator) : TriggerBase(creator)
+    Trigger::Trigger(Context* context) : TriggerBase(context)
     {
         RegisterObject(Trigger);
Index: code/branches/core6/src/modules/objects/triggers/Trigger.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/Trigger.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/Trigger.h	(revision 9629)
@@ -80,5 +80,5 @@
     {
         public:
-            Trigger(BaseObject* creator); // Constructor. Registers and initializes the object.
+            Trigger(Context* context); // Constructor. Registers and initializes the object.
             virtual ~Trigger();
 
Index: code/branches/core6/src/modules/objects/triggers/TriggerBase.cc
===================================================================
--- code/branches/core6/src/modules/objects/triggers/TriggerBase.cc	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/TriggerBase.cc	(revision 9629)
@@ -52,5 +52,5 @@
         Constructor. Registers the object and initializes some values.
     */
-    TriggerBase::TriggerBase(BaseObject* creator) : StaticEntity(creator)
+    TriggerBase::TriggerBase(Context* context) : StaticEntity(context)
     {
         RegisterObject(TriggerBase);
Index: code/branches/core6/src/modules/objects/triggers/TriggerBase.h
===================================================================
--- code/branches/core6/src/modules/objects/triggers/TriggerBase.h	(revision 9600)
+++ code/branches/core6/src/modules/objects/triggers/TriggerBase.h	(revision 9629)
@@ -74,5 +74,5 @@
     {
         public:
-            TriggerBase(BaseObject* creator);
+            TriggerBase(Context* context);
             virtual ~TriggerBase();
 
Index: code/branches/core6/src/modules/overlays/FadeoutText.cc
===================================================================
--- code/branches/core6/src/modules/overlays/FadeoutText.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/FadeoutText.cc	(revision 9629)
@@ -38,5 +38,5 @@
     CreateFactory(FadeoutText);
 
-    FadeoutText::FadeoutText(BaseObject* creator) : OverlayText(creator)
+    FadeoutText::FadeoutText(Context* context) : OverlayText(context)
     {
         RegisterObject(FadeoutText);
Index: code/branches/core6/src/modules/overlays/FadeoutText.h
===================================================================
--- code/branches/core6/src/modules/overlays/FadeoutText.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/FadeoutText.h	(revision 9629)
@@ -41,5 +41,5 @@
     {
         public:
-            FadeoutText(BaseObject* creator);
+            FadeoutText(Context* context);
             virtual ~FadeoutText() {}
 
Index: code/branches/core6/src/modules/overlays/GUIOverlay.cc
===================================================================
--- code/branches/core6/src/modules/overlays/GUIOverlay.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/GUIOverlay.cc	(revision 9629)
@@ -43,5 +43,5 @@
     CreateFactory(GUIOverlay);
 
-    GUIOverlay::GUIOverlay(BaseObject* creator) : OrxonoxOverlay(creator)
+    GUIOverlay::GUIOverlay(Context* context) : OrxonoxOverlay(context)
     {
         RegisterObject(GUIOverlay);
Index: code/branches/core6/src/modules/overlays/GUIOverlay.h
===================================================================
--- code/branches/core6/src/modules/overlays/GUIOverlay.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/GUIOverlay.h	(revision 9629)
@@ -41,5 +41,5 @@
         public:
 
-            GUIOverlay(BaseObject* creator);
+            GUIOverlay(Context* context);
             virtual ~GUIOverlay();
 
Index: code/branches/core6/src/modules/overlays/OverlayText.cc
===================================================================
--- code/branches/core6/src/modules/overlays/OverlayText.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/OverlayText.cc	(revision 9629)
@@ -47,6 +47,6 @@
     BOOST_STATIC_ASSERT((int)Ogre::TextAreaOverlayElement::Right  == (int)OverlayText::Right);
 
-    OverlayText::OverlayText(BaseObject* creator)
-        : OrxonoxOverlay(creator)
+    OverlayText::OverlayText(Context* context)
+        : OrxonoxOverlay(context)
     {
         RegisterObject(OverlayText);
Index: code/branches/core6/src/modules/overlays/OverlayText.h
===================================================================
--- code/branches/core6/src/modules/overlays/OverlayText.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/OverlayText.h	(revision 9629)
@@ -49,5 +49,5 @@
         };
 
-        OverlayText(BaseObject* creator);
+        OverlayText(Context* context);
         virtual ~OverlayText();
 
Index: code/branches/core6/src/modules/overlays/debugging/DebugFPSText.cc
===================================================================
--- code/branches/core6/src/modules/overlays/debugging/DebugFPSText.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/debugging/DebugFPSText.cc	(revision 9629)
@@ -37,5 +37,5 @@
     CreateFactory(DebugFPSText);
 
-    DebugFPSText::DebugFPSText(BaseObject* creator) : OverlayText(creator)
+    DebugFPSText::DebugFPSText(Context* context) : OverlayText(context)
     {
         RegisterObject(DebugFPSText);
Index: code/branches/core6/src/modules/overlays/debugging/DebugFPSText.h
===================================================================
--- code/branches/core6/src/modules/overlays/debugging/DebugFPSText.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/debugging/DebugFPSText.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
     public:
-        DebugFPSText(BaseObject* creator);
+        DebugFPSText(Context* context);
         virtual ~DebugFPSText();
 
Index: code/branches/core6/src/modules/overlays/debugging/DebugRTRText.cc
===================================================================
--- code/branches/core6/src/modules/overlays/debugging/DebugRTRText.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/debugging/DebugRTRText.cc	(revision 9629)
@@ -37,5 +37,5 @@
     CreateFactory(DebugRTRText);
 
-    DebugRTRText::DebugRTRText(BaseObject* creator) : OverlayText(creator)
+    DebugRTRText::DebugRTRText(Context* context) : OverlayText(context)
     {
         RegisterObject(DebugRTRText);
Index: code/branches/core6/src/modules/overlays/debugging/DebugRTRText.h
===================================================================
--- code/branches/core6/src/modules/overlays/debugging/DebugRTRText.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/debugging/DebugRTRText.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
     public:
-        DebugRTRText(BaseObject* creator);
+        DebugRTRText(Context* context);
         virtual ~DebugRTRText();
 
Index: code/branches/core6/src/modules/overlays/hud/AnnounceMessage.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/AnnounceMessage.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/AnnounceMessage.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(AnnounceMessage);
 
-    AnnounceMessage::AnnounceMessage(BaseObject* creator) : FadeoutText(creator)
+    AnnounceMessage::AnnounceMessage(Context* context) : FadeoutText(context)
     {
         RegisterObject(AnnounceMessage);
Index: code/branches/core6/src/modules/overlays/hud/AnnounceMessage.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/AnnounceMessage.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/AnnounceMessage.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            AnnounceMessage(BaseObject* creator);
+            AnnounceMessage(Context* context);
             virtual ~AnnounceMessage() {}
 
Index: code/branches/core6/src/modules/overlays/hud/ChatOverlay.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/ChatOverlay.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/ChatOverlay.cc	(revision 9629)
@@ -46,6 +46,6 @@
     CreateFactory(ChatOverlay);
 
-    ChatOverlay::ChatOverlay(BaseObject* creator)
-        : OverlayText(creator)
+    ChatOverlay::ChatOverlay(Context* context)
+        : OverlayText(context)
     {
         RegisterObject(ChatOverlay);
Index: code/branches/core6/src/modules/overlays/hud/ChatOverlay.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/ChatOverlay.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/ChatOverlay.h	(revision 9629)
@@ -43,5 +43,5 @@
     {
         public:
-            ChatOverlay(BaseObject* creator);
+            ChatOverlay(Context* context);
             virtual ~ChatOverlay();
 
Index: code/branches/core6/src/modules/overlays/hud/DeathMessage.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/DeathMessage.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/DeathMessage.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(DeathMessage);
 
-    DeathMessage::DeathMessage(BaseObject* creator) : FadeoutText(creator)
+    DeathMessage::DeathMessage(Context* context) : FadeoutText(context)
     {
         RegisterObject(DeathMessage);
Index: code/branches/core6/src/modules/overlays/hud/DeathMessage.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/DeathMessage.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/DeathMessage.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            DeathMessage(BaseObject* creator);
+            DeathMessage(Context* context);
             virtual ~DeathMessage() {}
 
Index: code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(GametypeFadingMessage);
 
-    GametypeFadingMessage::GametypeFadingMessage(BaseObject* creator) : FadeoutText(creator)
+    GametypeFadingMessage::GametypeFadingMessage(Context* context) : FadeoutText(context)
     {
         RegisterObject(GametypeFadingMessage);
Index: code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/GametypeFadingMessage.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            GametypeFadingMessage(BaseObject* creator);
+            GametypeFadingMessage(Context* context);
             virtual ~GametypeFadingMessage();
 
Index: code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.cc	(revision 9629)
@@ -39,5 +39,5 @@
 
 
-    GametypeStaticMessage::GametypeStaticMessage(BaseObject* creator) : OverlayText(creator)
+    GametypeStaticMessage::GametypeStaticMessage(Context* context) : OverlayText(context)
     {
         RegisterObject(GametypeStaticMessage);
Index: code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/GametypeStaticMessage.h	(revision 9629)
@@ -43,5 +43,5 @@
     {
         public:
-            GametypeStaticMessage(BaseObject* creator);
+            GametypeStaticMessage(Context* context);
             virtual ~GametypeStaticMessage();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDBar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDBar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDBar.cc	(revision 9629)
@@ -47,6 +47,6 @@
     CreateFactory(BarColour);
 
-    BarColour::BarColour(BaseObject* creator)
-        : BaseObject(creator)
+    BarColour::BarColour(Context* context)
+        : BaseObject(context)
     {
         RegisterObject(BarColour);
@@ -67,6 +67,6 @@
     unsigned int HUDBar::materialcount_s = 0;
 
-    HUDBar::HUDBar(BaseObject* creator)
-        : OrxonoxOverlay(creator), right2Left_(false), autoColour_(false)
+    HUDBar::HUDBar(Context* context)
+        : OrxonoxOverlay(context), right2Left_(false), autoColour_(false)
     {
         RegisterObject(HUDBar);
Index: code/branches/core6/src/modules/overlays/hud/HUDBar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDBar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDBar.h	(revision 9629)
@@ -48,5 +48,5 @@
     {
     public:
-        BarColour(BaseObject* creator);
+        BarColour(Context* context);
         virtual ~BarColour() { }
 
@@ -68,5 +68,5 @@
     {
     public:
-        HUDBar(BaseObject* creator);
+        HUDBar(Context* context);
         virtual ~HUDBar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDBoostBar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDBoostBar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDBoostBar.cc	(revision 9629)
@@ -37,6 +37,6 @@
     CreateFactory(HUDBoostBar);
 
-    HUDBoostBar::HUDBoostBar(BaseObject* creator)
-        : HUDBar(creator)
+    HUDBoostBar::HUDBoostBar(Context* context)
+        : HUDBar(context)
     {
         RegisterObject(HUDBoostBar);
Index: code/branches/core6/src/modules/overlays/hud/HUDBoostBar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDBoostBar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDBoostBar.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
     public:
-        HUDBoostBar(BaseObject* creator);
+        HUDBoostBar(Context* context);
         virtual ~HUDBoostBar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(HUDEnemyHealthBar);
 
-    HUDEnemyHealthBar::HUDEnemyHealthBar(BaseObject* creator) : HUDHealthBar(creator)
+    HUDEnemyHealthBar::HUDEnemyHealthBar(Context* context) : HUDHealthBar(context)
     {
         RegisterObject(HUDEnemyHealthBar);
Index: code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDEnemyHealthBar.h	(revision 9629)
@@ -37,5 +37,5 @@
     {
         public:
-            HUDEnemyHealthBar(BaseObject* creator);
+            HUDEnemyHealthBar(Context* context);
             virtual ~HUDEnemyHealthBar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDHealthBar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDHealthBar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDHealthBar.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(HUDHealthBar);
 
-    HUDHealthBar::HUDHealthBar(BaseObject* creator) : HUDBar(creator)
+    HUDHealthBar::HUDHealthBar(Context* context) : HUDBar(context)
     {
         RegisterObject(HUDHealthBar);
@@ -46,5 +46,5 @@
         this->bUseBarColour_ = false;
 
-        this->textoverlay_ = new OverlayText(this);
+        this->textoverlay_ = new OverlayText(this->getContext());
 
         assert(this->textoverlay_.get());
Index: code/branches/core6/src/modules/overlays/hud/HUDHealthBar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDHealthBar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDHealthBar.h	(revision 9629)
@@ -42,5 +42,5 @@
     {
         public:
-            HUDHealthBar(BaseObject* creator);
+            HUDHealthBar(Context* context);
             virtual ~HUDHealthBar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDNavigation.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDNavigation.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDNavigation.cc	(revision 9629)
@@ -71,6 +71,6 @@
     HUDNavigation* HUDNavigation::localHUD_s = 0;
 
-    HUDNavigation::HUDNavigation(BaseObject* creator) :
-        OrxonoxOverlay(creator)
+    HUDNavigation::HUDNavigation(Context* context) :
+        OrxonoxOverlay(context)
     {
         RegisterObject(HUDNavigation)
Index: code/branches/core6/src/modules/overlays/hud/HUDNavigation.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDNavigation.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDNavigation.h	(revision 9629)
@@ -46,5 +46,5 @@
     {
         public:
-            HUDNavigation(BaseObject* creator);
+            HUDNavigation(Context* context);
             virtual ~HUDNavigation();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDRadar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDRadar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDRadar.cc	(revision 9629)
@@ -46,6 +46,6 @@
     CreateFactory(HUDRadar);
 
-    HUDRadar::HUDRadar(BaseObject* creator)
-        : OrxonoxOverlay(creator)
+    HUDRadar::HUDRadar(Context* context)
+        : OrxonoxOverlay(context)
     {
         RegisterObject(HUDRadar);
Index: code/branches/core6/src/modules/overlays/hud/HUDRadar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDRadar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDRadar.h	(revision 9629)
@@ -46,5 +46,5 @@
     {
     public:
-        HUDRadar(BaseObject* creator);
+        HUDRadar(Context* context);
         virtual ~HUDRadar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.cc	(revision 9629)
@@ -38,6 +38,6 @@
     CreateFactory(HUDSpeedBar);
 
-    HUDSpeedBar::HUDSpeedBar(BaseObject* creator)
-        : HUDBar(creator)
+    HUDSpeedBar::HUDSpeedBar(Context* context)
+        : HUDBar(context)
     {
         RegisterObject(HUDSpeedBar);
Index: code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDSpeedBar.h	(revision 9629)
@@ -41,5 +41,5 @@
     {
     public:
-        HUDSpeedBar(BaseObject* creator);
+        HUDSpeedBar(Context* context);
         virtual ~HUDSpeedBar();
 
Index: code/branches/core6/src/modules/overlays/hud/HUDTimer.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDTimer.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDTimer.cc	(revision 9629)
@@ -38,5 +38,5 @@
     CreateFactory(HUDTimer);
 
-    HUDTimer::HUDTimer(BaseObject* creator) : OverlayText(creator)
+    HUDTimer::HUDTimer(Context* context) : OverlayText(context)
     {
         RegisterObject(HUDTimer);
Index: code/branches/core6/src/modules/overlays/hud/HUDTimer.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/HUDTimer.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/HUDTimer.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
     public:
-        HUDTimer(BaseObject* creator);
+        HUDTimer(Context* context);
         virtual ~HUDTimer();
 
Index: code/branches/core6/src/modules/overlays/hud/KillMessage.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/KillMessage.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/KillMessage.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(KillMessage);
 
-    KillMessage::KillMessage(BaseObject* creator) : FadeoutText(creator)
+    KillMessage::KillMessage(Context* context) : FadeoutText(context)
     {
         RegisterObject(KillMessage);
Index: code/branches/core6/src/modules/overlays/hud/KillMessage.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/KillMessage.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/KillMessage.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            KillMessage(BaseObject* creator);
+            KillMessage(Context* context);
             virtual ~KillMessage() {}
 
Index: code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(LastManStandingInfos);
 
-    LastManStandingInfos::LastManStandingInfos(BaseObject* creator) : OverlayText(creator)
+    LastManStandingInfos::LastManStandingInfos(Context* context) : OverlayText(context)
     {
         RegisterObject(LastManStandingInfos);
Index: code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/LastManStandingInfos.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            LastManStandingInfos(BaseObject* creator);
+            LastManStandingInfos(Context* context);
             virtual ~LastManStandingInfos();
 
Index: code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(LastTeamStandingInfos);
 
-    LastTeamStandingInfos::LastTeamStandingInfos(BaseObject* creator) : OverlayText(creator)
+    LastTeamStandingInfos::LastTeamStandingInfos(Context* context) : OverlayText(context)
     {
         RegisterObject(LastTeamStandingInfos);
Index: code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/LastTeamStandingInfos.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            LastTeamStandingInfos(BaseObject* creator);
+            LastTeamStandingInfos(Context* context);
             virtual ~LastTeamStandingInfos();
 
Index: code/branches/core6/src/modules/overlays/hud/PauseNotice.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/PauseNotice.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/PauseNotice.cc	(revision 9629)
@@ -36,5 +36,5 @@
     CreateFactory(PauseNotice);
 
-    PauseNotice::PauseNotice(BaseObject* creator) : OverlayText(creator)
+    PauseNotice::PauseNotice(Context* context) : OverlayText(context)
     {
         RegisterObject(PauseNotice);
Index: code/branches/core6/src/modules/overlays/hud/PauseNotice.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/PauseNotice.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/PauseNotice.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            PauseNotice(BaseObject* creator);
+            PauseNotice(Context* context);
 
             virtual void changedOwner();
Index: code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.cc
===================================================================
--- code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(TeamBaseMatchScore);
 
-    TeamBaseMatchScore::TeamBaseMatchScore(BaseObject* creator) : OverlayText(creator)
+    TeamBaseMatchScore::TeamBaseMatchScore(Context* context) : OverlayText(context)
     {
         RegisterObject(TeamBaseMatchScore);
Index: code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.h
===================================================================
--- code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/hud/TeamBaseMatchScore.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            TeamBaseMatchScore(BaseObject* creator);
+            TeamBaseMatchScore(Context* context);
             virtual ~TeamBaseMatchScore();
 
Index: code/branches/core6/src/modules/overlays/stats/Scoreboard.cc
===================================================================
--- code/branches/core6/src/modules/overlays/stats/Scoreboard.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/stats/Scoreboard.cc	(revision 9629)
@@ -40,6 +40,6 @@
         @brief Constructor: Creates the scoreboard.
     */
-    Scoreboard::Scoreboard(BaseObject* creator)
-        : OrxonoxOverlay(creator)
+    Scoreboard::Scoreboard(Context* context)
+        : OrxonoxOverlay(context)
     {
         RegisterObject(Scoreboard);
Index: code/branches/core6/src/modules/overlays/stats/Scoreboard.h
===================================================================
--- code/branches/core6/src/modules/overlays/stats/Scoreboard.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/stats/Scoreboard.h	(revision 9629)
@@ -41,5 +41,5 @@
     {
     public: // functions
-        Scoreboard(BaseObject* creator);
+        Scoreboard(Context* context);
         virtual ~Scoreboard();
 
Index: code/branches/core6/src/modules/overlays/stats/Stats.cc
===================================================================
--- code/branches/core6/src/modules/overlays/stats/Stats.cc	(revision 9600)
+++ code/branches/core6/src/modules/overlays/stats/Stats.cc	(revision 9629)
@@ -44,6 +44,6 @@
         @brief Constructor: Creates and initializes the Stats panel.
     */
-    Stats::Stats(BaseObject* creator)
-        : OrxonoxOverlay(creator)
+    Stats::Stats(Context* context)
+        : OrxonoxOverlay(context)
         , statsOverlayNoise_(0)
         , statsOverlayBorder_(0)
Index: code/branches/core6/src/modules/overlays/stats/Stats.h
===================================================================
--- code/branches/core6/src/modules/overlays/stats/Stats.h	(revision 9600)
+++ code/branches/core6/src/modules/overlays/stats/Stats.h	(revision 9629)
@@ -41,5 +41,5 @@
     {
     public: // functions
-        Stats(BaseObject* creator);
+        Stats(Context* context);
         virtual ~Stats();
 
Index: code/branches/core6/src/modules/pickup/Pickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/Pickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/Pickup.cc	(revision 9629)
@@ -56,5 +56,5 @@
         The objects creator.
     */
-    Pickup::Pickup(BaseObject* creator) : BaseObject(creator)
+    Pickup::Pickup(Context* context) : BaseObject(context)
     {
         RegisterObject(Pickup);
@@ -187,5 +187,5 @@
     bool Pickup::createSpawner(void)
     {
-        PickupSpawner::createDroppedPickup(this, this, this->getCarrier());
+        PickupSpawner::createDroppedPickup(this->getContext(), this, this->getCarrier());
         return true;
     }
Index: code/branches/core6/src/modules/pickup/Pickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/Pickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/Pickup.h	(revision 9629)
@@ -100,5 +100,5 @@
 
         public:
-            Pickup(BaseObject* creator); //!< Constructor.
+            Pickup(Context* context); //!< Constructor.
             virtual ~Pickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/PickupCollection.cc
===================================================================
--- code/branches/core6/src/modules/pickup/PickupCollection.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupCollection.cc	(revision 9629)
@@ -53,5 +53,5 @@
         The creator of the object.
     */
-    PickupCollection::PickupCollection(BaseObject* creator) : BaseObject(creator)
+    PickupCollection::PickupCollection(Context* context) : BaseObject(context)
     {
         RegisterObject(PickupCollection);
@@ -328,5 +328,5 @@
     bool PickupCollection::createSpawner(void)
     {
-        PickupSpawner::createDroppedPickup(this, this, this->getCarrier());
+        PickupSpawner::createDroppedPickup(this->getContext(), this, this->getCarrier());
         return true;
     }
Index: code/branches/core6/src/modules/pickup/PickupCollection.h
===================================================================
--- code/branches/core6/src/modules/pickup/PickupCollection.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupCollection.h	(revision 9629)
@@ -70,5 +70,5 @@
 
         public:
-            PickupCollection(BaseObject* creator); //!< Default Constructor.
+            PickupCollection(Context* context); //!< Default Constructor.
             virtual ~PickupCollection(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/PickupRepresentation.cc
===================================================================
--- code/branches/core6/src/modules/pickup/PickupRepresentation.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupRepresentation.cc	(revision 9629)
@@ -64,5 +64,5 @@
         Default Constructor. Registers the object and initializes its member variables.
     */
-    PickupRepresentation::PickupRepresentation(BaseObject* creator) : BaseObject(creator), Synchronisable(creator), spawnerRepresentation_(NULL)
+    PickupRepresentation::PickupRepresentation(Context* context) : BaseObject(context), Synchronisable(context), spawnerRepresentation_(NULL)
     {
         RegisterObject(PickupRepresentation);
@@ -180,10 +180,10 @@
     StaticEntity* PickupRepresentation::getDefaultSpawnerRepresentation(PickupSpawner* spawner)
     {
-        StaticEntity* representation = new StaticEntity(spawner);
-        Billboard* sphere = new Billboard(spawner);
+        StaticEntity* representation = new StaticEntity(spawner->getContext());
+        Billboard* sphere = new Billboard(spawner->getContext());
         sphere->setColour(ColourValue(0.95f, 0.85f, 0.27f));
         sphere->setMaterial("Sphere2");
         sphere->setScale(0.1f);
-        Billboard* icon = new Billboard(spawner);
+        Billboard* icon = new Billboard(spawner->getContext());
         icon->setColour(ColourValue(0.89f, 0.79f, 0.08f));
         icon->setMaterial("asterisk");
Index: code/branches/core6/src/modules/pickup/PickupRepresentation.h
===================================================================
--- code/branches/core6/src/modules/pickup/PickupRepresentation.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupRepresentation.h	(revision 9629)
@@ -95,5 +95,5 @@
         public:
             PickupRepresentation(); //!< Constructor
-            PickupRepresentation(BaseObject* creator); //!< Default constructor.
+            PickupRepresentation(Context* context); //!< Default constructor.
             virtual ~PickupRepresentation(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/PickupSpawner.cc
===================================================================
--- code/branches/core6/src/modules/pickup/PickupSpawner.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupSpawner.cc	(revision 9629)
@@ -55,5 +55,5 @@
         Pointer to the object which created this item.
     */
-    PickupSpawner::PickupSpawner(BaseObject* creator) : StaticEntity(creator), pickup_(NULL), representation_(NULL), pickupTemplate_(NULL)
+    PickupSpawner::PickupSpawner(Context* context) : StaticEntity(context), pickup_(NULL), representation_(NULL), pickupTemplate_(NULL)
     {
         RegisterObject(PickupSpawner);
@@ -99,7 +99,7 @@
         The distance at which the PickupSpawner will trigger.
     */
-    /*static*/ PickupSpawner* PickupSpawner::createDroppedPickup(BaseObject* creator, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance)
-    {
-        PickupSpawner* spawner = new PickupSpawner(creator);
+    /*static*/ PickupSpawner* PickupSpawner::createDroppedPickup(Context* context, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance)
+    {
+        PickupSpawner* spawner = new PickupSpawner(context);
 
         spawner->setPickupable(pickup);
@@ -289,5 +289,5 @@
             if (identifier != NULL)
             {
-                Pickupable* pickup = orxonox_cast<Pickupable*>(identifier->fabricate(this));
+                Pickupable* pickup = orxonox_cast<Pickupable*>(identifier->fabricate(this->getContext()));
                 orxonox_cast<BaseObject*>(pickup)->addTemplate(this->pickupTemplate_);
                 return pickup;
Index: code/branches/core6/src/modules/pickup/PickupSpawner.h
===================================================================
--- code/branches/core6/src/modules/pickup/PickupSpawner.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/PickupSpawner.h	(revision 9629)
@@ -77,8 +77,8 @@
     {
         public:
-            PickupSpawner(BaseObject* creator); //!< Default Constructor.
+            PickupSpawner(Context* context); //!< Default Constructor.
             virtual ~PickupSpawner(); //!< Destructor.
 
-            static PickupSpawner* createDroppedPickup(BaseObject* creator, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance = 10.0);
+            static PickupSpawner* createDroppedPickup(Context* context, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance = 10.0);
 
             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);  //!< Method for creating a PickupSpawner through XML.
Index: code/branches/core6/src/modules/pickup/items/DamageBoostPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/DamageBoostPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/DamageBoostPickup.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    DamageBoostPickup::DamageBoostPickup(BaseObject* creator) : Pickup(creator)
+    DamageBoostPickup::DamageBoostPickup(Context* context) : Pickup(context)
     {
         RegisterObject(DamageBoostPickup);
Index: code/branches/core6/src/modules/pickup/items/DamageBoostPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/DamageBoostPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/DamageBoostPickup.h	(revision 9629)
@@ -49,5 +49,5 @@
         public:
 
-            DamageBoostPickup(BaseObject* creator); //!< Constructor.
+            DamageBoostPickup(Context* context); //!< Constructor.
             virtual ~DamageBoostPickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/DronePickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/DronePickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/DronePickup.cc	(revision 9629)
@@ -51,5 +51,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    DronePickup::DronePickup(BaseObject* creator) : Pickup(creator)
+    DronePickup::DronePickup(Context* context) : Pickup(context)
     {
         RegisterObject(DronePickup);
@@ -126,5 +126,5 @@
 
                 //Attach to pawn
-                Drone* drone = new Drone(pawn->getCreator()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something)
+                Drone* drone = new Drone(pawn->getContext()); // this is neccessary because the projectiles fired need a valid creator for the particlespawner (when colliding against something)
                 drone->addTemplate(this->getDroneTemplate());
 
Index: code/branches/core6/src/modules/pickup/items/DronePickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/DronePickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/DronePickup.h	(revision 9629)
@@ -64,5 +64,5 @@
         public:
 
-            DronePickup(BaseObject* creator); //!< Constructor.
+            DronePickup(Context* context); //!< Constructor.
             virtual ~DronePickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/HealthPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/HealthPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/HealthPickup.cc	(revision 9629)
@@ -53,5 +53,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    HealthPickup::HealthPickup(BaseObject* creator) : Pickup(creator)
+    HealthPickup::HealthPickup(Context* context) : Pickup(context)
     {
         RegisterObject(HealthPickup);
Index: code/branches/core6/src/modules/pickup/items/HealthPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/HealthPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/HealthPickup.h	(revision 9629)
@@ -90,5 +90,5 @@
         public:
 
-            HealthPickup(BaseObject* creator); //!< Constructor.
+            HealthPickup(Context* context); //!< Constructor.
             virtual ~HealthPickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/InvisiblePickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/InvisiblePickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/InvisiblePickup.cc	(revision 9629)
@@ -51,5 +51,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    InvisiblePickup::InvisiblePickup(BaseObject* creator) : Pickup(creator)
+    InvisiblePickup::InvisiblePickup(Context* context) : Pickup(context)
     {
         RegisterObject(InvisiblePickup);
Index: code/branches/core6/src/modules/pickup/items/InvisiblePickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/InvisiblePickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/InvisiblePickup.h	(revision 9629)
@@ -70,5 +70,5 @@
         public:
 
-            InvisiblePickup(BaseObject* creator); //!< Constructor.
+            InvisiblePickup(Context* context); //!< Constructor.
             virtual ~InvisiblePickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/MetaPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/MetaPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/MetaPickup.cc	(revision 9629)
@@ -55,5 +55,5 @@
         Constructor. Registers and initializes the object.
     */
-    MetaPickup::MetaPickup(BaseObject* creator) : Pickup(creator)
+    MetaPickup::MetaPickup(Context* context) : Pickup(context)
     {
         RegisterObject(MetaPickup);
Index: code/branches/core6/src/modules/pickup/items/MetaPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/MetaPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/MetaPickup.h	(revision 9629)
@@ -89,5 +89,5 @@
 
         public:
-            MetaPickup(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            MetaPickup(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~MetaPickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/ShieldPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/ShieldPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/ShieldPickup.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    ShieldPickup::ShieldPickup(BaseObject* creator) : Pickup(creator)
+    ShieldPickup::ShieldPickup(Context* context) : Pickup(context)
     {
         RegisterObject(ShieldPickup);
Index: code/branches/core6/src/modules/pickup/items/ShieldPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/ShieldPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/ShieldPickup.h	(revision 9629)
@@ -76,5 +76,5 @@
         public:
 
-            ShieldPickup(BaseObject* creator); //!< Constructor.
+            ShieldPickup(Context* context); //!< Constructor.
             virtual ~ShieldPickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/ShrinkPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/ShrinkPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/ShrinkPickup.cc	(revision 9629)
@@ -52,5 +52,5 @@
         Constructor: Initializes the Pickup.
     */
-    ShrinkPickup::ShrinkPickup(BaseObject* creator) : Pickup(creator)
+    ShrinkPickup::ShrinkPickup(Context* context) : Pickup(context)
     {
         RegisterObject(ShrinkPickup);
Index: code/branches/core6/src/modules/pickup/items/ShrinkPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/ShrinkPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/ShrinkPickup.h	(revision 9629)
@@ -72,5 +72,5 @@
     {
         public:
-            ShrinkPickup(BaseObject* creator); // Constructor.
+            ShrinkPickup(Context* context); // Constructor.
             virtual ~ShrinkPickup(); // Destructor.
 
Index: code/branches/core6/src/modules/pickup/items/SpeedPickup.cc
===================================================================
--- code/branches/core6/src/modules/pickup/items/SpeedPickup.cc	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/SpeedPickup.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers the object and initializes the member variables.
     */
-    SpeedPickup::SpeedPickup(BaseObject* creator) : Pickup(creator)
+    SpeedPickup::SpeedPickup(Context* context) : Pickup(context)
     {
         RegisterObject(SpeedPickup);
Index: code/branches/core6/src/modules/pickup/items/SpeedPickup.h
===================================================================
--- code/branches/core6/src/modules/pickup/items/SpeedPickup.h	(revision 9600)
+++ code/branches/core6/src/modules/pickup/items/SpeedPickup.h	(revision 9629)
@@ -75,5 +75,5 @@
         public:
 
-            SpeedPickup(BaseObject* creator); //!< Constructor.
+            SpeedPickup(Context* context); //!< Constructor.
             virtual ~SpeedPickup(); //!< Destructor.
 
Index: code/branches/core6/src/modules/pong/Pong.cc
===================================================================
--- code/branches/core6/src/modules/pong/Pong.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/Pong.cc	(revision 9629)
@@ -59,5 +59,5 @@
         Constructor. Registers and initializes the object.
     */
-    Pong::Pong(BaseObject* creator) : Deathmatch(creator)
+    Pong::Pong(Context* context) : Deathmatch(context)
     {
         RegisterObject(Pong);
@@ -129,5 +129,5 @@
             if (this->ball_ == NULL) // If there is no ball, create a new ball.
             {
-                this->ball_ = new PongBall(this->center_);
+                this->ball_ = new PongBall(this->center_->getContext());
                 // Apply the template for the ball specified by the centerpoint.
                 this->ball_->addTemplate(this->center_->getBalltemplate());
@@ -147,5 +147,5 @@
                 if (this->bat_[i] == NULL)
                 {
-                    this->bat_[i] = new PongBat(this->center_);
+                    this->bat_[i] = new PongBat(this->center_->getContext());
                     this->bat_[i]->addTemplate(this->center_->getBattemplate());
                 }
Index: code/branches/core6/src/modules/pong/Pong.h
===================================================================
--- code/branches/core6/src/modules/pong/Pong.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/Pong.h	(revision 9629)
@@ -65,5 +65,5 @@
     {
         public:
-            Pong(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            Pong(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~Pong(); //!< Destructor. Cleans up, if initialized.
 
Index: code/branches/core6/src/modules/pong/PongAI.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongAI.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongAI.cc	(revision 9629)
@@ -53,5 +53,5 @@
         Constructor. Registers and initializes the object.
     */
-    PongAI::PongAI(BaseObject* creator) : Controller(creator)
+    PongAI::PongAI(Context* context) : Controller(context)
     {
         RegisterObject(PongAI);
Index: code/branches/core6/src/modules/pong/PongAI.h
===================================================================
--- code/branches/core6/src/modules/pong/PongAI.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongAI.h	(revision 9629)
@@ -61,5 +61,5 @@
     {
         public:
-            PongAI(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            PongAI(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~PongAI();
 
Index: code/branches/core6/src/modules/pong/PongBall.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongBall.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBall.cc	(revision 9629)
@@ -51,6 +51,6 @@
         Constructor. Registers and initializes the object.
     */
-    PongBall::PongBall(BaseObject* creator)
-        : MovableEntity(creator)
+    PongBall::PongBall(Context* context)
+        : MovableEntity(context)
     {
         RegisterObject(PongBall);
Index: code/branches/core6/src/modules/pong/PongBall.h
===================================================================
--- code/branches/core6/src/modules/pong/PongBall.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBall.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-            PongBall(BaseObject* creator);
+            PongBall(Context* context);
             virtual ~PongBall();
 
Index: code/branches/core6/src/modules/pong/PongBat.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongBat.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBat.cc	(revision 9629)
@@ -45,5 +45,5 @@
         Constructor. Registers and initializes the object.
     */
-    PongBat::PongBat(BaseObject* creator) : ControllableEntity(creator)
+    PongBat::PongBat(Context* context) : ControllableEntity(context)
     {
         RegisterObject(PongBat);
Index: code/branches/core6/src/modules/pong/PongBat.h
===================================================================
--- code/branches/core6/src/modules/pong/PongBat.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBat.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            PongBat(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            PongBat(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~PongBat() {}
 
Index: code/branches/core6/src/modules/pong/PongBot.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongBot.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBot.cc	(revision 9629)
@@ -45,5 +45,5 @@
         Constructor. Registers the object and creates a PongAI controller.
     */
-    PongBot::PongBot(BaseObject* creator) : Bot(creator)
+    PongBot::PongBot(Context* context) : Bot(context)
     {
         RegisterObject(PongBot);
Index: code/branches/core6/src/modules/pong/PongBot.h
===================================================================
--- code/branches/core6/src/modules/pong/PongBot.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongBot.h	(revision 9629)
@@ -56,5 +56,5 @@
     {
         public:
-            PongBot(BaseObject* creator);
+            PongBot(Context* context);
             virtual ~PongBot() {}
     };
Index: code/branches/core6/src/modules/pong/PongCenterpoint.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongCenterpoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongCenterpoint.cc	(revision 9629)
@@ -47,5 +47,5 @@
         Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.
     */
-    PongCenterpoint::PongCenterpoint(BaseObject* creator) : StaticEntity(creator)
+    PongCenterpoint::PongCenterpoint(Context* context) : StaticEntity(context)
     {
         RegisterObject(PongCenterpoint);
Index: code/branches/core6/src/modules/pong/PongCenterpoint.h
===================================================================
--- code/branches/core6/src/modules/pong/PongCenterpoint.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongCenterpoint.h	(revision 9629)
@@ -121,5 +121,5 @@
     {
         public:
-            PongCenterpoint(BaseObject* creator); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.
+            PongCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.
             virtual ~PongCenterpoint() {}
 
Index: code/branches/core6/src/modules/pong/PongScore.cc
===================================================================
--- code/branches/core6/src/modules/pong/PongScore.cc	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongScore.cc	(revision 9629)
@@ -50,5 +50,5 @@
         Constructor. Registers and initializes the object.
     */
-    PongScore::PongScore(BaseObject* creator) : OverlayText(creator)
+    PongScore::PongScore(Context* context) : OverlayText(context)
     {
         RegisterObject(PongScore);
Index: code/branches/core6/src/modules/pong/PongScore.h
===================================================================
--- code/branches/core6/src/modules/pong/PongScore.h	(revision 9600)
+++ code/branches/core6/src/modules/pong/PongScore.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            PongScore(BaseObject* creator);
+            PongScore(Context* context);
             virtual ~PongScore();
 
Index: code/branches/core6/src/modules/portals/PortalEndPoint.cc
===================================================================
--- code/branches/core6/src/modules/portals/PortalEndPoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/portals/PortalEndPoint.cc	(revision 9629)
@@ -48,9 +48,9 @@
     std::map<unsigned int, PortalEndPoint *> PortalEndPoint::idMap_s;
 
-    PortalEndPoint::PortalEndPoint(BaseObject* creator) : StaticEntity(creator), RadarViewable(creator, static_cast<WorldEntity*>(this)), id_(0), trigger_(NULL), reenterDelay_(0)
+    PortalEndPoint::PortalEndPoint(Context* context) : StaticEntity(context), RadarViewable(this, static_cast<WorldEntity*>(this)), id_(0), trigger_(NULL), reenterDelay_(0)
     {
         RegisterObject(PortalEndPoint);
 
-        this->trigger_ = new DistanceMultiTrigger(this);
+        this->trigger_ = new DistanceMultiTrigger(this->getContext());
         this->trigger_->setName("portal");
         this->attach(this->trigger_);
@@ -61,5 +61,5 @@
         if( GameMode::isMaster() )
         {
-            this->portalSound_ = new WorldSound(this);
+            this->portalSound_ = new WorldSound(this->getContext());
             this->portalSound_->setLooping(false);
             this->attach(this->portalSound_);
Index: code/branches/core6/src/modules/portals/PortalEndPoint.h
===================================================================
--- code/branches/core6/src/modules/portals/PortalEndPoint.h	(revision 9600)
+++ code/branches/core6/src/modules/portals/PortalEndPoint.h	(revision 9629)
@@ -60,5 +60,5 @@
     {
         public:
-            PortalEndPoint(BaseObject* creator);
+            PortalEndPoint(Context* context);
             virtual ~PortalEndPoint();
 
Index: code/branches/core6/src/modules/portals/PortalLink.cc
===================================================================
--- code/branches/core6/src/modules/portals/PortalLink.cc	(revision 9600)
+++ code/branches/core6/src/modules/portals/PortalLink.cc	(revision 9629)
@@ -40,5 +40,5 @@
     std::map<PortalEndPoint *, PortalEndPoint *> PortalLink::links_s;
 
-    PortalLink::PortalLink(BaseObject* creator) : BaseObject(creator), fromID_(0), toID_(0), from_(0), to_(0)
+    PortalLink::PortalLink(Context* context) : BaseObject(context), fromID_(0), toID_(0), from_(0), to_(0)
     {
         RegisterObject(PortalLink);
Index: code/branches/core6/src/modules/portals/PortalLink.h
===================================================================
--- code/branches/core6/src/modules/portals/PortalLink.h	(revision 9600)
+++ code/branches/core6/src/modules/portals/PortalLink.h	(revision 9629)
@@ -54,5 +54,5 @@
     {
         public:
-            PortalLink(BaseObject* creator);
+            PortalLink(Context* context);
             virtual ~PortalLink();
             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
Index: code/branches/core6/src/modules/questsystem/GlobalQuest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/GlobalQuest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/GlobalQuest.cc	(revision 9629)
@@ -47,5 +47,5 @@
         Constructor. Registers the object.
     */
-    GlobalQuest::GlobalQuest(BaseObject* creator) : Quest(creator)
+    GlobalQuest::GlobalQuest(Context* context) : Quest(context)
     {
         RegisterObject(GlobalQuest);
Index: code/branches/core6/src/modules/questsystem/GlobalQuest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/GlobalQuest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/GlobalQuest.h	(revision 9629)
@@ -90,5 +90,5 @@
     {
         public:
-            GlobalQuest(BaseObject* creator);
+            GlobalQuest(Context* context);
             virtual ~GlobalQuest();
 
Index: code/branches/core6/src/modules/questsystem/LocalQuest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/LocalQuest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/LocalQuest.cc	(revision 9629)
@@ -47,5 +47,5 @@
         Constructor. Registers and initializes the object.
     */
-    LocalQuest::LocalQuest(BaseObject* creator) : Quest(creator)
+    LocalQuest::LocalQuest(Context* context) : Quest(context)
     {
         RegisterObject(LocalQuest);
Index: code/branches/core6/src/modules/questsystem/LocalQuest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/LocalQuest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/LocalQuest.h	(revision 9629)
@@ -84,5 +84,5 @@
     {
         public:
-            LocalQuest(BaseObject* creator);
+            LocalQuest(Context* context);
             virtual ~LocalQuest();
 
Index: code/branches/core6/src/modules/questsystem/Quest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/Quest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/Quest.cc	(revision 9629)
@@ -49,5 +49,5 @@
         Constructor. Registers and initializes object.
     */
-    Quest::Quest(BaseObject* creator) : QuestItem(creator)
+    Quest::Quest(Context* context) : QuestItem(context)
     {
         RegisterObject(Quest);
Index: code/branches/core6/src/modules/questsystem/Quest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/Quest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/Quest.h	(revision 9629)
@@ -82,5 +82,5 @@
     { // tolua_export
         public:
-            Quest(BaseObject* creator);
+            Quest(Context* context);
             virtual ~Quest();
 
Index: code/branches/core6/src/modules/questsystem/QuestDescription.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestDescription.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestDescription.cc	(revision 9629)
@@ -52,5 +52,5 @@
         Constructor. Registers and initializes the object.
     */
-    QuestDescription::QuestDescription(BaseObject* creator) : BaseObject(creator)
+    QuestDescription::QuestDescription(Context* context) : BaseObject(context)
     {
         RegisterObject(QuestDescription);
Index: code/branches/core6/src/modules/questsystem/QuestDescription.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestDescription.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestDescription.h	(revision 9629)
@@ -64,5 +64,5 @@
 // tolua_end
         public:
-            QuestDescription(BaseObject* creator);
+            QuestDescription(Context* context);
             virtual ~QuestDescription();
 
Index: code/branches/core6/src/modules/questsystem/QuestEffect.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestEffect.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestEffect.cc	(revision 9629)
@@ -42,5 +42,5 @@
         Is not meant to be invoked directly, since this is only an interface.
     */
-    QuestEffect::QuestEffect(BaseObject* creator) : BaseObject(creator)
+    QuestEffect::QuestEffect(Context* context) : BaseObject(context)
     {
         RegisterObject(QuestEffect);
Index: code/branches/core6/src/modules/questsystem/QuestEffect.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestEffect.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestEffect.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            QuestEffect(BaseObject* creator);
+            QuestEffect(Context* context);
             virtual ~QuestEffect();
 
Index: code/branches/core6/src/modules/questsystem/QuestEffectBeacon.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestEffectBeacon.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestEffectBeacon.cc	(revision 9629)
@@ -51,5 +51,5 @@
         Constructor. Registers the object and initializes defaults.
     */
-    QuestEffectBeacon::QuestEffectBeacon(BaseObject* creator) : StaticEntity(creator)
+    QuestEffectBeacon::QuestEffectBeacon(Context* context) : StaticEntity(context)
     {
         RegisterObject(QuestEffectBeacon);
Index: code/branches/core6/src/modules/questsystem/QuestEffectBeacon.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestEffectBeacon.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestEffectBeacon.h	(revision 9629)
@@ -93,5 +93,5 @@
     {
         public:
-            QuestEffectBeacon(BaseObject* creator);
+            QuestEffectBeacon(Context* context);
             virtual ~QuestEffectBeacon();
 
Index: code/branches/core6/src/modules/questsystem/QuestHint.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestHint.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestHint.cc	(revision 9629)
@@ -49,5 +49,5 @@
         Constructor. Registers the object.
     */
-    QuestHint::QuestHint(BaseObject* creator) : QuestItem(creator)
+    QuestHint::QuestHint(Context* context) : QuestItem(context)
     {
         RegisterObject(QuestHint);
Index: code/branches/core6/src/modules/questsystem/QuestHint.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestHint.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestHint.h	(revision 9629)
@@ -82,5 +82,5 @@
 
         public:
-            QuestHint(BaseObject* creator);
+            QuestHint(Context* context);
             virtual ~QuestHint();
 
Index: code/branches/core6/src/modules/questsystem/QuestItem.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestItem.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestItem.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object.
     */
-    QuestItem::QuestItem(BaseObject* creator) : BaseObject(creator)
+    QuestItem::QuestItem(Context* context) : BaseObject(context)
     {
         this->registered_ = false;
Index: code/branches/core6/src/modules/questsystem/QuestItem.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestItem.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestItem.h	(revision 9629)
@@ -60,5 +60,5 @@
 
         public:
-            QuestItem(BaseObject* creator);
+            QuestItem(Context* context);
             virtual ~QuestItem();
 
Index: code/branches/core6/src/modules/questsystem/QuestListener.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestListener.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestListener.cc	(revision 9629)
@@ -54,5 +54,5 @@
         Constructor. Registers the object and initializes variables.
     */
-    QuestListener::QuestListener(BaseObject* creator) : BaseObject(creator)
+    QuestListener::QuestListener(Context* context) : BaseObject(context)
     {
         RegisterObject(QuestListener);
Index: code/branches/core6/src/modules/questsystem/QuestListener.h
===================================================================
--- code/branches/core6/src/modules/questsystem/QuestListener.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/QuestListener.h	(revision 9629)
@@ -87,5 +87,5 @@
 
         public:
-            QuestListener(BaseObject* creator);
+            QuestListener(Context* context);
             virtual ~QuestListener();
 
Index: code/branches/core6/src/modules/questsystem/effects/AddQuest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddQuest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddQuest.cc	(revision 9629)
@@ -49,5 +49,5 @@
         Constructor. Registers the object.
     */
-    AddQuest::AddQuest(BaseObject* creator) : ChangeQuestStatus(creator)
+    AddQuest::AddQuest(Context* context) : ChangeQuestStatus(context)
     {
         RegisterObject(AddQuest);
Index: code/branches/core6/src/modules/questsystem/effects/AddQuest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddQuest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddQuest.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-        AddQuest(BaseObject* creator);
+        AddQuest(Context* context);
         virtual ~AddQuest();
 
Index: code/branches/core6/src/modules/questsystem/effects/AddQuestHint.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddQuestHint.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddQuestHint.cc	(revision 9629)
@@ -50,5 +50,5 @@
         Constructor. Registers the object.
     */
-    AddQuestHint::AddQuestHint(BaseObject* creator) : QuestEffect(creator)
+    AddQuestHint::AddQuestHint(Context* context) : QuestEffect(context)
     {
         RegisterObject(AddQuestHint);
Index: code/branches/core6/src/modules/questsystem/effects/AddQuestHint.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddQuestHint.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddQuestHint.h	(revision 9629)
@@ -61,5 +61,5 @@
     {
         public:
-            AddQuestHint(BaseObject* creator);
+            AddQuestHint(Context* context);
             virtual ~AddQuestHint();
 
Index: code/branches/core6/src/modules/questsystem/effects/AddReward.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddReward.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddReward.cc	(revision 9629)
@@ -47,5 +47,5 @@
         Constructor. Registers the object.
     */
-    AddReward::AddReward(BaseObject* creator) : QuestEffect(creator)
+    AddReward::AddReward(Context* context) : QuestEffect(context)
     {
         RegisterObject(AddReward);
Index: code/branches/core6/src/modules/questsystem/effects/AddReward.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/AddReward.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/AddReward.h	(revision 9629)
@@ -65,5 +65,5 @@
     {
         public:
-            AddReward(BaseObject* creator);
+            AddReward(Context* context);
             virtual ~AddReward();
 
Index: code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.cc	(revision 9629)
@@ -46,5 +46,5 @@
         Constructor. Registers the object.
     */
-    ChangeQuestStatus::ChangeQuestStatus(BaseObject* creator) : QuestEffect(creator)
+    ChangeQuestStatus::ChangeQuestStatus(Context* context) : QuestEffect(context)
     {
         RegisterObject(ChangeQuestStatus);
Index: code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/ChangeQuestStatus.h	(revision 9629)
@@ -56,5 +56,5 @@
     {
         public:
-            ChangeQuestStatus(BaseObject* creator);
+            ChangeQuestStatus(Context* context);
             virtual ~ChangeQuestStatus();
 
Index: code/branches/core6/src/modules/questsystem/effects/CompleteQuest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/CompleteQuest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/CompleteQuest.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers the object.
     */
-    CompleteQuest::CompleteQuest(BaseObject* creator) : ChangeQuestStatus(creator)
+    CompleteQuest::CompleteQuest(Context* context) : ChangeQuestStatus(context)
     {
         RegisterObject(CompleteQuest);
Index: code/branches/core6/src/modules/questsystem/effects/CompleteQuest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/CompleteQuest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/CompleteQuest.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-            CompleteQuest(BaseObject* creator);
+            CompleteQuest(Context* context);
             virtual ~CompleteQuest();
 
Index: code/branches/core6/src/modules/questsystem/effects/FailQuest.cc
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/FailQuest.cc	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/FailQuest.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers the object.
     */
-    FailQuest::FailQuest(BaseObject* creator) : ChangeQuestStatus(creator)
+    FailQuest::FailQuest(Context* context) : ChangeQuestStatus(context)
     {
         RegisterObject(FailQuest);
Index: code/branches/core6/src/modules/questsystem/effects/FailQuest.h
===================================================================
--- code/branches/core6/src/modules/questsystem/effects/FailQuest.h	(revision 9600)
+++ code/branches/core6/src/modules/questsystem/effects/FailQuest.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-            FailQuest(BaseObject* creator);
+            FailQuest(Context* context);
             virtual ~FailQuest();
 
Index: code/branches/core6/src/modules/tetris/Tetris.cc
===================================================================
--- code/branches/core6/src/modules/tetris/Tetris.cc	(revision 9600)
+++ code/branches/core6/src/modules/tetris/Tetris.cc	(revision 9629)
@@ -61,5 +61,5 @@
     @ingroup Tetris
     */
-    Tetris::Tetris(BaseObject* creator) : Deathmatch(creator)
+    Tetris::Tetris(Context* context) : Deathmatch(context)
     {
         RegisterObject(Tetris);
@@ -379,5 +379,5 @@
     {
         // create new futureBrick_
-        this->futureBrick_ = new TetrisBrick(this->center_);
+        this->futureBrick_ = new TetrisBrick(this->center_->getContext());
 
 
Index: code/branches/core6/src/modules/tetris/Tetris.h
===================================================================
--- code/branches/core6/src/modules/tetris/Tetris.h	(revision 9600)
+++ code/branches/core6/src/modules/tetris/Tetris.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            Tetris(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            Tetris(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~Tetris(); //!< Destructor. Cleans up, if initialized.
 
Index: code/branches/core6/src/modules/tetris/TetrisBrick.cc
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisBrick.cc	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisBrick.cc	(revision 9629)
@@ -51,5 +51,5 @@
     @ingroup Tetris
     */
-    TetrisBrick::TetrisBrick(BaseObject* creator): ControllableEntity(creator)
+    TetrisBrick::TetrisBrick(Context* context): ControllableEntity(context)
     {
         RegisterObject(TetrisBrick);
@@ -77,5 +77,5 @@
         {
             // Create a new stone and add it to the brick.
-            TetrisStone* stone = new TetrisStone(this);
+            TetrisStone* stone = new TetrisStone(this->getContext());
             this->brickStones_.push_back(stone);
             this->attach(stone);
Index: code/branches/core6/src/modules/tetris/TetrisBrick.h
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisBrick.h	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisBrick.h	(revision 9629)
@@ -54,5 +54,5 @@
     {
         public:
-            TetrisBrick(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            TetrisBrick(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~TetrisBrick() {}
 
Index: code/branches/core6/src/modules/tetris/TetrisCenterpoint.cc
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisCenterpoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisCenterpoint.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris.
     */
-    TetrisCenterpoint::TetrisCenterpoint(BaseObject* creator) : StaticEntity(creator)
+    TetrisCenterpoint::TetrisCenterpoint(Context* context) : StaticEntity(context)
     {
         RegisterObject(TetrisCenterpoint);
Index: code/branches/core6/src/modules/tetris/TetrisCenterpoint.h
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisCenterpoint.h	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisCenterpoint.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-            TetrisCenterpoint(BaseObject* creator); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris.
+            TetrisCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris.
             virtual ~TetrisCenterpoint() {}
 
Index: code/branches/core6/src/modules/tetris/TetrisScore.cc
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisScore.cc	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisScore.cc	(revision 9629)
@@ -52,5 +52,5 @@
     @ingroup Tetris
     */
-    TetrisScore::TetrisScore(BaseObject* creator) : OverlayText(creator)
+    TetrisScore::TetrisScore(Context* context) : OverlayText(context)
     {
         RegisterObject(TetrisScore);
Index: code/branches/core6/src/modules/tetris/TetrisScore.h
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisScore.h	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisScore.h	(revision 9629)
@@ -57,5 +57,5 @@
     {
         public:
-            TetrisScore(BaseObject* creator);
+            TetrisScore(Context* context);
             virtual ~TetrisScore();
 
Index: code/branches/core6/src/modules/tetris/TetrisStone.cc
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisStone.cc	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisStone.cc	(revision 9629)
@@ -48,5 +48,5 @@
         Constructor. Registers and initializes the object.
     */
-    TetrisStone::TetrisStone(BaseObject* creator) : MovableEntity(creator)
+    TetrisStone::TetrisStone(Context* context) : MovableEntity(context)
     {
         RegisterObject(TetrisStone);
Index: code/branches/core6/src/modules/tetris/TetrisStone.h
===================================================================
--- code/branches/core6/src/modules/tetris/TetrisStone.h	(revision 9600)
+++ code/branches/core6/src/modules/tetris/TetrisStone.h	(revision 9629)
@@ -54,5 +54,5 @@
     {
         public:
-            TetrisStone(BaseObject* creator); //!< Constructor. Registers and initializes the object.
+            TetrisStone(Context* context); //!< Constructor. Registers and initializes the object.
             virtual ~TetrisStone() {}
 
Index: code/branches/core6/src/modules/towerdefense/Tower.cc
===================================================================
--- code/branches/core6/src/modules/towerdefense/Tower.cc	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/Tower.cc	(revision 9629)
@@ -22,5 +22,5 @@
         Constructor. Registers and initializes the object.
     */
-    Tower::Tower(BaseObject* creator) : Pawn(creator)
+    Tower::Tower(Context* context) : Pawn(context)
     {
         RegisterObject(Tower);
Index: code/branches/core6/src/modules/towerdefense/Tower.h
===================================================================
--- code/branches/core6/src/modules/towerdefense/Tower.h	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/Tower.h	(revision 9629)
@@ -27,5 +27,5 @@
     {
     public:
-        Tower(BaseObject* creator);
+        Tower(Context* context);
         virtual ~Tower() {};
 
Index: code/branches/core6/src/modules/towerdefense/TowerDefense.cc
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefense.cc	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefense.cc	(revision 9629)
@@ -96,5 +96,5 @@
     CreateUnloadableFactory(TowerDefense);
 
-    TowerDefense::TowerDefense(BaseObject* creator) : Deathmatch(creator)
+    TowerDefense::TowerDefense(Context* context) : Deathmatch(context)
     {
         RegisterObject(TowerDefense);
@@ -190,5 +190,5 @@
 
         // Create tower
-        Tower* newTower = new Tower(this->center_);
+        Tower* newTower = new Tower(this->center_->getContext());
         newTower->addTemplate(this->center_->getTowerTemplate());
 
Index: code/branches/core6/src/modules/towerdefense/TowerDefense.h
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefense.h	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefense.h	(revision 9629)
@@ -48,5 +48,5 @@
     {
     public:
-        TowerDefense(BaseObject* creator);
+        TowerDefense(Context* context);
         virtual ~TowerDefense();
 
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.cc
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.cc	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.cc	(revision 9629)
@@ -47,5 +47,5 @@
         Constructor. Registers and initializes the object and checks whether the gametype is actually TowerDefense.
     */
-    TowerDefenseCenterpoint::TowerDefenseCenterpoint(BaseObject* creator) : MobileEntity(creator)
+    TowerDefenseCenterpoint::TowerDefenseCenterpoint(Context* context) : MobileEntity(context)
     {
         RegisterObject(TowerDefenseCenterpoint);
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.h
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.h	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseCenterpoint.h	(revision 9629)
@@ -49,5 +49,5 @@
     {
         public:
-            TowerDefenseCenterpoint(BaseObject* creator);
+            TowerDefenseCenterpoint(Context* context);
             virtual ~TowerDefenseCenterpoint() {}
 
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseController.cc
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseController.cc	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseController.cc	(revision 9629)
@@ -38,5 +38,5 @@
     CreateFactory(TowerDefenseController);
 
-    TowerDefenseController::TowerDefenseController(BaseObject* creator) : WaypointController(creator)
+    TowerDefenseController::TowerDefenseController(Context* context) : WaypointController(context)
     {
         RegisterObject(TowerDefenseController);
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseController.h
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseController.h	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseController.h	(revision 9629)
@@ -40,5 +40,5 @@
     {
         public:
-            TowerDefenseController(BaseObject* creator);
+            TowerDefenseController(Context* context);
             virtual ~TowerDefenseController() {}
 
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.cc
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.cc	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.cc	(revision 9629)
@@ -37,5 +37,5 @@
     CreateFactory(TowerDefenseHUDController);
 
-    TowerDefenseHUDController::TowerDefenseHUDController(BaseObject* creator) : OverlayText(creator)
+    TowerDefenseHUDController::TowerDefenseHUDController(Context* context) : OverlayText(context)
     {
         RegisterObject(TowerDefenseHUDController);
Index: code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.h
===================================================================
--- code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.h	(revision 9600)
+++ code/branches/core6/src/modules/towerdefense/TowerDefenseHUDController.h	(revision 9629)
@@ -49,5 +49,5 @@
     {
     public:
-        TowerDefenseHUDController(BaseObject* creator);
+        TowerDefenseHUDController(Context* context);
         virtual ~TowerDefenseHUDController();
 
Index: code/branches/core6/src/modules/weapons/MuzzleFlash.cc
===================================================================
--- code/branches/core6/src/modules/weapons/MuzzleFlash.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/MuzzleFlash.cc	(revision 9629)
@@ -41,5 +41,5 @@
     CreateFactory(MuzzleFlash);
 
-    MuzzleFlash::MuzzleFlash(BaseObject* creator) : Billboard(creator)
+    MuzzleFlash::MuzzleFlash(Context* context) : Billboard(context)
     {
         RegisterObject(MuzzleFlash);
Index: code/branches/core6/src/modules/weapons/MuzzleFlash.h
===================================================================
--- code/branches/core6/src/modules/weapons/MuzzleFlash.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/MuzzleFlash.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            MuzzleFlash(BaseObject* creator);
+            MuzzleFlash(Context* context);
             virtual ~MuzzleFlash() {}
 
Index: code/branches/core6/src/modules/weapons/RocketController.cc
===================================================================
--- code/branches/core6/src/modules/weapons/RocketController.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/RocketController.cc	(revision 9629)
@@ -45,5 +45,5 @@
         Constructor.
     */
-    RocketController::RocketController(BaseObject* creator) : Controller(creator)
+    RocketController::RocketController(Context* context) : Controller(context)
     {
         RegisterObject(RocketController);
@@ -51,5 +51,5 @@
 
         // Create a rocket for the controller.
-        this->rocket_ = new SimpleRocket(this);
+        this->rocket_ = new SimpleRocket(this->getContext());
         this->rocket_->setController(this);
         this->setControllableEntity(orxonox_cast<ControllableEntity*>(this->rocket_));
Index: code/branches/core6/src/modules/weapons/RocketController.h
===================================================================
--- code/branches/core6/src/modules/weapons/RocketController.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/RocketController.h	(revision 9629)
@@ -52,5 +52,5 @@
     {
         public:
-            RocketController(BaseObject* creator);
+            RocketController(Context* context);
             virtual ~RocketController();
 
Index: code/branches/core6/src/modules/weapons/munitions/FusionMunition.cc
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/FusionMunition.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/FusionMunition.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(FusionMunition);
 
-    FusionMunition::FusionMunition(BaseObject* creator) : Munition(creator)
+    FusionMunition::FusionMunition(Context* context) : Munition(context)
     {
         RegisterObject(FusionMunition);
Index: code/branches/core6/src/modules/weapons/munitions/FusionMunition.h
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/FusionMunition.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/FusionMunition.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            FusionMunition(BaseObject* creator);
+            FusionMunition(Context* context);
             virtual ~FusionMunition() {}
     };
Index: code/branches/core6/src/modules/weapons/munitions/LaserMunition.cc
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/LaserMunition.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/LaserMunition.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(LaserMunition);
 
-    LaserMunition::LaserMunition(BaseObject* creator) : ReplenishingMunition(creator)
+    LaserMunition::LaserMunition(Context* context) : ReplenishingMunition(context)
     {
         RegisterObject(LaserMunition);
Index: code/branches/core6/src/modules/weapons/munitions/LaserMunition.h
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/LaserMunition.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/LaserMunition.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            LaserMunition(BaseObject* creator);
+            LaserMunition(Context* context);
             virtual ~LaserMunition() {}
     };
Index: code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.cc
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.cc	(revision 9629)
@@ -41,5 +41,5 @@
     CreateFactory(ReplenishingMunition);
 
-    ReplenishingMunition::ReplenishingMunition(BaseObject* creator) : Munition(creator)
+    ReplenishingMunition::ReplenishingMunition(Context* context) : Munition(context)
     {
         RegisterObject(ReplenishingMunition);
Index: code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.h
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/ReplenishingMunition.h	(revision 9629)
@@ -53,5 +53,5 @@
     {
         public:
-            ReplenishingMunition(BaseObject* creator);
+            ReplenishingMunition(Context* context);
             virtual ~ReplenishingMunition() {}
 
Index: code/branches/core6/src/modules/weapons/munitions/RocketMunition.cc
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/RocketMunition.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/RocketMunition.cc	(revision 9629)
@@ -39,5 +39,5 @@
     CreateFactory(RocketMunition);
 
-    RocketMunition::RocketMunition(BaseObject* creator) : Munition(creator)
+    RocketMunition::RocketMunition(Context* context) : Munition(context)
     {
         RegisterObject(RocketMunition);
Index: code/branches/core6/src/modules/weapons/munitions/RocketMunition.h
===================================================================
--- code/branches/core6/src/modules/weapons/munitions/RocketMunition.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/munitions/RocketMunition.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            RocketMunition(BaseObject* creator);
+            RocketMunition(Context* context);
             virtual ~RocketMunition() {}
     };
Index: code/branches/core6/src/modules/weapons/projectiles/BasicProjectile.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/BasicProjectile.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/BasicProjectile.cc	(revision 9629)
@@ -106,5 +106,5 @@
                 {
                     {
-                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
+                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
                         effect->setPosition(entity->getPosition());
                         effect->setOrientation(entity->getOrientation());
@@ -115,5 +115,5 @@
                     // Second effect with same condition
                     {
-                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
+                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
                         effect->setPosition(entity->getPosition());
                         effect->setOrientation(entity->getOrientation());
@@ -127,5 +127,5 @@
                 if (victim && victim->hasShield() && (this->getDamage() > 0.0f || this->getShieldDamage() > 0.0f) && victim->getHealth() > 0.0f)
                 {
-                    ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
+                    ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
                     effect->setDestroyAfterLife(true);
                     effect->setSource("Orxonox/Shield");
Index: code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.cc	(revision 9629)
@@ -42,5 +42,5 @@
     CreateFactory(BillboardProjectile);
 
-    BillboardProjectile::BillboardProjectile(BaseObject* creator) : Projectile(creator)
+    BillboardProjectile::BillboardProjectile(Context* context) : Projectile(context)
     {
         RegisterObject(BillboardProjectile);
Index: code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/BillboardProjectile.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            BillboardProjectile(BaseObject* creator);
+            BillboardProjectile(Context* context);
             virtual ~BillboardProjectile();
 
Index: code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.cc	(revision 9629)
@@ -42,5 +42,5 @@
     CreateFactory(LightningGunProjectile);
 
-    LightningGunProjectile::LightningGunProjectile(BaseObject* creator) : BillboardProjectile(creator)
+    LightningGunProjectile::LightningGunProjectile(Context* context) : BillboardProjectile(context)
     {
         RegisterObject(LightningGunProjectile);
Index: code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/LightningGunProjectile.h	(revision 9629)
@@ -55,5 +55,5 @@
     {
         public:
-            LightningGunProjectile(BaseObject* creator);
+            LightningGunProjectile(Context* context);
             virtual ~LightningGunProjectile() {}
 
Index: code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.cc	(revision 9629)
@@ -43,5 +43,5 @@
     CreateFactory(ParticleProjectile);
 
-    ParticleProjectile::ParticleProjectile(BaseObject* creator) : BillboardProjectile(creator)
+    ParticleProjectile::ParticleProjectile(Context* context) : BillboardProjectile(context)
     {
         RegisterObject(ParticleProjectile);
Index: code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/ParticleProjectile.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            ParticleProjectile(BaseObject* creator);
+            ParticleProjectile(Context* context);
             virtual ~ParticleProjectile();
             virtual void changedVisibility();
Index: code/branches/core6/src/modules/weapons/projectiles/Projectile.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/Projectile.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/Projectile.cc	(revision 9629)
@@ -46,5 +46,5 @@
     CreateFactory(Projectile);
 
-    Projectile::Projectile(BaseObject* creator) : MovableEntity(creator), BasicProjectile()
+    Projectile::Projectile(Context* context) : MovableEntity(context), BasicProjectile()
     {
         RegisterObject(Projectile);
@@ -60,5 +60,5 @@
             this->setCollisionType(Kinematic);
 
-            SphereCollisionShape* shape = new SphereCollisionShape(this);
+            SphereCollisionShape* shape = new SphereCollisionShape(this->getContext());
             shape->setRadius(20.0f);
             this->attachCollisionShape(shape);
Index: code/branches/core6/src/modules/weapons/projectiles/Projectile.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/Projectile.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/Projectile.h	(revision 9629)
@@ -58,5 +58,5 @@
     {
         public:
-            Projectile(BaseObject* creator);
+            Projectile(Context* context);
             virtual ~Projectile();
 
Index: code/branches/core6/src/modules/weapons/projectiles/Rocket.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/Rocket.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/Rocket.cc	(revision 9629)
@@ -57,8 +57,8 @@
         Constructor. Registers the object and initializes some default values.
     */
-    Rocket::Rocket(BaseObject* creator)
-        : ControllableEntity(creator)
+    Rocket::Rocket(Context* context)
+        : ControllableEntity(context)
         , BasicProjectile()
-        , RadarViewable(creator, static_cast<WorldEntity*>(this))
+        , RadarViewable(this, static_cast<WorldEntity*>(this))
     {
         RegisterObject(Rocket);// Register the Rocket class to the core
@@ -73,5 +73,5 @@
 
             // Create rocket model
-            Model* model = new Model(this);
+            Model* model = new Model(this->getContext());
             model->setMeshSource("rocket.mesh");
             model->scale(0.7f);
@@ -79,5 +79,5 @@
 
             // Add effects.
-            ParticleEmitter* fire = new ParticleEmitter(this);
+            ParticleEmitter* fire = new ParticleEmitter(this->getContext());
             this->attach(fire);
             fire->setOrientation(this->getOrientation());
@@ -89,5 +89,5 @@
 
             // Add collision shape
-            ConeCollisionShape* collisionShape = new ConeCollisionShape(this);
+            ConeCollisionShape* collisionShape = new ConeCollisionShape(this->getContext());
             collisionShape->setRadius(3);
             collisionShape->setHeight(500);
@@ -97,5 +97,5 @@
 
             // Add sound
-            this->defSndWpnEngine_ = new WorldSound(this);
+            this->defSndWpnEngine_ = new WorldSound(this->getContext());
             this->defSndWpnEngine_->setLooping(true);
             this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg");
@@ -103,5 +103,5 @@
             this->attach(defSndWpnEngine_);
 
-            this->defSndWpnLaunch_ = new WorldSound(this);
+            this->defSndWpnLaunch_ = new WorldSound(this->getContext());
             this->defSndWpnLaunch_->setLooping(false);
             this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg");
@@ -116,5 +116,5 @@
 
         // Add camera
-        CameraPosition* camPosition = new CameraPosition(this);
+        CameraPosition* camPosition = new CameraPosition(this->getContext());
         camPosition->setPosition(0,4,15);
         camPosition->setAllowMouseLook(true);
@@ -226,11 +226,11 @@
         if(this->getShooter())
         {
-            effect1 = new ParticleSpawner(this->getShooter()->getCreator());
-            effect2 = new ParticleSpawner(this->getShooter()->getCreator());
+            effect1 = new ParticleSpawner(this->getShooter()->getContext());
+            effect2 = new ParticleSpawner(this->getShooter()->getContext());
         }
         else
         {
-            effect1 = new ParticleSpawner(static_cast<BaseObject*>(this->getScene().get()));
-            effect2 = new ParticleSpawner(static_cast<BaseObject*>(this->getScene().get()));
+            effect1 = new ParticleSpawner(this->getContext());
+            effect2 = new ParticleSpawner(this->getContext());
         }
 
Index: code/branches/core6/src/modules/weapons/projectiles/Rocket.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/Rocket.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/Rocket.h	(revision 9629)
@@ -59,5 +59,5 @@
     {
         public:
-            Rocket(BaseObject* creator);
+            Rocket(Context* context);
             virtual ~Rocket();
 
Index: code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.cc
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.cc	(revision 9629)
@@ -56,8 +56,8 @@
     const float SimpleRocket::FUEL_PERCENTAGE = 0.8f;
 
-    SimpleRocket::SimpleRocket(BaseObject* creator)
-        : ControllableEntity(creator)
+    SimpleRocket::SimpleRocket(Context* context)
+        : ControllableEntity(context)
         , BasicProjectile()
-        , RadarViewable(creator, static_cast<WorldEntity*>(this))
+        , RadarViewable(this, static_cast<WorldEntity*>(this))
     {
         RegisterObject(SimpleRocket);// Register the SimpleRocket class to the core
@@ -74,5 +74,5 @@
 
             // Create rocket model.
-            Model* model = new Model(this);
+            Model* model = new Model(this->getContext());
             model->setMeshSource("rocket.mesh");
             model->scale(0.7f);
@@ -80,5 +80,5 @@
 
             // Add effects.
-            this->fire_ = new ParticleEmitter(this);
+            this->fire_ = new ParticleEmitter(this->getContext());
             this->attach(this->fire_);
 
@@ -91,5 +91,5 @@
             // Add collision shape.
             // TODO: fix the orientation and size of this collision shape to match the rocket
-            ConeCollisionShape* collisionShape = new ConeCollisionShape(this);
+            ConeCollisionShape* collisionShape = new ConeCollisionShape(this->getContext());
             collisionShape->setOrientation(this->getOrientation());
             collisionShape->setRadius(1.5f);
Index: code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.h
===================================================================
--- code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/projectiles/SimpleRocket.h	(revision 9629)
@@ -60,5 +60,5 @@
     {
         public:
-            SimpleRocket(BaseObject* creator);
+            SimpleRocket(Context* context);
             virtual ~SimpleRocket();
             virtual void tick(float dt);
Index: code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.cc	(revision 9629)
@@ -51,5 +51,5 @@
     CreateFactory(EnergyDrink);
 
-    EnergyDrink::EnergyDrink(BaseObject* creator) : WeaponMode(creator)
+    EnergyDrink::EnergyDrink(Context* context) : WeaponMode(context)
     {
         RegisterObject(EnergyDrink);
@@ -101,6 +101,6 @@
     {
         // Create the projectile
-        Projectile* projectile = new Projectile(this);
-        Model* model = new Model(projectile);
+        Projectile* projectile = new Projectile(this->getContext());
+        Model* model = new Model(projectile->getContext());
         model->setMeshSource("can.mesh");
         model->setCastShadows(false);
@@ -127,5 +127,5 @@
     void EnergyDrink::muzzleflash()
     {
-        MuzzleFlash *muzzleFlash = new MuzzleFlash(this);
+        MuzzleFlash *muzzleFlash = new MuzzleFlash(this->getContext());
         this->getWeapon()->attach(muzzleFlash);
         muzzleFlash->setPosition(this->getMuzzleOffset());
Index: code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/EnergyDrink.h	(revision 9629)
@@ -54,5 +54,5 @@
     {
         public:
-            EnergyDrink(BaseObject* creator);
+            EnergyDrink(Context* context);
             virtual ~EnergyDrink() {}
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.cc	(revision 9629)
@@ -48,5 +48,5 @@
     CreateFactory(FusionFire);
 
-    FusionFire::FusionFire(BaseObject* creator) : WeaponMode(creator)
+    FusionFire::FusionFire(Context* context) : WeaponMode(context)
     {
         RegisterObject(FusionFire);
@@ -66,5 +66,5 @@
     void FusionFire::fire()
     {
-        BillboardProjectile* projectile = new BillboardProjectile(this);
+        BillboardProjectile* projectile = new BillboardProjectile(this->getContext());
 
         projectile->setOrientation(this->getMuzzleOrientation());
Index: code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/FusionFire.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            FusionFire(BaseObject* creator);
+            FusionFire(Context* context);
             virtual ~FusionFire() {}
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/HsW01.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/HsW01.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/HsW01.cc	(revision 9629)
@@ -52,5 +52,5 @@
     CreateFactory(HsW01);
 
-    HsW01::HsW01(BaseObject* creator) : WeaponMode(creator)
+    HsW01::HsW01(Context* context) : WeaponMode(context)
     {
         RegisterObject(HsW01);
@@ -111,6 +111,6 @@
 
         // Create the projectile.
-        Projectile* projectile = new Projectile(this);
-        Model* model = new Model(projectile);
+        Projectile* projectile = new Projectile(this->getContext());
+        Model* model = new Model(projectile->getContext());
         model->setMeshSource(mesh_);
         model->setCastShadows(false);
@@ -138,5 +138,5 @@
     void HsW01::muzzleflash()
     {
-        MuzzleFlash *muzzleFlash = new MuzzleFlash(this);
+        MuzzleFlash *muzzleFlash = new MuzzleFlash(this->getContext());
         this->getWeapon()->attach(muzzleFlash);
         muzzleFlash->setPosition(this->getMuzzleOffset());
Index: code/branches/core6/src/modules/weapons/weaponmodes/HsW01.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/HsW01.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/HsW01.h	(revision 9629)
@@ -53,5 +53,5 @@
     {
         public:
-            HsW01(BaseObject* creator);
+            HsW01(Context* context);
             virtual ~HsW01();
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.cc	(revision 9629)
@@ -47,5 +47,5 @@
     CreateFactory(LaserFire);
 
-    LaserFire::LaserFire(BaseObject* creator) : WeaponMode(creator)
+    LaserFire::LaserFire(Context* context) : WeaponMode(context)
     {
         RegisterObject(LaserFire);
@@ -64,5 +64,5 @@
     void LaserFire::fire()
     {
-        ParticleProjectile* projectile = new ParticleProjectile(this);
+        ParticleProjectile* projectile = new ParticleProjectile(this->getContext());
 
         projectile->setOrientation(this->getMuzzleOrientation());
Index: code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/LaserFire.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            LaserFire(BaseObject* creator);
+            LaserFire(Context* context);
             virtual ~LaserFire() {}
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.cc	(revision 9629)
@@ -46,5 +46,5 @@
     CreateFactory(LightningGun);
 
-    LightningGun::LightningGun(BaseObject* creator) : WeaponMode(creator)
+    LightningGun::LightningGun(Context* context) : WeaponMode(context)
     {
         RegisterObject(LightningGun);
@@ -68,5 +68,5 @@
     void LightningGun::fire()
     {
-        LightningGunProjectile* projectile = new LightningGunProjectile(this);
+        LightningGunProjectile* projectile = new LightningGunProjectile(this->getContext());
         projectile->setMaterial("Flares/LightningBall_");
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/LightningGun.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            LightningGun(BaseObject* creator);
+            LightningGun(Context* context);
             virtual ~LightningGun();
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.cc	(revision 9629)
@@ -48,5 +48,5 @@
     CreateFactory(RocketFire);
 
-    RocketFire::RocketFire(BaseObject* creator) : WeaponMode(creator)
+    RocketFire::RocketFire(Context* context) : WeaponMode(context)
     {
         RegisterObject(RocketFire);
@@ -71,5 +71,5 @@
     void RocketFire::fire()
     {
-        Rocket* rocket = new Rocket(this);
+        Rocket* rocket = new Rocket(this->getContext());
 
         this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
Index: code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/RocketFire.h	(revision 9629)
@@ -51,5 +51,5 @@
     {
         public:
-            RocketFire(BaseObject* creator);
+            RocketFire(Context* context);
             virtual ~RocketFire();
 
Index: code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.cc
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.cc	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.cc	(revision 9629)
@@ -52,5 +52,5 @@
     CreateFactory(SimpleRocketFire);
 
-    SimpleRocketFire::SimpleRocketFire(BaseObject* creator) : WeaponMode(creator)
+    SimpleRocketFire::SimpleRocketFire(Context* context) : WeaponMode(context)
     {
         RegisterObject(SimpleRocketFire);
@@ -76,5 +76,5 @@
     void SimpleRocketFire::fire()
     {
-        RocketController* controller = new RocketController(this);
+        RocketController* controller = new RocketController(this->getContext());
         SimpleRocket* rocket = controller->getRocket();
         this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
Index: code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.h
===================================================================
--- code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.h	(revision 9600)
+++ code/branches/core6/src/modules/weapons/weaponmodes/SimpleRocketFire.h	(revision 9629)
@@ -50,5 +50,5 @@
     {
         public:
-            SimpleRocketFire(BaseObject* creator);
+            SimpleRocketFire(Context* context);
             virtual ~SimpleRocketFire();
             void deactivateFire();
