Changeset 9667 for code/trunk/src/orxonox/controllers
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 21 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/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
Note: See TracChangeset
for help on using the changeset viewer.