Changeset 9469 for code/branches/turret
- Timestamp:
- Nov 26, 2012, 4:08:25 PM (12 years ago)
- Location:
- code/branches/turret
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turret/src/modules/objects/Turret.cc
r9460 r9469 28 28 29 29 #include "Turret.h" 30 31 32 30 #include "core/CoreIncludes.h" 33 31 #include "core/XMLPort.h" 34 32 #include "controllers/WaypointPatrolController.h" 35 33 36 34 namespace orxonox … … 44 42 { 45 43 RegisterObject(Turret); 46 44 this->controller_ = new WaypointPatrolController(this); 47 45 } 48 46 … … 55 53 } 56 54 57 void Turret::rotateYaw(const Vector2& value)55 /*void Turret::rotateYaw(const Vector2& value) 58 56 { 59 57 … … 69 67 { 70 68 69 }*/ 70 71 void Turret::setAlertnessRadius(float value) 72 { 73 this->controller_->setAlertnessRadius(value); 74 } 75 float Turret::getAlertnessRadius() 76 { 77 return this->controller_->getAlertnessRadius(); 78 } 79 80 void Turret::XMLPort(Element& xmlelement, XMLPort::Mode mode) 81 { 82 SUPER(Turret, XMLPort, xmlelement, mode); 83 XMLPortParam(Turret, "alertnessRadius", setAlertnessRadius, getAlertnessRadius, xmlelement, mode).defaultValues("400"); 71 84 } 72 85 73 86 74 75 /*void Turret::XMLPort(Element& xmlelement, XMLPort::Mode mode)76 {77 SUPER(Turret, XMLPort, xmlelement, mode);78 79 XMLPortParam(Turret, "atmosphere", setAtmosphere, getAtmosphere, xmlelement, mode).defaultValues("Turret/Atmosphere");80 }*/81 82 83 87 } -
code/branches/turret/src/modules/objects/Turret.h
r9460 r9469 46 46 public: 47 47 Turret(BaseObject* creator); 48 49 48 virtual ~Turret(); 50 49 … … 54 53 virtual void moveUpDown(const Vector2& value) {} 55 54 56 virtual void rotateYaw(const Vector2& value);55 /*virtual void rotateYaw(const Vector2& value); 57 56 virtual void rotatePitch(const Vector2& value); 58 virtual void rotateRoll(const Vector2& value); 57 virtual void rotateRoll(const Vector2& value);*/ 59 58 59 void setAlertnessRadius(float value); 60 float getAlertnessRadius(); 60 61 61 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 62 63 63 64 64 65 protected: 65 66 WaypointPatrolController* controller_; 66 67 private: 67 68
Note: See TracChangeset
for help on using the changeset viewer.