Changeset 9667 for code/trunk/src/orxonox
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 199 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/CameraManager.cc
r9348 r9667 38 38 #include "core/GameMode.h" 39 39 #include "core/GraphicsManager.h" 40 #include "core/ ObjectList.h"40 #include "core/object/ObjectList.h" 41 41 #include "tools/Shader.h" 42 42 #include "graphics/Camera.h" … … 48 48 CameraManager::CameraManager() 49 49 { 50 RegisterRootObject(CameraManager);51 52 50 assert(GameMode::showsGraphics()); 53 51 } -
code/trunk/src/orxonox/CameraManager.h
r8079 r9667 41 41 #include "util/OgreForwardRefs.h" 42 42 #include "util/Singleton.h" 43 #include "core/OrxonoxClass.h"44 43 45 44 namespace orxonox 46 45 { 47 class _OrxonoxExport CameraManager : public Singleton<CameraManager> , public OrxonoxClass46 class _OrxonoxExport CameraManager : public Singleton<CameraManager> 48 47 { 49 48 friend class Singleton<CameraManager>; -
code/trunk/src/orxonox/Level.cc
r9016 r9667 43 43 namespace orxonox 44 44 { 45 CreateFactory(Level);45 RegisterClass(Level); 46 46 47 Level::Level( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)47 Level::Level(Context* context) : BaseObject(context), Synchronisable(context), Context(context) 48 48 { 49 49 RegisterObject(Level); -
code/trunk/src/orxonox/Level.h
r9016 r9667 41 41 namespace orxonox 42 42 { 43 class _OrxonoxExport Level : public BaseObject, public Synchronisable 43 class _OrxonoxExport Level : public BaseObject, public Synchronisable, public Context 44 44 { 45 45 public: 46 Level( BaseObject* creator);46 Level(Context* context); 47 47 virtual ~Level(); 48 48 -
code/trunk/src/orxonox/LevelInfo.cc
r9348 r9667 242 242 // LevelInfo 243 243 244 CreateFactory(LevelInfo);244 RegisterClass(LevelInfo); 245 245 246 246 /** … … 250 250 The creator of this object. 251 251 */ 252 LevelInfo::LevelInfo( BaseObject* creator) : BaseObject(creator)252 LevelInfo::LevelInfo(Context* context) : BaseObject(context) 253 253 { 254 254 RegisterObject(LevelInfo); -
code/trunk/src/orxonox/LevelInfo.h
r9348 r9667 45 45 #include <iostream> 46 46 #include <fstream> 47 #include "core/ OrxonoxClass.h"47 #include "core/class/OrxonoxInterface.h" 48 48 49 49 namespace orxonox // tolua_export … … 61 61 */ 62 62 class _OrxonoxExport LevelInfoItem // tolua_export 63 : virtual public Orxonox Class63 : virtual public OrxonoxInterface 64 64 { // tolua_export 65 65 public: … … 204 204 { 205 205 public: 206 LevelInfo( BaseObject* creator);206 LevelInfo(Context* context); 207 207 virtual ~LevelInfo(); 208 208 -
code/trunk/src/orxonox/LevelManager.cc
r9550 r9667 37 37 38 38 #include "util/ScopedSingletonManager.h" 39 #include "core/config/CommandLineParser.h" 40 #include "core/config/ConfigValueIncludes.h" 41 #include "core/CoreIncludes.h" 39 42 #include "core/ClassTreeMask.h" 40 #include "core/CommandLineParser.h"41 #include "core/ConfigValueIncludes.h"42 #include "core/CoreIncludes.h"43 43 #include "core/Loader.h" 44 44 #include "core/Resource.h" … … 59 59 LevelManager::LevelManager() 60 60 { 61 Register RootObject(LevelManager);61 RegisterObject(LevelManager); 62 62 this->setConfigValues(); 63 63 -
code/trunk/src/orxonox/LevelManager.h
r8079 r9667 46 46 47 47 #include "util/Singleton.h" 48 #include "core/ OrxonoxClass.h"48 #include "core/config/Configurable.h" 49 49 50 50 // tolua_begin … … 67 67 class _OrxonoxExport LevelManager 68 68 // tolua_end 69 : public Singleton<LevelManager>, public OrxonoxClass69 : public Singleton<LevelManager>, public Configurable 70 70 { // tolua_export 71 71 friend class Singleton<LevelManager>; -
code/trunk/src/orxonox/Main.cc
r9550 r9667 36 36 #include "Main.h" 37 37 38 #include "core/ CommandLineParser.h"38 #include "core/config/CommandLineParser.h" 39 39 #include "core/Game.h" 40 40 #include "core/LuaState.h" -
code/trunk/src/orxonox/MoodManager.cc
r8858 r9667 30 30 31 31 #include "util/ScopedSingletonManager.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/Resource.h" … … 43 43 MoodManager::MoodManager() 44 44 { 45 Register RootObject(MoodManager);45 RegisterObject(MoodManager); 46 46 this->setConfigValues(); 47 47 … … 95 95 MoodListener::MoodListener() 96 96 { 97 Register RootObject(MoodListener);97 RegisterObject(MoodListener); 98 98 } 99 99 -
code/trunk/src/orxonox/MoodManager.h
r8706 r9667 34 34 #include <string> 35 35 #include "util/Singleton.h" 36 #include "core/ OrxonoxClass.h"36 #include "core/class/OrxonoxInterface.h" 37 37 38 38 namespace orxonox … … 42 42 The MoodListener class is aware of a change in themes and directs that info to dependent classes. 43 43 */ 44 class _OrxonoxExport MoodListener : virtual public Orxonox Class44 class _OrxonoxExport MoodListener : virtual public OrxonoxInterface 45 45 { 46 46 friend class MoodManager; … … 60 60 The MoodManager class serves to allow for different musical themes in the game. 61 61 */ 62 class _OrxonoxExport MoodManager : public Singleton<MoodManager>, public OrxonoxClass62 class _OrxonoxExport MoodManager : public Singleton<MoodManager>, public Configurable 63 63 { 64 64 friend class Singleton<MoodManager>; … … 74 74 75 75 private: 76 ~MoodManager() {}77 76 void checkMoodValidity(); 78 77 -
code/trunk/src/orxonox/PawnManager.cc
r8351 r9667 39 39 PawnManager::PawnManager() 40 40 { 41 Register RootObject(PawnManager);41 RegisterObject(PawnManager); 42 42 } 43 43 -
code/trunk/src/orxonox/PlayerManager.cc
r8858 r9667 43 43 PlayerManager::PlayerManager() 44 44 { 45 Register RootObject(PlayerManager);45 RegisterObject(PlayerManager); 46 46 47 47 // this->getConnectedClients(); -
code/trunk/src/orxonox/Radar.cc
r8858 r9667 37 37 38 38 //#include "util/Math.h" 39 #include "core/ ObjectList.h"39 #include "core/object/ObjectList.h" 40 40 #include "core/command/ConsoleCommand.h" 41 41 #include "interfaces/RadarListener.h" -
code/trunk/src/orxonox/Radar.h
r7163 r9667 41 41 #include <string> 42 42 43 #include "core/ ObjectListIterator.h"43 #include "core/object/ObjectListIterator.h" 44 44 #include "interfaces/RadarViewable.h" 45 45 #include "tools/interfaces/Tickable.h" … … 74 74 void radarObjectChanged(RadarViewable* rv); 75 75 76 ObjectList Iterator<RadarViewable>itFocus_;76 ObjectList<RadarViewable>::iterator itFocus_; 77 77 RadarViewable* focus_; 78 78 std::map<std::string, RadarViewable::Shape> objectTypes_; -
code/trunk/src/orxonox/Scene.cc
r9348 r9667 51 51 namespace orxonox 52 52 { 53 CreateFactory(Scene);54 55 Scene::Scene( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)53 RegisterClass(Scene); 54 55 Scene::Scene(Context* context) : BaseObject(context), Synchronisable(context), Context(context) 56 56 { 57 57 RegisterObject(Scene); -
code/trunk/src/orxonox/Scene.h
r6417 r9667 45 45 namespace orxonox 46 46 { 47 class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable 47 class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable, public Context 48 48 { 49 49 public: 50 Scene( BaseObject* creator);50 Scene(Context* context); 51 51 virtual ~Scene(); 52 52 -
code/trunk/src/orxonox/Test.cc
r8858 r9667 28 28 29 29 #include "core/CoreIncludes.h" 30 #include "core/ ConfigValueIncludes.h"30 #include "core/config/ConfigValueIncludes.h" 31 31 #include "core/command/ConsoleCommand.h" 32 32 #include "network/NetworkFunction.h" … … 36 36 namespace orxonox 37 37 { 38 CreateFactory( Test );38 RegisterClass ( Test ); 39 39 40 40 SetConsoleCommand("Test", "printV1", &Test::printV1).addShortcut(); … … 56 56 Test* Test::instance_ = 0; 57 57 58 Test::Test( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)58 Test::Test(Context* context) : BaseObject(context), Synchronisable(context) 59 59 { 60 60 assert(instance_==0); -
code/trunk/src/orxonox/Test.h
r8858 r9667 46 46 { 47 47 public: 48 Test( BaseObject* creator);48 Test(Context* context); 49 49 virtual ~Test(); 50 50 -
code/trunk/src/orxonox/chat/ChatHistory.cc
r8858 r9667 39 39 /* constructor */ 40 40 #ifndef CHATTEST 41 //ChatHistory::ChatHistory( BaseObject* creator ) : BaseObject(creator)42 41 ChatHistory::ChatHistory() 43 42 #else -
code/trunk/src/orxonox/chat/ChatListener.h
r8858 r9667 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "core/ OrxonoxClass.h"34 #include "core/object/Listable.h" 35 35 36 36 namespace orxonox … … 40 40 message was sent through ChatManager. 41 41 */ 42 class _OrxonoxExport ChatListener : virtual public OrxonoxClass42 class _OrxonoxExport ChatListener : virtual public Listable 43 43 { 44 44 friend class ChatManager; -
code/trunk/src/orxonox/chat/ChatManager.cc
r8858 r9667 113 113 // ChatListener // 114 114 ////////////////////////////////////////////////////////////////////////// 115 RegisterAbstractClass(ChatListener).inheritsFrom(Class(Listable)); 115 116 116 117 ChatListener::ChatListener() 117 118 { 118 Register RootObject(ChatListener);119 RegisterObject(ChatListener); 119 120 } 120 121 } -
code/trunk/src/orxonox/collisionshapes/CollisionShape.cc
r8858 r9667 44 44 namespace orxonox 45 45 { 46 RegisterAbstractClass(CollisionShape).inheritsFrom(Class(BaseObject)).inheritsFrom(Class(Synchronisable)); 46 47 47 48 /** … … 49 50 Constructor. Registers and initializes the object. 50 51 */ 51 CollisionShape::CollisionShape( BaseObject* creator)52 : BaseObject(c reator)53 , Synchronisable(c reator)52 CollisionShape::CollisionShape(Context* context) 53 : BaseObject(context) 54 , Synchronisable(context) 54 55 { 55 56 RegisterObject(CollisionShape); -
code/trunk/src/orxonox/collisionshapes/CollisionShape.h
r8706 r9667 58 58 { 59 59 public: 60 CollisionShape( BaseObject* creator);60 CollisionShape(Context* context); 61 61 virtual ~CollisionShape(); 62 62 -
code/trunk/src/orxonox/collisionshapes/CompoundCollisionShape.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(CompoundCollisionShape);44 RegisterClass(CompoundCollisionShape); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 CompoundCollisionShape::CompoundCollisionShape( BaseObject* creator) : CollisionShape(creator)50 CompoundCollisionShape::CompoundCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(CompoundCollisionShape); -
code/trunk/src/orxonox/collisionshapes/CompoundCollisionShape.h
r8706 r9667 58 58 { 59 59 public: 60 CompoundCollisionShape( BaseObject* creator);60 CompoundCollisionShape(Context* context); 61 61 virtual ~CompoundCollisionShape(); 62 62 -
code/trunk/src/orxonox/collisionshapes/WorldEntityCollisionShape.cc
r8706 r9667 37 37 namespace orxonox 38 38 { 39 WorldEntityCollisionShape::WorldEntityCollisionShape( WorldEntity* creator) : CompoundCollisionShape(creator)39 WorldEntityCollisionShape::WorldEntityCollisionShape(Context* context) : CompoundCollisionShape(context) 40 40 { 41 41 RegisterObject(WorldEntityCollisionShape); 42 42 43 this->worldEntityOwner_ = creator;43 this->worldEntityOwner_ = NULL; 44 44 // suppress synchronisation 45 45 this->setSyncMode(ObjectDirection::None); -
code/trunk/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r5781 r9667 38 38 { 39 39 public: 40 WorldEntityCollisionShape( WorldEntity* creator);40 WorldEntityCollisionShape(Context* context); 41 41 virtual ~WorldEntityCollisionShape(); 42 42 43 inline WorldEntity* getWorldEntityOwner() 43 inline void setWorldEntityOwner(WorldEntity* worldEntityOwner) 44 { this->worldEntityOwner_ = worldEntityOwner; } 45 inline WorldEntity* getWorldEntityOwner() const 44 46 { return this->worldEntityOwner_; } 45 47 -
code/trunk/src/orxonox/controllers/AIController.cc
r9016 r9667 39 39 const float AIController::ACTION_INTERVAL = 1.0f; 40 40 41 CreateFactory(AIController);42 43 AIController::AIController( BaseObject* creator) : ArtificialController(creator)41 RegisterClass(AIController); 42 43 AIController::AIController(Context* context) : ArtificialController(context) 44 44 { 45 45 RegisterObject(AIController); -
code/trunk/src/orxonox/controllers/AIController.h
r9016 r9667 41 41 { 42 42 public: 43 AIController( BaseObject* creator);43 AIController(Context* context); 44 44 virtual ~AIController(); 45 45 -
code/trunk/src/orxonox/controllers/ArtificialController.cc
r9252 r9667 45 45 SetConsoleCommand("ArtificialController", "setbotlevel", &ArtificialController::setAllBotLevel); 46 46 47 ArtificialController::ArtificialController(BaseObject* creator) : FormationController(creator) 47 RegisterClass(ArtificialController); 48 49 ArtificialController::ArtificialController(Context* context) : FormationController(context) 48 50 { 49 51 RegisterObject(ArtificialController); -
code/trunk/src/orxonox/controllers/ArtificialController.h
r9252 r9667 39 39 { 40 40 public: 41 ArtificialController( BaseObject* creator);41 ArtificialController(Context* context); 42 42 virtual ~ArtificialController(); 43 43 -
code/trunk/src/orxonox/controllers/Controller.cc
r6417 r9667 33 33 namespace orxonox 34 34 { 35 CreateUnloadableFactory(Controller);35 RegisterUnloadableClass(Controller); 36 36 37 Controller::Controller( BaseObject* creator) : BaseObject(creator)37 Controller::Controller(Context* context) : BaseObject(context) 38 38 { 39 39 RegisterObject(Controller); -
code/trunk/src/orxonox/controllers/Controller.h
r9666 r9667 42 42 43 43 public: 44 Controller( BaseObject* creator);44 Controller(Context* context); 45 45 virtual ~Controller(); 46 46 -
code/trunk/src/orxonox/controllers/DroneController.cc
r8891 r9667 41 41 Constructor. 42 42 */ 43 CreateFactory(DroneController);43 RegisterClass(DroneController); 44 44 45 45 const float DroneController::ACTION_INTERVAL = 1.0f; 46 46 47 DroneController::DroneController( BaseObject* creator) : ArtificialController(creator)47 DroneController::DroneController(Context* context) : ArtificialController(context) 48 48 { 49 49 RegisterObject(DroneController); -
code/trunk/src/orxonox/controllers/DroneController.h
r8891 r9667 33 33 34 34 #include "AIController.h" 35 #include "core/ WeakPtr.h"35 #include "core/object/WeakPtr.h" 36 36 #include "tools/interfaces/Tickable.h" 37 37 … … 50 50 { 51 51 public: 52 DroneController( BaseObject* creator);52 DroneController(Context* context); 53 53 virtual ~DroneController(); 54 54 -
code/trunk/src/orxonox/controllers/FormationController.cc
r9663 r9667 56 56 SetConsoleCommand("FormationController", "formationsize", &FormationController::formationsize); 57 57 58 59 58 RegisterClass(FormationController); 60 59 61 60 static const unsigned int STANDARD_MAX_FORMATION_SIZE = 9; … … 69 68 static const float ROTATEFACTOR_FREE = 0.8f; 70 69 71 FormationController::FormationController( BaseObject* creator) : Controller(creator)70 FormationController::FormationController(Context* context) : Controller(context) 72 71 { 73 72 RegisterObject(FormationController); -
code/trunk/src/orxonox/controllers/FormationController.h
r9625 r9667 33 33 34 34 #include <vector> 35 #include "core/ Super.h"35 #include "core/class/Super.h" 36 36 37 37 #include "util/Math.h" 38 #include "core/OrxonoxClass.h"39 38 #include "controllers/Controller.h" 40 39 #include "worldentities/ControllableEntity.h" … … 47 46 48 47 public: 49 FormationController( BaseObject* creator);48 FormationController(Context* context); 50 49 51 50 virtual ~FormationController(); -
code/trunk/src/orxonox/controllers/HumanController.cc
r9625 r9667 66 66 SetConsoleCommand("HumanController", "myposition", &HumanController::myposition ).addShortcut(); 67 67 68 CreateUnloadableFactory(HumanController);68 RegisterUnloadableClass(HumanController); 69 69 70 70 HumanController* HumanController::localController_s = 0; 71 71 /*static*/ const float HumanController::BOOSTING_TIME = 0.1f; 72 72 73 HumanController::HumanController( BaseObject* creator) : FormationController(creator)73 HumanController::HumanController(Context* context) : FormationController(context) 74 74 { 75 75 RegisterObject(HumanController); -
code/trunk/src/orxonox/controllers/HumanController.h
r9256 r9667 44 44 { // tolua_export 45 45 public: 46 HumanController( BaseObject* creator);46 HumanController(Context* context); 47 47 virtual ~HumanController(); 48 48 -
code/trunk/src/orxonox/controllers/NewHumanController.cc
r9348 r9667 56 56 SetConsoleCommand("NewHumanController", "unfire", &NewHumanController::unfire ).keybindMode(KeybindMode::OnRelease).addShortcut(); 57 57 58 CreateUnloadableFactory(NewHumanController);58 RegisterUnloadableClass(NewHumanController); 59 59 60 60 NewHumanController* NewHumanController::localController_s = 0; 61 61 62 NewHumanController::NewHumanController( BaseObject* creator)63 : HumanController(c reator)62 NewHumanController::NewHumanController(Context* context) 63 : HumanController(context) 64 64 , crossHairOverlay_(NULL) 65 65 , centerOverlay_(NULL) … … 98 98 if (GameMode::showsGraphics()) 99 99 { 100 crossHairOverlay_ = new OrxonoxOverlay(this );100 crossHairOverlay_ = new OrxonoxOverlay(this->getContext()); 101 101 crossHairOverlay_->setBackgroundMaterial("Orxonox/Crosshair3"); 102 102 crossHairOverlay_->setSize(Vector2(overlaySize_, overlaySize_)); … … 104 104 //crossHairOverlay_->setAspectCorrection(true); not working 105 105 106 centerOverlay_ = new OrxonoxOverlay(this );106 centerOverlay_ = new OrxonoxOverlay(this->getContext()); 107 107 centerOverlay_->setBackgroundMaterial("Orxonox/CenterOverlay"); 108 108 centerOverlay_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 112 112 if (showDamageOverlay_) 113 113 { 114 damageOverlayTop_ = new OrxonoxOverlay(this );114 damageOverlayTop_ = new OrxonoxOverlay(this->getContext()); 115 115 damageOverlayTop_->setBackgroundMaterial("Orxonox/DamageOverlayTop"); 116 116 damageOverlayTop_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 118 118 damageOverlayTop_->hide(); 119 119 120 damageOverlayRight_ = new OrxonoxOverlay(this );120 damageOverlayRight_ = new OrxonoxOverlay(this->getContext()); 121 121 damageOverlayRight_->setBackgroundMaterial("Orxonox/DamageOverlayRight"); 122 122 damageOverlayRight_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 124 124 damageOverlayRight_->hide(); 125 125 126 damageOverlayBottom_ = new OrxonoxOverlay(this );126 damageOverlayBottom_ = new OrxonoxOverlay(this->getContext()); 127 127 damageOverlayBottom_->setBackgroundMaterial("Orxonox/DamageOverlayBottom"); 128 128 damageOverlayBottom_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 130 130 damageOverlayBottom_->hide(); 131 131 132 damageOverlayLeft_ = new OrxonoxOverlay(this );132 damageOverlayLeft_ = new OrxonoxOverlay(this->getContext()); 133 133 damageOverlayLeft_->setBackgroundMaterial("Orxonox/DamageOverlayLeft"); 134 134 damageOverlayLeft_->setSize(Vector2(overlaySize_ * 2.5f, overlaySize_ * 2.5f)); … … 139 139 if (showArrows_) 140 140 { 141 arrowsOverlay1_ = new OrxonoxOverlay(this );141 arrowsOverlay1_ = new OrxonoxOverlay(this->getContext()); 142 142 arrowsOverlay1_->setBackgroundMaterial("Orxonox/DirectionArrows1"); 143 143 arrowsOverlay1_->setSize(Vector2(0.02727f, 0.36f * arrowsSize_)); … … 146 146 arrowsOverlay1_->hide(); 147 147 148 arrowsOverlay2_ = new OrxonoxOverlay(this );148 arrowsOverlay2_ = new OrxonoxOverlay(this->getContext()); 149 149 arrowsOverlay2_->setBackgroundMaterial("Orxonox/DirectionArrows2"); 150 150 arrowsOverlay2_->setSize(Vector2(0.02727f, 0.59f * arrowsSize_)); … … 153 153 arrowsOverlay2_->hide(); 154 154 155 arrowsOverlay3_ = new OrxonoxOverlay(this );155 arrowsOverlay3_ = new OrxonoxOverlay(this->getContext()); 156 156 arrowsOverlay3_->setBackgroundMaterial("Orxonox/DirectionArrows3"); 157 157 arrowsOverlay3_->setSize(Vector2(0.02727f, 0.77f * arrowsSize_)); … … 160 160 arrowsOverlay3_->hide(); 161 161 162 arrowsOverlay4_ = new OrxonoxOverlay(this );162 arrowsOverlay4_ = new OrxonoxOverlay(this->getContext()); 163 163 arrowsOverlay4_->setBackgroundMaterial("Orxonox/DirectionArrows4"); 164 164 arrowsOverlay4_->setSize(Vector2(0.02727f, arrowsSize_)); -
code/trunk/src/orxonox/controllers/NewHumanController.h
r9016 r9667 42 42 { 43 43 public: 44 NewHumanController( BaseObject* creator);44 NewHumanController(Context* context); 45 45 virtual ~NewHumanController(); 46 46 -
code/trunk/src/orxonox/controllers/ScriptController.cc
r5781 r9667 32 32 namespace orxonox 33 33 { 34 CreateFactory(ScriptController);34 RegisterClass(ScriptController); 35 35 36 ScriptController::ScriptController( BaseObject* creator) : ArtificialController(creator)36 ScriptController::ScriptController(Context* context) : ArtificialController(context) 37 37 { 38 38 RegisterObject(ScriptController); -
code/trunk/src/orxonox/controllers/ScriptController.h
r5781 r9667 38 38 { 39 39 public: 40 ScriptController( BaseObject* creator);40 ScriptController(Context* context); 41 41 virtual ~ScriptController() { } 42 42 -
code/trunk/src/orxonox/controllers/WaypointController.cc
r9252 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(WaypointController);36 RegisterClass(WaypointController); 37 37 38 WaypointController::WaypointController( BaseObject* creator) : ArtificialController(creator)38 WaypointController::WaypointController(Context* context) : ArtificialController(context) 39 39 { 40 40 RegisterObject(WaypointController); -
code/trunk/src/orxonox/controllers/WaypointController.h
r9252 r9667 41 41 { 42 42 public: 43 WaypointController( BaseObject* creator);43 WaypointController(Context* context); 44 44 virtual ~WaypointController(); 45 45 -
code/trunk/src/orxonox/controllers/WaypointPatrolController.cc
r9016 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(WaypointPatrolController);38 RegisterClass(WaypointPatrolController); 39 39 40 WaypointPatrolController::WaypointPatrolController( BaseObject* creator) : WaypointController(creator)40 WaypointPatrolController::WaypointPatrolController(Context* context) : WaypointController(context) 41 41 { 42 42 RegisterObject(WaypointPatrolController); -
code/trunk/src/orxonox/controllers/WaypointPatrolController.h
r9016 r9667 40 40 { 41 41 public: 42 WaypointPatrolController( BaseObject* creator);42 WaypointPatrolController(Context* context); 43 43 virtual ~WaypointPatrolController() {} 44 44 -
code/trunk/src/orxonox/gamestates/GSClient.cc
r8858 r9667 30 30 31 31 #include "util/Exception.h" 32 #include "core/ CommandLineParser.h"32 #include "core/config/CommandLineParser.h" 33 33 #include "core/Game.h" 34 34 #include "core/GameMode.h" -
code/trunk/src/orxonox/gamestates/GSLevel.h
r7876 r9667 34 34 #include <string> 35 35 #include <set> 36 #include "core/OrxonoxClass.h"37 36 #include "core/GameState.h" 38 37 -
code/trunk/src/orxonox/gamestates/GSMainMenu.cc
r8858 r9667 31 31 #include <OgreSceneManager.h> 32 32 33 #include "core/ ConfigValueIncludes.h"33 #include "core/config/ConfigValueIncludes.h" 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/Game.h" … … 66 66 : GameState(info) 67 67 { 68 Register RootObject(GSMainMenu);68 RegisterObject(GSMainMenu); 69 69 70 70 InputManager::getInstance().createInputState("MainMenuHackery", true, true)->setKeyHandler(KeyBinderManager::getInstance().getDefaultAsHandler()); -
code/trunk/src/orxonox/gamestates/GSMainMenu.h
r8079 r9667 34 34 #include "util/OgreForwardRefs.h" 35 35 #include "core/GameState.h" 36 #include "core/ OrxonoxClass.h"36 #include "core/config/Configurable.h" 37 37 38 38 namespace orxonox 39 39 { 40 class _OrxonoxExport GSMainMenu : public GameState, public OrxonoxClass40 class _OrxonoxExport GSMainMenu : public GameState, public Configurable 41 41 { 42 42 public: -
code/trunk/src/orxonox/gamestates/GSServer.cc
r8858 r9667 30 30 31 31 #include "util/Output.h" 32 #include "core/ CommandLineParser.h"32 #include "core/config/CommandLineParser.h" 33 33 #include "core/Game.h" 34 34 #include "core/GameMode.h" -
code/trunk/src/orxonox/gametypes/Asteroids.cc
r8858 r9667 35 35 namespace orxonox 36 36 { 37 CreateUnloadableFactory(Asteroids);37 RegisterUnloadableClass(Asteroids); 38 38 39 Asteroids::Asteroids( BaseObject* creator) : Gametype(creator)39 Asteroids::Asteroids(Context* context) : Gametype(context) 40 40 { 41 41 RegisterObject(Asteroids); -
code/trunk/src/orxonox/gametypes/Asteroids.h
r5781 r9667 38 38 { 39 39 public: 40 Asteroids( BaseObject* creator);40 Asteroids(Context* context); 41 41 virtual ~Asteroids() {} 42 42 -
code/trunk/src/orxonox/gametypes/Deathmatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(Deathmatch);38 RegisterUnloadableClass(Deathmatch); 39 39 40 Deathmatch::Deathmatch( BaseObject* creator) : Gametype(creator)40 Deathmatch::Deathmatch(Context* context) : Gametype(context) 41 41 { 42 42 RegisterObject(Deathmatch); -
code/trunk/src/orxonox/gametypes/Deathmatch.h
r9348 r9667 38 38 { 39 39 public: 40 Deathmatch( BaseObject* creator);40 Deathmatch(Context* context); 41 41 virtual ~Deathmatch() {} 42 42 -
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r9348 r9667 54 54 #include "worldentities/pawns/Pawn.h" 55 55 #include "worldentities/pawns/SpaceShip.h" 56 #include "core/ ConfigValueIncludes.h"56 #include "core/config/ConfigValueIncludes.h" 57 57 #include "interfaces/TeamColourable.h" 58 58 #include "items/Engine.h" … … 62 62 namespace orxonox 63 63 { 64 CreateUnloadableFactory(Dynamicmatch);65 66 Dynamicmatch::Dynamicmatch( BaseObject* creator) : Gametype(creator)64 RegisterUnloadableClass(Dynamicmatch); 65 66 Dynamicmatch::Dynamicmatch(Context* context) : Gametype(context) 67 67 { 68 68 RegisterObject(Dynamicmatch); -
code/trunk/src/orxonox/gametypes/Dynamicmatch.h
r9348 r9667 44 44 { 45 45 public: 46 Dynamicmatch( BaseObject* creator);46 Dynamicmatch(Context* context); 47 47 virtual ~Dynamicmatch() {} 48 48 -
code/trunk/src/orxonox/gametypes/Gametype.cc
r9348 r9667 32 32 #include "core/Core.h" 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/GameMode.h" 36 36 #include "core/command/ConsoleCommand.h" … … 47 47 namespace orxonox 48 48 { 49 CreateUnloadableFactory(Gametype);50 51 Gametype::Gametype( BaseObject* creator) : BaseObject(creator)49 RegisterUnloadableClass(Gametype); 50 51 Gametype::Gametype(Context* context) : BaseObject(context) 52 52 { 53 53 RegisterObject(Gametype); 54 54 55 this->gtinfo_ = new GametypeInfo(c reator);55 this->gtinfo_ = new GametypeInfo(context); 56 56 57 57 this->setGametype(SmartPtr<Gametype>(this, false)); … … 74 74 if (GameMode::showsGraphics() && !this->scoreboardTemplate_.empty()) 75 75 { 76 this->scoreboard_ = new OverlayGroup( this);76 this->scoreboard_ = new OverlayGroup(context); 77 77 this->scoreboard_->addTemplate(this->scoreboardTemplate_); 78 78 this->scoreboard_->setGametype(this); … … 160 160 ControllableEntity* oldentity = it->first->getControllableEntity(); 161 161 162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity );162 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity->getContext()); 163 163 if (oldentity->getCamera()) 164 164 { … … 283 283 this->gtinfo_->pawnKilled(victim->getPlayer()); 284 284 285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getC reator());285 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getContext()); 286 286 if (victim->getCamera()) 287 287 { … … 458 458 { 459 459 // force spawn at spawnpoint with default pawn 460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn );460 ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn->getContext()); 461 461 spawn->spawn(entity); 462 462 player->startControl(entity); … … 472 472 { 473 473 for (unsigned int i = 0; i < amount; ++i) 474 this->botclass_.fabricate(this );474 this->botclass_.fabricate(this->getContext()); 475 475 } 476 476 -
code/trunk/src/orxonox/gametypes/Gametype.h
r9348 r9667 37 37 38 38 #include "core/BaseObject.h" 39 #include "core/ SubclassIdentifier.h"39 #include "core/class/SubclassIdentifier.h" 40 40 #include "tools/interfaces/Tickable.h" 41 41 #include "infos/GametypeInfo.h" … … 67 67 68 68 public: 69 Gametype( BaseObject* creator);69 Gametype(Context* context); 70 70 virtual ~Gametype(); 71 71 -
code/trunk/src/orxonox/gametypes/LastManStanding.cc
r9348 r9667 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" 35 #include "core/ ConfigValueIncludes.h"35 #include "core/config/ConfigValueIncludes.h" 36 36 #include "util/Convert.h" 37 37 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(LastManStanding);41 42 LastManStanding::LastManStanding( BaseObject* creator) : Deathmatch(creator)40 RegisterUnloadableClass(LastManStanding); 41 42 LastManStanding::LastManStanding(Context* context) : Deathmatch(context) 43 43 { 44 44 RegisterObject(LastManStanding); -
code/trunk/src/orxonox/gametypes/LastManStanding.h
r7655 r9667 65 65 66 66 public: 67 LastManStanding( BaseObject* creator); //!< Default Constructor.67 LastManStanding(Context* context); //!< Default Constructor. 68 68 virtual ~LastManStanding() {} //!< Default Destructor. 69 69 void setConfigValues(); //!< Makes values configurable. -
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r9348 r9667 33 33 #include "infos/PlayerInfo.h" 34 34 #include "worldentities/pawns/Pawn.h" 35 #include "core/ ConfigValueIncludes.h"35 #include "core/config/ConfigValueIncludes.h" 36 36 #include "util/Convert.h" 37 37 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(LastTeamStanding);41 42 LastTeamStanding::LastTeamStanding( BaseObject* creator) : TeamDeathmatch(creator)40 RegisterUnloadableClass(LastTeamStanding); 41 42 LastTeamStanding::LastTeamStanding(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(LastTeamStanding); -
code/trunk/src/orxonox/gametypes/LastTeamStanding.h
r8351 r9667 71 71 72 72 public: 73 LastTeamStanding( BaseObject* creator); //!< Default Constructor.73 LastTeamStanding(Context* context); //!< Default Constructor. 74 74 virtual ~LastTeamStanding(); //!< Default Destructor. 75 75 -
code/trunk/src/orxonox/gametypes/Mission.cc
r9348 r9667 37 37 namespace orxonox 38 38 { 39 CreateUnloadableFactory(Mission);39 RegisterUnloadableClass(Mission); 40 40 41 Mission::Mission( BaseObject* creator) : TeamGametype(creator)41 Mission::Mission(Context* context) : TeamGametype(context) 42 42 { 43 43 RegisterObject(Mission); -
code/trunk/src/orxonox/gametypes/Mission.h
r9348 r9667 39 39 { 40 40 public: 41 Mission( BaseObject* creator);41 Mission(Context* context); 42 42 virtual ~Mission() {} 43 43 -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(TeamBaseMatch);39 40 TeamBaseMatch::TeamBaseMatch( BaseObject* creator) : TeamDeathmatch(creator)38 RegisterUnloadableClass(TeamBaseMatch); 39 40 TeamBaseMatch::TeamBaseMatch(Context* context) : TeamDeathmatch(context) 41 41 { 42 42 RegisterObject(TeamBaseMatch); -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.h
r9348 r9667 41 41 { 42 42 public: 43 TeamBaseMatch( BaseObject* creator);43 TeamBaseMatch(Context* context); 44 44 virtual ~TeamBaseMatch() {} 45 45 -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(TeamDeathmatch);38 RegisterUnloadableClass(TeamDeathmatch); 39 39 40 TeamDeathmatch::TeamDeathmatch( BaseObject* creator) : TeamGametype(creator)40 TeamDeathmatch::TeamDeathmatch(Context* context) : TeamGametype(context) 41 41 { 42 42 RegisterObject(TeamDeathmatch); -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.h
r9348 r9667 38 38 { 39 39 public: 40 TeamDeathmatch( BaseObject* creator);40 TeamDeathmatch(Context* context); 41 41 virtual ~TeamDeathmatch() {} 42 42 -
code/trunk/src/orxonox/gametypes/TeamGametype.cc
r9348 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "infos/PlayerInfo.h" 34 34 #include "interfaces/TeamColourable.h" … … 40 40 namespace orxonox 41 41 { 42 CreateUnloadableFactory(TeamGametype);43 44 TeamGametype::TeamGametype( BaseObject* creator) : Gametype(creator)42 RegisterUnloadableClass(TeamGametype); 43 44 TeamGametype::TeamGametype(Context* context) : Gametype(context) 45 45 { 46 46 RegisterObject(TeamGametype); -
code/trunk/src/orxonox/gametypes/TeamGametype.h
r9348 r9667 41 41 { 42 42 public: 43 TeamGametype( BaseObject* creator);43 TeamGametype(Context* context); 44 44 virtual ~TeamGametype() {} 45 45 -
code/trunk/src/orxonox/gametypes/UnderAttack.cc
r9348 r9667 31 31 #include "util/Convert.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ ConfigValueIncludes.h"33 #include "core/config/ConfigValueIncludes.h" 34 34 #include "chat/ChatManager.h" 35 35 #include "worldentities/pawns/Destroyer.h" … … 38 38 namespace orxonox 39 39 { 40 CreateUnloadableFactory(UnderAttack);40 RegisterUnloadableClass(UnderAttack); 41 41 42 UnderAttack::UnderAttack( BaseObject* creator) : TeamDeathmatch(creator)42 UnderAttack::UnderAttack(Context* context) : TeamDeathmatch(context) 43 43 { 44 44 RegisterObject(UnderAttack); -
code/trunk/src/orxonox/gametypes/UnderAttack.h
r5929 r9667 39 39 { 40 40 public: 41 UnderAttack( BaseObject* creator);41 UnderAttack(Context* context); 42 42 virtual ~UnderAttack() {} 43 43 -
code/trunk/src/orxonox/graphics/AnimatedModel.cc
r8858 r9667 39 39 namespace orxonox 40 40 { 41 CreateFactory(AnimatedModel);41 RegisterClass(AnimatedModel); 42 42 43 AnimatedModel::AnimatedModel( BaseObject* creator) : Model(creator)43 AnimatedModel::AnimatedModel(Context* context) : Model(context) 44 44 { 45 45 RegisterObject(AnimatedModel); -
code/trunk/src/orxonox/graphics/AnimatedModel.h
r8858 r9667 41 41 { 42 42 public: 43 AnimatedModel( BaseObject* creator);43 AnimatedModel(Context* context); 44 44 virtual ~AnimatedModel(); 45 45 -
code/trunk/src/orxonox/graphics/Backlight.cc
r8424 r9667 45 45 namespace orxonox 46 46 { 47 CreateFactory(Backlight);48 49 Backlight::Backlight( BaseObject* creator) : FadingBillboard(creator)47 RegisterClass(Backlight); 48 49 Backlight::Backlight(Context* context) : FadingBillboard(context) 50 50 { 51 51 RegisterObject(Backlight); -
code/trunk/src/orxonox/graphics/Backlight.h
r7163 r9667 41 41 { 42 42 public: 43 Backlight( BaseObject* creator);43 Backlight(Context* context); 44 44 virtual ~Backlight(); 45 45 -
code/trunk/src/orxonox/graphics/Billboard.cc
r8706 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(Billboard);40 RegisterClass(Billboard); 41 41 42 Billboard::Billboard( BaseObject* creator) : StaticEntity(creator)42 Billboard::Billboard(Context* context) : StaticEntity(context) 43 43 { 44 44 RegisterObject(Billboard); -
code/trunk/src/orxonox/graphics/Billboard.h
r8706 r9667 44 44 { 45 45 public: 46 Billboard( BaseObject* creator);46 Billboard(Context* context); 47 47 virtual ~Billboard(); 48 48 -
code/trunk/src/orxonox/graphics/BlinkingBillboard.cc
r8351 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(BlinkingBillboard);37 RegisterClass(BlinkingBillboard); 38 38 39 BlinkingBillboard::BlinkingBillboard( BaseObject* creator) : Billboard(creator)39 BlinkingBillboard::BlinkingBillboard(Context* context) : Billboard(context) 40 40 { 41 41 RegisterObject(BlinkingBillboard); -
code/trunk/src/orxonox/graphics/BlinkingBillboard.h
r8351 r9667 41 41 { 42 42 public: 43 BlinkingBillboard( BaseObject* creator);43 BlinkingBillboard(Context* context); 44 44 virtual ~BlinkingBillboard(); 45 45 -
code/trunk/src/orxonox/graphics/Camera.cc
r8706 r9667 37 37 #include "util/StringUtils.h" 38 38 #include "core/CoreIncludes.h" 39 #include "core/ ConfigValueIncludes.h"39 #include "core/config/ConfigValueIncludes.h" 40 40 #include "core/GameMode.h" 41 41 #include "core/GUIManager.h" … … 46 46 namespace orxonox 47 47 { 48 CreateFactory(Camera);49 50 Camera::Camera( BaseObject* creator) : StaticEntity(creator)48 RegisterClass(Camera); 49 50 Camera::Camera(Context* context) : StaticEntity(context) 51 51 { 52 52 RegisterObject(Camera); -
code/trunk/src/orxonox/graphics/Camera.h
r8706 r9667 46 46 47 47 public: 48 Camera( BaseObject* creator);48 Camera(Context* context); 49 49 virtual ~Camera(); 50 50 -
code/trunk/src/orxonox/graphics/FadingBillboard.cc
r5929 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(FadingBillboard);36 RegisterClass(FadingBillboard); 37 37 38 FadingBillboard::FadingBillboard( BaseObject* creator) : Billboard(creator)38 FadingBillboard::FadingBillboard(Context* context) : Billboard(context) 39 39 { 40 40 RegisterObject(FadingBillboard); -
code/trunk/src/orxonox/graphics/FadingBillboard.h
r7163 r9667 42 42 { 43 43 public: 44 FadingBillboard( BaseObject* creator);44 FadingBillboard(Context* context); 45 45 virtual ~FadingBillboard(); 46 46 -
code/trunk/src/orxonox/graphics/GlobalShader.cc
r8079 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(GlobalShader);38 RegisterClass(GlobalShader); 39 39 40 GlobalShader::GlobalShader( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)40 GlobalShader::GlobalShader(Context* context) : BaseObject(context), Synchronisable(context) 41 41 { 42 42 RegisterObject(GlobalShader); -
code/trunk/src/orxonox/graphics/GlobalShader.h
r8079 r9667 41 41 { 42 42 public: 43 GlobalShader( BaseObject* creator);43 GlobalShader(Context* context); 44 44 virtual ~GlobalShader(); 45 45 -
code/trunk/src/orxonox/graphics/Light.cc
r5781 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(Light);44 RegisterClass(Light); 45 45 46 46 // Be sure we don't do bad conversions … … 49 49 BOOST_STATIC_ASSERT((int)Ogre::Light::LT_SPOTLIGHT == (int)Light::Spotlight); 50 50 51 Light::Light( BaseObject* creator) : StaticEntity(creator)51 Light::Light(Context* context) : StaticEntity(context) 52 52 { 53 53 RegisterObject(Light); -
code/trunk/src/orxonox/graphics/Light.h
r7401 r9667 53 53 54 54 public: 55 Light( BaseObject* creator);55 Light(Context* context); 56 56 virtual ~Light(); 57 57 -
code/trunk/src/orxonox/graphics/MeshLodInformation.cc
r7183 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(MeshLodInformation);40 RegisterClass(MeshLodInformation); 41 41 42 MeshLodInformation::MeshLodInformation( BaseObject* creator)43 : BaseObject(c reator), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15f)42 MeshLodInformation::MeshLodInformation(Context* context) 43 : BaseObject(context), lodLevel_(5), bEnabled_(true), numLevels_(10), reductionRate_(0.15f) 44 44 { 45 45 RegisterObject(MeshLodInformation); -
code/trunk/src/orxonox/graphics/MeshLodInformation.h
r7163 r9667 41 41 { 42 42 public: 43 MeshLodInformation( BaseObject* creator);43 MeshLodInformation(Context* context); 44 44 virtual ~MeshLodInformation(); 45 45 -
code/trunk/src/orxonox/graphics/Model.cc
r8858 r9667 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/GameMode.h" 36 36 #include "core/XMLPort.h" … … 41 41 namespace orxonox 42 42 { 43 CreateFactory(Model);44 45 Model::Model( BaseObject* creator) :46 StaticEntity(c reator), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15f)43 RegisterClass(Model); 44 45 Model::Model(Context* context) : 46 StaticEntity(context), bCastShadows_(true), lodLevel_(5), bLodEnabled_(true), numLodLevels_(10), lodReductionRate_(.15f) 47 47 { 48 48 RegisterObject(Model); -
code/trunk/src/orxonox/graphics/Model.h
r7166 r9667 41 41 { 42 42 public: 43 Model( BaseObject* creator);43 Model(Context* context); 44 44 virtual ~Model(); 45 45 -
code/trunk/src/orxonox/graphics/ParticleEmitter.cc
r9550 r9667 43 43 namespace orxonox 44 44 { 45 CreateFactory(ParticleEmitter);45 RegisterClass(ParticleEmitter); 46 46 47 ParticleEmitter::ParticleEmitter( BaseObject* creator) : StaticEntity(creator)47 ParticleEmitter::ParticleEmitter(Context* context) : StaticEntity(context) 48 48 { 49 49 RegisterObject(ParticleEmitter); … … 63 63 { 64 64 this->detachOgreObject(this->particles_->getParticleSystem()); 65 this->particles_->destroy();65 delete this->particles_; 66 66 } 67 67 } … … 101 101 if (this->particles_) 102 102 { 103 this->particles_->destroy();103 delete this->particles_; 104 104 this->particles_ = 0; 105 105 } -
code/trunk/src/orxonox/graphics/ParticleEmitter.h
r7904 r9667 40 40 { 41 41 public: 42 ParticleEmitter( BaseObject* creator);42 ParticleEmitter(Context* context); 43 43 virtual ~ParticleEmitter(); 44 44 -
code/trunk/src/orxonox/graphics/ParticleSpawner.cc
r7284 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(ParticleSpawner);39 RegisterClass(ParticleSpawner); 40 40 41 ParticleSpawner::ParticleSpawner( BaseObject* creator) : ParticleEmitter(creator)41 ParticleSpawner::ParticleSpawner(Context* context) : ParticleEmitter(context) 42 42 { 43 43 RegisterObject(ParticleSpawner); -
code/trunk/src/orxonox/graphics/ParticleSpawner.h
r5929 r9667 40 40 { 41 41 public: 42 ParticleSpawner( BaseObject* creator);42 ParticleSpawner(Context* context); 43 43 virtual ~ParticleSpawner(); 44 44 -
code/trunk/src/orxonox/infos/Bot.cc
r7801 r9667 32 32 #include "core/GameMode.h" 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "gametypes/Gametype.h" 36 36 #include "controllers/AIController.h" … … 38 38 namespace orxonox 39 39 { 40 CreateFactory(Bot);40 RegisterClass(Bot); 41 41 42 Bot::Bot( BaseObject* creator) : PlayerInfo(creator)42 Bot::Bot(Context* context) : PlayerInfo(context) 43 43 { 44 44 RegisterObject(Bot); -
code/trunk/src/orxonox/infos/Bot.h
r5781 r9667 40 40 { 41 41 public: 42 Bot( BaseObject* creator);42 Bot(Context* context); 43 43 virtual ~Bot(); 44 44 -
code/trunk/src/orxonox/infos/GametypeInfo.cc
r9348 r9667 48 48 namespace orxonox 49 49 { 50 CreateUnloadableFactory(GametypeInfo);50 RegisterUnloadableClass(GametypeInfo); 51 51 52 52 registerMemberNetworkFunction(GametypeInfo, dispatchAnnounceMessage); … … 65 65 Registers and initializes the object. 66 66 */ 67 GametypeInfo::GametypeInfo( BaseObject* creator) : Info(creator)67 GametypeInfo::GametypeInfo(Context* context) : Info(context) 68 68 { 69 69 RegisterObject(GametypeInfo); -
code/trunk/src/orxonox/infos/GametypeInfo.h
r9348 r9667 58 58 59 59 public: 60 GametypeInfo( BaseObject* creator);60 GametypeInfo(Context* context); 61 61 virtual ~GametypeInfo(); 62 62 -
code/trunk/src/orxonox/infos/HumanPlayer.cc
r8327 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "core/GameMode.h" 34 34 // #include "network/ClientInformation.h" … … 41 41 namespace orxonox 42 42 { 43 CreateUnloadableFactory(HumanPlayer);44 45 HumanPlayer::HumanPlayer( BaseObject* creator) : PlayerInfo(creator)43 RegisterUnloadableClass(HumanPlayer); 44 45 HumanPlayer::HumanPlayer(Context* context) : PlayerInfo(context) 46 46 { 47 47 RegisterObject(HumanPlayer); … … 183 183 if (this->isLocalPlayer() && !this->humanHudTemplate_.empty() && GameMode::showsGraphics()) 184 184 { 185 this->humanHud_ = new OverlayGroup(this );185 this->humanHud_ = new OverlayGroup(this->getContext()); 186 186 this->humanHud_->addTemplate(this->humanHudTemplate_); 187 187 this->humanHud_->setOwner(this); … … 199 199 if (this->isLocalPlayer() && !this->gametypeHudTemplate_.empty()) 200 200 { 201 this->gametypeHud_ = new OverlayGroup(this );201 this->gametypeHud_ = new OverlayGroup(this->getContext()); 202 202 this->gametypeHud_->addTemplate(this->gametypeHudTemplate_); 203 203 this->gametypeHud_->setOwner(this); -
code/trunk/src/orxonox/infos/HumanPlayer.h
r7163 r9667 40 40 { 41 41 public: 42 HumanPlayer( BaseObject* creator);42 HumanPlayer(Context* context); 43 43 virtual ~HumanPlayer(); 44 44 -
code/trunk/src/orxonox/infos/Info.cc
r5781 r9667 32 32 namespace orxonox 33 33 { 34 Info::Info(BaseObject* creator) : BaseObject(creator), Synchronisable(creator) 34 RegisterClass(Info); 35 36 Info::Info(Context* context) : BaseObject(context), Synchronisable(context) 35 37 { 36 38 RegisterObject(Info); -
code/trunk/src/orxonox/infos/Info.h
r5781 r9667 40 40 { 41 41 public: 42 Info( BaseObject* creator);42 Info(Context* context); 43 43 virtual ~Info() {} 44 44 }; -
code/trunk/src/orxonox/infos/PlayerInfo.cc
r9348 r9667 40 40 namespace orxonox 41 41 { 42 PlayerInfo::PlayerInfo(BaseObject* creator) : Info(creator) 42 RegisterAbstractClass(PlayerInfo).inheritsFrom(Class(Info)); 43 44 PlayerInfo::PlayerInfo(Context* context) : Info(context) 43 45 { 44 46 RegisterObject(PlayerInfo); … … 136 138 this->controller_ = 0; 137 139 } 138 this->controller_ = this->defaultController_.fabricate(this );140 this->controller_ = this->defaultController_.fabricate(this->getContext()); 139 141 assert(this->controller_); 140 142 this->controller_->setPlayer(this); -
code/trunk/src/orxonox/infos/PlayerInfo.h
r8706 r9667 33 33 34 34 #include "Info.h" 35 #include "core/ SubclassIdentifier.h"35 #include "core/class/SubclassIdentifier.h" 36 36 37 37 namespace orxonox // tolua_export … … 41 41 { // tolua_export 42 42 public: 43 PlayerInfo( BaseObject* creator);43 PlayerInfo(Context* context); 44 44 virtual ~PlayerInfo(); 45 45 -
code/trunk/src/orxonox/interfaces/GametypeMessageListener.h
r7163 r9667 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "core/ OrxonoxClass.h"33 #include "core/class/OrxonoxInterface.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _OrxonoxExport GametypeMessageListener : virtual public Orxonox Class37 class _OrxonoxExport GametypeMessageListener : virtual public OrxonoxInterface 38 38 { 39 39 public: -
code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc
r8706 r9667 50 50 // GametypeMessageListener 51 51 //---------------------------- 52 RegisterAbstractClass(GametypeMessageListener).inheritsFrom(Class(OrxonoxInterface)); 53 52 54 GametypeMessageListener::GametypeMessageListener() 53 55 { 54 Register RootObject(GametypeMessageListener);56 RegisterObject(GametypeMessageListener); 55 57 } 56 58 … … 58 60 // PlayerTrigger 59 61 //---------------------------- 62 RegisterAbstractClass(PlayerTrigger).inheritsFrom(Class(OrxonoxInterface)); 63 60 64 PlayerTrigger::PlayerTrigger() 61 65 { 62 Register RootObject(PlayerTrigger);66 RegisterObject(PlayerTrigger); 63 67 64 68 this->isForPlayer_ = false; … … 76 80 // RadarListener 77 81 //---------------------------- 82 RegisterAbstractClass(RadarListener).inheritsFrom(Class(OrxonoxInterface)); 83 78 84 RadarListener::RadarListener() 79 85 { 80 Register RootObject(RadarListener);86 RegisterObject(RadarListener); 81 87 } 82 88 … … 84 90 // TeamColourable 85 91 //---------------------------- 92 RegisterAbstractClass(TeamColourable).inheritsFrom(Class(OrxonoxInterface)); 93 86 94 TeamColourable::TeamColourable() 87 95 { 88 Register RootObject(TeamColourable);96 RegisterObject(TeamColourable); 89 97 } 90 98 … … 92 100 // Rewardable 93 101 //---------------------------- 102 RegisterAbstractClass(Rewardable).inheritsFrom(Class(OrxonoxInterface)); 103 94 104 Rewardable::Rewardable() 95 105 { 96 Register RootObject(Rewardable);106 RegisterObject(Rewardable); 97 107 } 98 108 } -
code/trunk/src/orxonox/interfaces/NotificationListener.cc
r8706 r9667 53 53 NotificationListener::NotificationListener() 54 54 { 55 Register RootObject(NotificationListener);55 RegisterObject(NotificationListener); 56 56 } 57 57 -
code/trunk/src/orxonox/interfaces/NotificationListener.h
r8706 r9667 44 44 #include "util/StringUtils.h" 45 45 46 #include "core/ OrxonoxClass.h"46 #include "core/class/OrxonoxInterface.h" 47 47 48 48 namespace orxonox … … 90 90 @todo Consistent terminology between message, notification and command. 91 91 */ 92 class _OrxonoxExport NotificationListener : virtual public Orxonox Class92 class _OrxonoxExport NotificationListener : virtual public OrxonoxInterface 93 93 { 94 94 public: -
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r8858 r9667 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "core/ Identifier.h"37 #include "core/class/Identifier.h" 38 38 39 39 #include "Pickupable.h" 40 40 41 namespace orxonox { 41 namespace orxonox 42 { 43 RegisterAbstractClass(PickupCarrier).inheritsFrom(Class(OrxonoxInterface)); 42 44 43 45 /** … … 47 49 PickupCarrier::PickupCarrier() 48 50 { 49 Register RootObject(PickupCarrier);51 RegisterObject(PickupCarrier); 50 52 } 51 53 -
code/trunk/src/orxonox/interfaces/PickupCarrier.h
r7552 r9667 41 41 #include <vector> 42 42 43 #include "core/ OrxonoxClass.h"43 #include "core/class/OrxonoxInterface.h" 44 44 45 45 namespace orxonox … … 66 66 @ingroup Pickup 67 67 */ 68 class _OrxonoxExport PickupCarrier : virtual public Orxonox Class68 class _OrxonoxExport PickupCarrier : virtual public OrxonoxInterface 69 69 { 70 70 // So that the different Pickupables have full access to their PickupCarrier. -
code/trunk/src/orxonox/interfaces/PickupListener.cc
r8351 r9667 47 47 PickupListener::PickupListener() 48 48 { 49 Register RootObject(PickupListener);49 RegisterObject(PickupListener); 50 50 } 51 51 -
code/trunk/src/orxonox/interfaces/PickupListener.h
r8351 r9667 39 39 #include "Pickupable.h" 40 40 41 #include "core/ OrxonoxClass.h"41 #include "core/class/OrxonoxInterface.h" 42 42 43 43 namespace orxonox … … 55 55 @ingroup Pickup 56 56 */ 57 class _OrxonoxExport PickupListener : virtual public Orxonox Class57 class _OrxonoxExport PickupListener : virtual public OrxonoxInterface 58 58 { 59 59 public: -
code/trunk/src/orxonox/interfaces/Pickupable.cc
r9348 r9667 34 34 #include "Pickupable.h" 35 35 36 #include "core/ Identifier.h"36 #include "core/class/Identifier.h" 37 37 #include "core/CoreIncludes.h" 38 38 #include "util/Convert.h" … … 46 46 namespace orxonox 47 47 { 48 RegisterAbstractClass(Pickupable).inheritsFrom(Class(OrxonoxInterface)).inheritsFrom(Class(Rewardable)); 48 49 49 50 /** … … 53 54 Pickupable::Pickupable() : used_(false), pickedUp_(false) 54 55 { 55 Register RootObject(Pickupable);56 RegisterObject(Pickupable); 56 57 57 58 this->carrier_ = NULL; … … 71 72 /** 72 73 @brief 73 A method that is called by OrxonoxClass::destroy() before the object is actually destroyed.74 A method that is called by Destroyable::destroy() before the object is actually destroyed. 74 75 */ 75 76 void Pickupable::preDestroy(void) … … 98 99 { 99 100 if(!this->isBeingDestroyed()) 100 this-> OrxonoxClass::destroy();101 this->Destroyable::destroy(); 101 102 else 102 103 orxout(internal_warning, context::pickups) << this->getIdentifier()->getName() << " may be unsafe. " << endl; -
code/trunk/src/orxonox/interfaces/Pickupable.h
r9348 r9667 39 39 40 40 #include <list> 41 #include "core/ Super.h"41 #include "core/class/Super.h" 42 42 43 #include "core/ OrxonoxClass.h"43 #include "core/class/OrxonoxInterface.h" 44 44 #include "Rewardable.h" 45 45 … … 58 58 @ingroup Pickup 59 59 */ 60 class _OrxonoxExport Pickupable : virtual public Orxonox Class, public Rewardable60 class _OrxonoxExport Pickupable : virtual public OrxonoxInterface, public Rewardable 61 61 { 62 62 friend class PickupCarrier; … … 144 144 145 145 protected: 146 virtual void preDestroy(void); //!< A method that is called by OrxonoxClass::destroy() before the object is actually destroyed.146 virtual void preDestroy(void); //!< A method that is called by Destroyable::destroy() before the object is actually destroyed. 147 147 virtual void destroyPickup(void); //!< Destroys a Pickupable. 148 148 virtual void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. -
code/trunk/src/orxonox/interfaces/PlayerTrigger.h
r8706 r9667 38 38 #include "OrxonoxPrereqs.h" 39 39 40 #include "core/ OrxonoxClass.h"41 #include "core/ WeakPtr.h"40 #include "core/class/OrxonoxInterface.h" 41 #include "core/object/WeakPtr.h" 42 42 43 43 namespace orxonox … … 52 52 @ingroup Triggers 53 53 */ 54 class _OrxonoxExport PlayerTrigger : virtual public Orxonox Class54 class _OrxonoxExport PlayerTrigger : virtual public OrxonoxInterface 55 55 { 56 56 public: -
code/trunk/src/orxonox/interfaces/RadarListener.h
r7163 r9667 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "core/ OrxonoxClass.h"33 #include "core/class/OrxonoxInterface.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _OrxonoxExport RadarListener : virtual public Orxonox Class37 class _OrxonoxExport RadarListener : virtual public OrxonoxInterface 38 38 { 39 39 public: -
code/trunk/src/orxonox/interfaces/RadarViewable.cc
r9526 r9667 38 38 namespace orxonox 39 39 { 40 RegisterAbstractClass(RadarViewable).inheritsFrom(Class(OrxonoxInterface)); 41 40 42 /** 41 43 @brief Constructor. … … 45 47 , bVisibility_(true) 46 48 , bInitialized_(false) 47 , creator_(creator)48 49 , wePtr_(wePtr) 49 50 , radarObjectCamouflage_(0.0f) … … 52 53 , scale_(1.0f) 53 54 { 54 Register RootObject(RadarViewable);55 RegisterObject(RadarViewable); 55 56 56 57 this->uniqueId_=getUniqueNumberString(); 57 58 if( GameMode::showsGraphics() ) 58 59 { 59 this->radar_ = this->creator_->getScene()->getRadar();60 this->radar_ = creator->getScene()->getRadar(); 60 61 this->radar_->addRadarObject(this); 61 62 } -
code/trunk/src/orxonox/interfaces/RadarViewable.h
r9526 r9667 36 36 37 37 #include "util/Math.h" 38 #include "core/ OrxonoxClass.h"39 #include "core/ SmartPtr.h"38 #include "core/class/OrxonoxInterface.h" 39 #include "core/object/SmartPtr.h" 40 40 41 41 namespace orxonox … … 46 46 @brief Interface for receiving window events. 47 47 */ 48 class _OrxonoxExport RadarViewable : virtual public Orxonox Class48 class _OrxonoxExport RadarViewable : virtual public OrxonoxInterface 49 49 { 50 50 public: … … 153 153 //Map 154 154 std::string uniqueId_; 155 BaseObject* creator_;156 155 157 156 -
code/trunk/src/orxonox/interfaces/Rewardable.h
r7163 r9667 36 36 37 37 #include "OrxonoxPrereqs.h" 38 #include "core/ OrxonoxClass.h"38 #include "core/class/OrxonoxInterface.h" 39 39 40 40 namespace orxonox … … 48 48 Damian 'Mozork' Frick 49 49 */ 50 class _OrxonoxExport Rewardable : virtual public Orxonox Class50 class _OrxonoxExport Rewardable : virtual public OrxonoxInterface 51 51 { 52 52 public: -
code/trunk/src/orxonox/interfaces/TeamColourable.h
r5781 r9667 33 33 34 34 #include "util/UtilPrereqs.h" 35 #include "core/ OrxonoxClass.h"35 #include "core/class/OrxonoxInterface.h" 36 36 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport TeamColourable : virtual public Orxonox Class39 class _OrxonoxExport TeamColourable : virtual public OrxonoxInterface 40 40 { 41 41 public: -
code/trunk/src/orxonox/items/Engine.cc
r8858 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "core/Template.h" 34 34 #include "core/XMLPort.h" … … 40 40 namespace orxonox 41 41 { 42 CreateFactory(Engine);42 RegisterClass(Engine); 43 43 44 44 /** … … 46 46 Constructor. Registers and initializes the object. 47 47 */ 48 Engine::Engine( BaseObject* creator) : Item(creator)48 Engine::Engine(Context* context) : Item(context) 49 49 { 50 50 RegisterObject(Engine); -
code/trunk/src/orxonox/items/Engine.h
r8727 r9667 56 56 { 57 57 public: 58 Engine( BaseObject* creator);58 Engine(Context* context); 59 59 virtual ~Engine(); 60 60 -
code/trunk/src/orxonox/items/Item.cc
r5781 r9667 32 32 namespace orxonox 33 33 { 34 Item::Item(BaseObject* creator) : BaseObject(creator), Synchronisable(creator) 34 RegisterClass(Item); 35 36 Item::Item(Context* context) : BaseObject(context), Synchronisable(context) 35 37 { 36 38 RegisterObject(Item); -
code/trunk/src/orxonox/items/Item.h
r5781 r9667 40 40 { 41 41 public: 42 Item( BaseObject* creator);42 Item(Context* context); 43 43 virtual ~Item() {} 44 44 }; -
code/trunk/src/orxonox/items/MultiStateEngine.cc
r8727 r9667 49 49 static const float MAX_VELOCITY_BOOST = 221; 50 50 51 CreateFactory(MultiStateEngine);52 53 MultiStateEngine::MultiStateEngine( BaseObject* creator) : Engine(creator)51 RegisterClass(MultiStateEngine); 52 53 MultiStateEngine::MultiStateEngine(Context* context) : Engine(context) 54 54 { 55 55 RegisterObject(MultiStateEngine); … … 57 57 if (GameMode::isMaster()) 58 58 { 59 this->defEngineSndNormal_ = new WorldSound(this );60 this->defEngineSndBoost_ = new WorldSound(this );59 this->defEngineSndNormal_ = new WorldSound(this->getContext()); 60 this->defEngineSndBoost_ = new WorldSound(this->getContext()); 61 61 this->defEngineSndNormal_->setLooping(true); 62 62 this->defEngineSndBoost_->setLooping(true); -
code/trunk/src/orxonox/items/MultiStateEngine.h
r8727 r9667 49 49 }; 50 50 51 MultiStateEngine( BaseObject* creator);51 MultiStateEngine(Context* context); 52 52 virtual ~MultiStateEngine(); 53 53 -
code/trunk/src/orxonox/overlays/GUISheet.cc
r7401 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(GUISheet);38 RegisterClass(GUISheet); 39 39 40 GUISheet::GUISheet( BaseObject* creator)41 : BaseObject(c reator)40 GUISheet::GUISheet(Context* context) 41 : BaseObject(context) 42 42 , bShowOnLoad_(false) 43 43 , bHidePrevious_(false) -
code/trunk/src/orxonox/overlays/GUISheet.h
r7401 r9667 41 41 { 42 42 public: 43 GUISheet( BaseObject* creator);43 GUISheet(Context* context); 44 44 ~GUISheet(); 45 45 -
code/trunk/src/orxonox/overlays/InGameConsole.cc
r9550 r9667 49 49 #include "util/output/OutputManager.h" 50 50 #include "core/CoreIncludes.h" 51 #include "core/ ConfigValueIncludes.h"51 #include "core/config/ConfigValueIncludes.h" 52 52 #include "core/command/ConsoleCommand.h" 53 53 #include "core/GUIManager.h" … … 110 110 111 111 // destroy the underlaying shell 112 this->shell_->destroy();112 delete this->shell_; 113 113 114 114 Ogre::OverlayManager* ovMan = Ogre::OverlayManager::getSingletonPtr(); -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.cc
r8858 r9667 63 63 SetConsoleCommand("OrxonoxOverlay", "rotateOverlay", &OrxonoxOverlay::rotateOverlay); 64 64 65 OrxonoxOverlay::OrxonoxOverlay(BaseObject* creator) 66 : BaseObject(creator) 65 RegisterClass(OrxonoxOverlay); 66 67 OrxonoxOverlay::OrxonoxOverlay(Context* context) 68 : BaseObject(context) 67 69 { 68 70 RegisterObject(OrxonoxOverlay); -
code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
r8706 r9667 42 42 #include "util/OgreForwardRefs.h" 43 43 #include "core/BaseObject.h" 44 #include "core/Super.h"45 44 #include "core/WindowEventListener.h" 45 #include "core/class/Super.h" 46 46 47 47 namespace orxonox … … 87 87 88 88 public: 89 OrxonoxOverlay( BaseObject* creator);89 OrxonoxOverlay(Context* context); 90 90 virtual ~OrxonoxOverlay(); 91 91 -
code/trunk/src/orxonox/overlays/OverlayGroup.cc
r8309 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(OverlayGroup);43 RegisterClass(OverlayGroup); 44 44 45 45 SetConsoleCommand("OverlayGroup", "toggleVisibility", &OverlayGroup::toggleVisibility); … … 48 48 SetConsoleCommand("OverlayGroup", "scrollGroup", &OverlayGroup::scrollGroup); 49 49 50 OverlayGroup::OverlayGroup( BaseObject* creator)51 : BaseObject(c reator)50 OverlayGroup::OverlayGroup(Context* context) 51 : BaseObject(context) 52 52 { 53 53 RegisterObject(OverlayGroup); … … 148 148 for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it) 149 149 (*it)->changedVisibility(); //inform all Child Overlays that our visibility has changed 150 } 151 152 //! Changes the gametype of all elements 153 void OverlayGroup::changedGametype() 154 { 155 SUPER( OverlayGroup, changedGametype ); 156 157 for (std::set< SmartPtr<OrxonoxOverlay> >::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it) 158 (*it)->setGametype(this->getGametype()); 150 159 } 151 160 -
code/trunk/src/orxonox/overlays/OverlayGroup.h
r8309 r9667 54 54 { 55 55 public: 56 OverlayGroup( BaseObject* creator);56 OverlayGroup(Context* context); 57 57 //! Empty destructor. 58 58 ~OverlayGroup(); … … 68 68 { return this->hudElements_; } 69 69 70 void changedVisibility(); 70 virtual void changedVisibility(); 71 virtual void changedGametype(); 71 72 72 73 void setOwner(BaseObject* owner); -
code/trunk/src/orxonox/sound/BaseSound.cc
r8858 r9667 43 43 namespace orxonox 44 44 { 45 RegisterAbstractClass(BaseSound).inheritsFrom(Class(Listable)); 46 45 47 BaseSound::BaseSound() 46 48 : bPooling_(false) … … 50 52 , pitch_ (1.0) 51 53 { 52 Register RootObject(BaseSound);54 RegisterObject(BaseSound); 53 55 54 56 // Initialise audioSource_ to a value that is not a source -
code/trunk/src/orxonox/sound/BaseSound.h
r7856 r9667 35 35 #include <boost/shared_ptr.hpp> 36 36 #include <OgreDataStream.h> 37 #include "core/ OrxonoxClass.h"37 #include "core/object/Listable.h" 38 38 39 39 namespace orxonox … … 43 43 * It serves as main interface to the OpenAL library. 44 44 */ 45 class _OrxonoxExport BaseSound : virtual public OrxonoxClass45 class _OrxonoxExport BaseSound : virtual public Listable 46 46 { 47 47 public: -
code/trunk/src/orxonox/sound/SoundManager.cc
r8903 r9667 39 39 #include "util/Clock.h" 40 40 #include "util/ScopedSingletonManager.h" 41 #include "core/ ConfigValueIncludes.h"41 #include "core/config/ConfigValueIncludes.h" 42 42 #include "core/CoreIncludes.h" 43 43 #include "core/GameMode.h" … … 69 69 : effectsPoolSize_(0) 70 70 { 71 Register RootObject(SoundManager);71 RegisterObject(SoundManager); 72 72 73 73 orxout(user_status) << "Loading sound" << endl; -
code/trunk/src/orxonox/sound/SoundManager.h
r8351 r9667 39 39 40 40 #include "util/Singleton.h" 41 #include "core/ OrxonoxClass.h"42 #include "core/ SmartPtr.h"41 #include "core/config/Configurable.h" 42 #include "core/object/SmartPtr.h" 43 43 44 44 // tolua_begin … … 59 59 class _OrxonoxExport SoundManager 60 60 // tolua_end 61 : public Singleton<SoundManager>, public OrxonoxClass61 : public Singleton<SoundManager>, public Configurable 62 62 { // tolua_export 63 63 friend class Singleton<SoundManager>; -
code/trunk/src/orxonox/sound/WorldAmbientSound.cc
r7854 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(WorldAmbientSound);38 RegisterClass(WorldAmbientSound); 39 39 40 WorldAmbientSound::WorldAmbientSound( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)40 WorldAmbientSound::WorldAmbientSound(Context* context) : BaseObject(context), Synchronisable(context) 41 41 { 42 42 RegisterObject(WorldAmbientSound); -
code/trunk/src/orxonox/sound/WorldAmbientSound.h
r7854 r9667 44 44 { 45 45 public: 46 WorldAmbientSound( BaseObject* creator);46 WorldAmbientSound(Context* context); 47 47 virtual ~WorldAmbientSound(); 48 48 -
code/trunk/src/orxonox/sound/WorldSound.cc
r8858 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(WorldSound);43 RegisterClass(WorldSound); 44 44 45 WorldSound::WorldSound( BaseObject* creator)46 : StaticEntity(c reator)45 WorldSound::WorldSound(Context* context) 46 : StaticEntity(context) 47 47 { 48 48 RegisterObject(WorldSound); -
code/trunk/src/orxonox/sound/WorldSound.h
r7854 r9667 45 45 { 46 46 public: 47 WorldSound( BaseObject* creator);47 WorldSound(Context* context); 48 48 49 49 void XMLPort(Element& xmlelement, XMLPort::Mode mode); -
code/trunk/src/orxonox/weaponsystem/DefaultWeaponmodeLink.cc
r5781 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(DefaultWeaponmodeLink);37 RegisterClass(DefaultWeaponmodeLink); 38 38 39 DefaultWeaponmodeLink::DefaultWeaponmodeLink( BaseObject* creator) : BaseObject(creator)39 DefaultWeaponmodeLink::DefaultWeaponmodeLink(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(DefaultWeaponmodeLink); -
code/trunk/src/orxonox/weaponsystem/DefaultWeaponmodeLink.h
r5781 r9667 39 39 { 40 40 public: 41 DefaultWeaponmodeLink( BaseObject* creator);41 DefaultWeaponmodeLink(Context* context); 42 42 virtual ~DefaultWeaponmodeLink(); 43 43 -
code/trunk/src/orxonox/weaponsystem/Munition.cc
r8729 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(Munition);38 39 Munition::Munition( BaseObject* creator) : BaseObject(creator)37 RegisterClass(Munition); 38 39 Munition::Munition(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(Munition); -
code/trunk/src/orxonox/weaponsystem/Munition.h
r7851 r9667 56 56 57 57 public: 58 Munition( BaseObject* creator);58 Munition(Context* context); 59 59 virtual ~Munition(); 60 60 -
code/trunk/src/orxonox/weaponsystem/Weapon.cc
r5929 r9667 39 39 namespace orxonox 40 40 { 41 CreateFactory(Weapon);41 RegisterClass(Weapon); 42 42 43 Weapon::Weapon( BaseObject* creator) : StaticEntity(creator)43 Weapon::Weapon(Context* context) : StaticEntity(context) 44 44 { 45 45 RegisterObject(Weapon); -
code/trunk/src/orxonox/weaponsystem/Weapon.h
r5929 r9667 42 42 { 43 43 public: 44 Weapon( BaseObject* creator);44 Weapon(Context* context); 45 45 virtual ~Weapon(); 46 46 -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r8858 r9667 45 45 namespace orxonox 46 46 { 47 WeaponMode::WeaponMode(BaseObject* creator) : BaseObject(creator) 47 RegisterAbstractClass(WeaponMode).inheritsFrom(Class(BaseObject)); 48 49 WeaponMode::WeaponMode(Context* context) : BaseObject(context) 48 50 { 49 51 RegisterObject(WeaponMode); … … 75 77 if( GameMode::isMaster() ) 76 78 { 77 this->defSndWpnFire_ = new WorldSound(this );79 this->defSndWpnFire_ = new WorldSound(this->getContext()); 78 80 this->defSndWpnFire_->setLooping(false); 79 81 this->bSoundAttached_ = false; -
code/trunk/src/orxonox/weaponsystem/WeaponMode.h
r8706 r9667 36 36 #include "util/Math.h" 37 37 #include "core/BaseObject.h" 38 #include "core/ SubclassIdentifier.h"38 #include "core/class/SubclassIdentifier.h" 39 39 #include "tools/Timer.h" 40 40 … … 44 44 { 45 45 public: 46 WeaponMode( BaseObject* creator);46 WeaponMode(Context* context); 47 47 virtual ~WeaponMode(); 48 48 -
code/trunk/src/orxonox/weaponsystem/WeaponPack.cc
r6417 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(WeaponPack);40 RegisterClass(WeaponPack); 41 41 42 WeaponPack::WeaponPack( BaseObject* creator) : BaseObject(creator)42 WeaponPack::WeaponPack(Context* context) : BaseObject(context) 43 43 { 44 44 RegisterObject(WeaponPack); -
code/trunk/src/orxonox/weaponsystem/WeaponPack.h
r6417 r9667 41 41 { 42 42 public: 43 WeaponPack( BaseObject* creator);43 WeaponPack(Context* context); 44 44 virtual ~WeaponPack(); 45 45 -
code/trunk/src/orxonox/weaponsystem/WeaponSet.cc
r5781 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(WeaponSet);39 RegisterClass(WeaponSet); 40 40 41 WeaponSet::WeaponSet( BaseObject* creator) : BaseObject(creator)41 WeaponSet::WeaponSet(Context* context) : BaseObject(context) 42 42 { 43 43 RegisterObject(WeaponSet); -
code/trunk/src/orxonox/weaponsystem/WeaponSet.h
r5781 r9667 41 41 { 42 42 public: 43 WeaponSet( BaseObject* creator);43 WeaponSet(Context* context); 44 44 virtual ~WeaponSet(); 45 45 -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.cc
r8706 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(WeaponSlot);39 RegisterClass(WeaponSlot); 40 40 41 WeaponSlot::WeaponSlot( BaseObject* creator) : StaticEntity(creator)41 WeaponSlot::WeaponSlot(Context* context) : StaticEntity(context) 42 42 { 43 43 RegisterObject(WeaponSlot); -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.h
r8891 r9667 57 57 { 58 58 public: 59 WeaponSlot( BaseObject* creator);59 WeaponSlot(Context* context); 60 60 virtual ~WeaponSlot(); 61 61 -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r8729 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ SubclassIdentifier.h"32 #include "core/class/SubclassIdentifier.h" 33 33 #include "worldentities/pawns/Pawn.h" 34 34 … … 46 46 namespace orxonox 47 47 { 48 CreateFactory(WeaponSystem);49 50 WeaponSystem::WeaponSystem( BaseObject* creator) : BaseObject(creator)48 RegisterClass(WeaponSystem); 49 50 WeaponSystem::WeaponSystem(Context* context) : BaseObject(context) 51 51 { 52 52 RegisterObject(WeaponSystem); … … 308 308 else if (identifier->getIdentifier()->isA(Class(Munition))) 309 309 { 310 Munition* munition = identifier->fabricate(this );310 Munition* munition = identifier->fabricate(this->getContext()); 311 311 this->munitions_[identifier->getIdentifier()] = munition; 312 312 return munition; -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.h
r6417 r9667 43 43 { 44 44 public: 45 WeaponSystem( BaseObject* creator);45 WeaponSystem(Context* context); 46 46 virtual ~WeaponSystem(); 47 47 -
code/trunk/src/orxonox/worldentities/BigExplosion.cc
r8858 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(BigExplosion);44 45 BigExplosion::BigExplosion( BaseObject* creator) : StaticEntity(creator)43 RegisterClass(BigExplosion); 44 45 BigExplosion::BigExplosion(Context* context) : StaticEntity(context) 46 46 { 47 47 RegisterObject(BigExplosion); … … 80 80 void BigExplosion::init() 81 81 { 82 this->debrisEntity1_ = new MovableEntity(this );83 this->debrisEntity2_ = new MovableEntity(this );84 this->debrisEntity3_ = new MovableEntity(this );85 this->debrisEntity4_ = new MovableEntity(this );82 this->debrisEntity1_ = new MovableEntity(this->getContext()); 83 this->debrisEntity2_ = new MovableEntity(this->getContext()); 84 this->debrisEntity3_ = new MovableEntity(this->getContext()); 85 this->debrisEntity4_ = new MovableEntity(this->getContext()); 86 86 87 87 this->debrisEntity1_->setSyncMode(0); … … 90 90 this->debrisEntity4_->setSyncMode(0); 91 91 92 this->debris1_ = new Model(this );93 this->debris2_ = new Model(this );94 this->debris3_ = new Model(this );95 this->debris4_ = new Model(this );92 this->debris1_ = new Model(this->getContext()); 93 this->debris2_ = new Model(this->getContext()); 94 this->debris3_ = new Model(this->getContext()); 95 this->debris4_ = new Model(this->getContext()); 96 96 97 97 this->debris1_->setSyncMode(0); … … 100 100 this->debris4_->setSyncMode(0); 101 101 102 this->explosion_ = new StaticEntity(this );102 this->explosion_ = new StaticEntity(this->getContext()); 103 103 this->explosion_->setSyncMode(0); 104 104 … … 148 148 this->debrisEntity4_->attach(debris4_); 149 149 150 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());150 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 151 151 effect->setDestroyAfterLife(true); 152 152 effect->setSource("Orxonox/explosion2b"); … … 154 154 effect->setSyncMode(0); 155 155 156 ParticleSpawner* effect2 = new ParticleSpawner(this->getC reator());156 ParticleSpawner* effect2 = new ParticleSpawner(this->getContext()); 157 157 effect2->setDestroyAfterLife(true); 158 158 effect2->setSource("Orxonox/smoke6"); … … 172 172 for(int i=0;i<10;i++) 173 173 { 174 Model* part1 = new Model(this );175 Model* part2 = new Model(this );176 177 MovableEntity* partEntity1 = new MovableEntity(this );178 MovableEntity* partEntity2 = new MovableEntity(this );174 Model* part1 = new Model(this->getContext()); 175 Model* part2 = new Model(this->getContext()); 176 177 MovableEntity* partEntity1 = new MovableEntity(this->getContext()); 178 MovableEntity* partEntity2 = new MovableEntity(this->getContext()); 179 179 180 180 part1->setSyncMode(0); … … 225 225 { 226 226 this->debris1_->detachOgreObject(this->debrisFire1_->getParticleSystem()); 227 this->debrisFire1_->destroy();227 delete this->debrisFire1_; 228 228 } 229 229 if (this->debrisSmoke1_) 230 230 { 231 231 this->debris1_->detachOgreObject(this->debrisSmoke1_->getParticleSystem()); 232 this->debrisSmoke1_->destroy();232 delete this->debrisSmoke1_; 233 233 } 234 234 … … 236 236 { 237 237 this->debris2_->detachOgreObject(this->debrisFire2_->getParticleSystem()); 238 this->debrisFire2_->destroy();238 delete this->debrisFire2_; 239 239 } 240 240 if (this->debrisSmoke2_) 241 241 { 242 242 this->debris2_->detachOgreObject(this->debrisSmoke2_->getParticleSystem()); 243 this->debrisSmoke2_->destroy();243 delete this->debrisSmoke2_; 244 244 } 245 245 … … 247 247 { 248 248 this->debris3_->detachOgreObject(this->debrisFire3_->getParticleSystem()); 249 this->debrisFire3_->destroy();249 delete this->debrisFire3_; 250 250 } 251 251 if (this->debrisSmoke3_) 252 252 { 253 253 this->debris3_->detachOgreObject(this->debrisSmoke3_->getParticleSystem()); 254 this->debrisSmoke3_->destroy();254 delete this->debrisSmoke3_; 255 255 } 256 256 … … 258 258 { 259 259 this->debris4_->detachOgreObject(this->debrisFire4_->getParticleSystem()); 260 this->debrisFire4_->destroy();260 delete this->debrisFire4_; 261 261 } 262 262 if (this->debrisSmoke4_) 263 263 { 264 264 this->debris4_->detachOgreObject(this->debrisSmoke4_->getParticleSystem()); 265 this->debrisSmoke4_->destroy();265 delete this->debrisSmoke4_; 266 266 } 267 267 } -
code/trunk/src/orxonox/worldentities/BigExplosion.h
r7176 r9667 40 40 { 41 41 public: 42 BigExplosion( BaseObject* creator);42 BigExplosion(Context* context); 43 43 virtual ~BigExplosion(); 44 44 -
code/trunk/src/orxonox/worldentities/CameraPosition.cc
r8706 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(CameraPosition);37 RegisterClass(CameraPosition); 38 38 39 CameraPosition::CameraPosition( BaseObject* creator) : StaticEntity(creator)39 CameraPosition::CameraPosition(Context* context) : StaticEntity(context) 40 40 { 41 41 RegisterObject(CameraPosition); -
code/trunk/src/orxonox/worldentities/CameraPosition.h
r5781 r9667 38 38 { 39 39 public: 40 CameraPosition( BaseObject* creator);40 CameraPosition(Context* context); 41 41 virtual ~CameraPosition(); 42 42 -
code/trunk/src/orxonox/worldentities/ControllableEntity.cc
r9348 r9667 33 33 34 34 #include "core/CoreIncludes.h" 35 #include "core/ ConfigValueIncludes.h"35 #include "core/config/ConfigValueIncludes.h" 36 36 #include "core/GameMode.h" 37 37 #include "core/XMLPort.h" … … 47 47 namespace orxonox 48 48 { 49 CreateFactory(ControllableEntity);49 RegisterClass(ControllableEntity); 50 50 51 51 registerMemberNetworkFunction( ControllableEntity, fire ); 52 52 registerMemberNetworkFunction( ControllableEntity, setTargetInternal ); 53 53 54 ControllableEntity::ControllableEntity( BaseObject* creator) : MobileEntity(creator)54 ControllableEntity::ControllableEntity(Context* context) : MobileEntity(context) 55 55 { 56 56 RegisterObject(ControllableEntity); … … 397 397 if (!this->camera_ && GameMode::showsGraphics()) 398 398 { 399 this->camera_ = new Camera(this );399 this->camera_ = new Camera(this->getContext()); 400 400 this->camera_->requestFocus(); 401 401 if (!this->cameraPositionTemplate_.empty()) … … 423 423 if (!this->hudtemplate_.empty()) 424 424 { 425 this->hud_ = new OverlayGroup(this );425 this->hud_ = new OverlayGroup(this->getContext()); 426 426 this->hud_->addTemplate(this->hudtemplate_); 427 427 this->hud_->setOwner(this); -
code/trunk/src/orxonox/worldentities/ControllableEntity.h
r9348 r9667 44 44 45 45 public: 46 ControllableEntity( BaseObject* creator);46 ControllableEntity(Context* context); 47 47 virtual ~ControllableEntity(); 48 48 -
code/trunk/src/orxonox/worldentities/Drone.cc
r7163 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(Drone);36 RegisterClass(Drone); 37 37 /** 38 38 @brief 39 39 Constructor. Registers the object and initializes some default values. 40 40 */ 41 Drone::Drone( BaseObject* creator) : Pawn(creator)41 Drone::Drone(Context* context) : Pawn(context) 42 42 { 43 43 RegisterObject(Drone); … … 50 50 this->setCollisionType(WorldEntity::Dynamic); 51 51 52 myController_ = new DroneController( static_cast<BaseObject*>(this)); //!< Creates a new controller and passes our this pointer to it as creator.52 myController_ = new DroneController(this->getContext()); //!< Creates a new controller and passes our this pointer to it as creator. 53 53 myController_->setDrone(this); 54 54 -
code/trunk/src/orxonox/worldentities/Drone.h
r7163 r9667 47 47 { 48 48 public: 49 Drone( BaseObject* creator);49 Drone(Context* context); 50 50 virtual ~Drone(); 51 51 -
code/trunk/src/orxonox/worldentities/EffectContainer.cc
r6417 r9667 40 40 namespace orxonox 41 41 { 42 CreateFactory(EffectContainer);42 RegisterClass(EffectContainer); 43 43 44 EffectContainer::EffectContainer( BaseObject* creator)45 : BaseObject(c reator)44 EffectContainer::EffectContainer(Context* context) 45 : BaseObject(context) 46 46 , lua_(NULL) 47 47 { -
code/trunk/src/orxonox/worldentities/EffectContainer.h
r6417 r9667 40 40 { 41 41 public: 42 EffectContainer( BaseObject* creator);42 EffectContainer(Context* context); 43 43 virtual ~EffectContainer(); 44 44 -
code/trunk/src/orxonox/worldentities/ExplosionChunk.cc
r8858 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(ExplosionChunk);40 RegisterClass(ExplosionChunk); 41 41 42 ExplosionChunk::ExplosionChunk( BaseObject* creator) : MovableEntity(creator)42 ExplosionChunk::ExplosionChunk(Context* context) : MovableEntity(context) 43 43 { 44 44 RegisterObject(ExplosionChunk); … … 92 92 { 93 93 this->detachOgreObject(this->fire_->getParticleSystem()); 94 this->fire_->destroy();94 delete this->fire_; 95 95 } 96 96 if (this->smoke_) 97 97 { 98 98 this->detachOgreObject(this->smoke_->getParticleSystem()); 99 this->smoke_->destroy();99 delete this->smoke_; 100 100 } 101 101 } -
code/trunk/src/orxonox/worldentities/ExplosionChunk.h
r7163 r9667 40 40 { 41 41 public: 42 ExplosionChunk( BaseObject* creator);42 ExplosionChunk(Context* context); 43 43 virtual ~ExplosionChunk(); 44 44 -
code/trunk/src/orxonox/worldentities/MobileEntity.cc
r8858 r9667 39 39 namespace orxonox 40 40 { 41 MobileEntity::MobileEntity(BaseObject* creator) : WorldEntity(creator) 41 RegisterClass(MobileEntity); 42 43 MobileEntity::MobileEntity(Context* context) : WorldEntity(context) 42 44 { 43 45 RegisterObject(MobileEntity); -
code/trunk/src/orxonox/worldentities/MobileEntity.h
r8727 r9667 41 41 { 42 42 public: 43 MobileEntity( BaseObject* creator);43 MobileEntity(Context* context); 44 44 virtual ~MobileEntity(); 45 45 -
code/trunk/src/orxonox/worldentities/MovableEntity.cc
r7284 r9667 41 41 static const float CONTINUOUS_SYNCHRONIZATION_TIME = 10.0f; 42 42 43 CreateFactory(MovableEntity);43 RegisterClass(MovableEntity); 44 44 45 MovableEntity::MovableEntity( BaseObject* creator) : MobileEntity(creator)45 MovableEntity::MovableEntity(Context* context) : MobileEntity(context) 46 46 { 47 47 RegisterObject(MovableEntity); -
code/trunk/src/orxonox/worldentities/MovableEntity.h
r7163 r9667 43 43 { 44 44 public: 45 MovableEntity( BaseObject* creator);45 MovableEntity(Context* context); 46 46 virtual ~MovableEntity(); 47 47 -
code/trunk/src/orxonox/worldentities/SpawnPoint.cc
r8858 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(SpawnPoint);39 RegisterClass(SpawnPoint); 40 40 41 SpawnPoint::SpawnPoint( BaseObject* creator) : StaticEntity(creator)41 SpawnPoint::SpawnPoint(Context* context) : StaticEntity(context) 42 42 { 43 43 RegisterObject(SpawnPoint); … … 81 81 Pawn* SpawnPoint::spawn() 82 82 { 83 Pawn* entity = this->spawnclass_.fabricate(this );83 Pawn* entity = this->spawnclass_.fabricate(this->getContext()); 84 84 if (entity) 85 85 { -
code/trunk/src/orxonox/worldentities/SpawnPoint.h
r5929 r9667 33 33 34 34 #include <string> 35 #include "core/ SubclassIdentifier.h"35 #include "core/class/SubclassIdentifier.h" 36 36 #include "worldentities/StaticEntity.h" 37 37 … … 41 41 { 42 42 public: 43 SpawnPoint( BaseObject* creator);43 SpawnPoint(Context* context); 44 44 virtual ~SpawnPoint() {} 45 45 -
code/trunk/src/orxonox/worldentities/StaticEntity.cc
r8858 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(StaticEntity);39 RegisterClass(StaticEntity); 40 40 41 StaticEntity::StaticEntity( BaseObject* creator) : WorldEntity(creator)41 StaticEntity::StaticEntity(Context* context) : WorldEntity(context) 42 42 { 43 43 RegisterObject(StaticEntity); -
code/trunk/src/orxonox/worldentities/StaticEntity.h
r7163 r9667 39 39 { 40 40 public: 41 StaticEntity( BaseObject* creator);41 StaticEntity(Context* context); 42 42 virtual ~StaticEntity(); 43 43 -
code/trunk/src/orxonox/worldentities/TeamSpawnPoint.cc
r5781 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(TeamSpawnPoint);36 RegisterClass(TeamSpawnPoint); 37 37 38 TeamSpawnPoint::TeamSpawnPoint( BaseObject* creator) : SpawnPoint(creator)38 TeamSpawnPoint::TeamSpawnPoint(Context* context) : SpawnPoint(context) 39 39 { 40 40 RegisterObject(TeamSpawnPoint); -
code/trunk/src/orxonox/worldentities/TeamSpawnPoint.h
r5781 r9667 40 40 { 41 41 public: 42 TeamSpawnPoint( BaseObject* creator);42 TeamSpawnPoint(Context* context); 43 43 virtual ~TeamSpawnPoint() {} 44 44 -
code/trunk/src/orxonox/worldentities/WorldEntity.cc
r8858 r9667 61 61 BOOST_STATIC_ASSERT((int)Ogre::Node::TS_WORLD == (int)WorldEntity::World); 62 62 63 RegisterAbstractClass(WorldEntity).inheritsFrom(Class(BaseObject)).inheritsFrom(Class(Synchronisable)); 64 63 65 /** 64 66 @brief … … 66 68 All the default values are being set here. 67 69 */ 68 WorldEntity::WorldEntity( BaseObject* creator) : BaseObject(creator), Synchronisable(creator)70 WorldEntity::WorldEntity(Context* context) : BaseObject(context), Synchronisable(context) 69 71 { 70 72 RegisterObject(WorldEntity); … … 92 94 this->bPhysicsActiveSynchronised_ = false; 93 95 this->bPhysicsActiveBeforeAttaching_ = false; 94 this->collisionShape_ = new WorldEntityCollisionShape(this); 96 this->collisionShape_ = new WorldEntityCollisionShape(this->getContext()); 97 this->collisionShape_->setWorldEntityOwner(this); 95 98 this->collisionType_ = None; 96 99 this->collisionTypeSynchronised_ = None; -
code/trunk/src/orxonox/worldentities/WorldEntity.h
r7910 r9667 90 90 91 91 public: 92 WorldEntity( BaseObject* creator);92 WorldEntity(Context* context); 93 93 virtual ~WorldEntity(); 94 94 -
code/trunk/src/orxonox/worldentities/pawns/Destroyer.cc
r5929 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(Destroyer);36 RegisterClass(Destroyer); 37 37 38 Destroyer::Destroyer( BaseObject* creator) : SpaceShip(creator)38 Destroyer::Destroyer(Context* context) : SpaceShip(context) 39 39 { 40 40 RegisterObject(Destroyer); -
code/trunk/src/orxonox/worldentities/pawns/Destroyer.h
r5781 r9667 39 39 { 40 40 public: 41 Destroyer( BaseObject* creator);41 Destroyer(Context* context); 42 42 virtual ~Destroyer() {}; 43 43 -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc
r9016 r9667 38 38 39 39 #include "core/CoreIncludes.h" 40 #include "core/ ConfigValueIncludes.h"40 #include "core/config/ConfigValueIncludes.h" 41 41 #include "core/Template.h" 42 42 #include "core/XMLPort.h" … … 53 53 const float orientationGain_ = 100; 54 54 const float jumpValue_ = 300; 55 CreateFactory(FpsPlayer);56 57 FpsPlayer::FpsPlayer( BaseObject* creator) : Pawn(creator)55 RegisterClass(FpsPlayer); 56 57 FpsPlayer::FpsPlayer(Context* context) : Pawn(context) 58 58 { 59 59 RegisterObject(FpsPlayer); -
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.h
r9016 r9667 43 43 { 44 44 public: 45 FpsPlayer( BaseObject* creator);45 FpsPlayer(Context* context); 46 46 virtual ~FpsPlayer(); 47 47 -
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r9666 r9667 51 51 namespace orxonox 52 52 { 53 CreateFactory(Pawn);54 55 Pawn::Pawn( BaseObject* creator)56 : ControllableEntity(c reator)57 , RadarViewable( creator, static_cast<WorldEntity*>(this))53 RegisterClass(Pawn); 54 55 Pawn::Pawn(Context* context) 56 : ControllableEntity(context) 57 , RadarViewable(this, static_cast<WorldEntity*>(this)) 58 58 { 59 59 RegisterObject(Pawn); … … 86 86 if (GameMode::isMaster()) 87 87 { 88 this->weaponSystem_ = new WeaponSystem(this );88 this->weaponSystem_ = new WeaponSystem(this->getContext()); 89 89 this->weaponSystem_->setPawn(this); 90 90 } … … 299 299 if (!this->spawnparticlesource_.empty()) 300 300 { 301 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());301 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 302 302 effect->setPosition(this->getPosition()); 303 303 effect->setOrientation(this->getOrientation()); … … 365 365 this->setDestroyWhenPlayerLeft(false); 366 366 367 BigExplosion* chunk = new BigExplosion(this->getC reator());367 BigExplosion* chunk = new BigExplosion(this->getContext()); 368 368 chunk->setPosition(this->getPosition()); 369 369 … … 373 373 // play death effect 374 374 { 375 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());375 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 376 376 effect->setPosition(this->getPosition()); 377 377 effect->setOrientation(this->getOrientation()); … … 381 381 } 382 382 { 383 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());383 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 384 384 effect->setPosition(this->getPosition()); 385 385 effect->setOrientation(this->getOrientation()); … … 389 389 } 390 390 { 391 ParticleSpawner* effect = new ParticleSpawner(this->getC reator());391 ParticleSpawner* effect = new ParticleSpawner(this->getContext()); 392 392 effect->setPosition(this->getPosition()); 393 393 effect->setOrientation(this->getOrientation()); … … 398 398 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 399 399 { 400 ExplosionChunk* chunk = new ExplosionChunk(this->getC reator());400 ExplosionChunk* chunk = new ExplosionChunk(this->getContext()); 401 401 chunk->setPosition(this->getPosition()); 402 402 } -
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r9625 r9667 45 45 46 46 public: 47 Pawn( BaseObject* creator);47 Pawn(Context* context); 48 48 virtual ~Pawn(); 49 49 -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r9348 r9667 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ConfigValueIncludes.h"34 #include "core/config/ConfigValueIncludes.h" 35 35 #include "core/Template.h" 36 36 #include "core/XMLPort.h" … … 46 46 namespace orxonox 47 47 { 48 CreateFactory(SpaceShip);49 50 SpaceShip::SpaceShip( BaseObject* creator) : Pawn(creator), boostBlur_(NULL)48 RegisterClass(SpaceShip); 49 50 SpaceShip::SpaceShip(Context* context) : Pawn(context), boostBlur_(NULL) 51 51 { 52 52 RegisterObject(SpaceShip); … … 96 96 97 97 if (this->boostBlur_) 98 this->boostBlur_->destroy();98 delete this->boostBlur_; 99 99 } 100 100 } … … 447 447 if (!this->bEnableMotionBlur_ && this->boostBlur_ != NULL) 448 448 { 449 this->boostBlur_->destroy();449 delete this->boostBlur_; 450 450 this->boostBlur_ = NULL; 451 451 } -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.h
r8727 r9667 88 88 { 89 89 public: 90 SpaceShip( BaseObject* creator);90 SpaceShip(Context* context); 91 91 virtual ~SpaceShip(); 92 92 -
code/trunk/src/orxonox/worldentities/pawns/Spectator.cc
r7863 r9667 31 31 #include "util/Convert.h" 32 32 #include "core/CoreIncludes.h" 33 #include "core/ ConfigValueIncludes.h"33 #include "core/config/ConfigValueIncludes.h" 34 34 #include "core/GameMode.h" 35 35 #include "core/command/CommandExecutor.h" … … 45 45 extern const std::string __CC_suicide_name; 46 46 47 CreateFactory(Spectator);48 49 Spectator::Spectator( BaseObject* creator) : ControllableEntity(creator)47 RegisterClass(Spectator); 48 49 Spectator::Spectator(Context* context) : ControllableEntity(context) 50 50 { 51 51 RegisterObject(Spectator); -
code/trunk/src/orxonox/worldentities/pawns/Spectator.h
r7862 r9667 40 40 { 41 41 public: 42 Spectator( BaseObject* creator);42 Spectator(Context* context); 43 43 virtual ~Spectator(); 44 44 -
code/trunk/src/orxonox/worldentities/pawns/TeamBaseMatchBase.cc
r5929 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(TeamBaseMatchBase);39 RegisterClass(TeamBaseMatchBase); 40 40 41 TeamBaseMatchBase::TeamBaseMatchBase( BaseObject* creator) : Pawn(creator)41 TeamBaseMatchBase::TeamBaseMatchBase(Context* context) : Pawn(context) 42 42 { 43 43 RegisterObject(TeamBaseMatchBase); -
code/trunk/src/orxonox/worldentities/pawns/TeamBaseMatchBase.h
r5781 r9667 50 50 { 51 51 public: 52 TeamBaseMatchBase( BaseObject* creator);52 TeamBaseMatchBase(Context* context); 53 53 54 54 // if class closes, close everything
Note: See TracChangeset
for help on using the changeset viewer.