Changeset 5787
- Timestamp:
- Sep 25, 2009, 8:43:46 PM (15 years ago)
- Location:
- code/branches/tutorial/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/worldentities/Drone.cc
r5786 r5787 71 71 SUPER(Drone, XMLPort, xmlelement, mode); 72 72 73 XMLPortParam Variable(Drone, "primaryThrust", primaryThrust_, xmlelement, mode);74 XMLPortParam Variable(Drone, "auxilaryThrust", auxilaryThrust_, xmlelement, mode);75 XMLPortParam Variable(Drone, "rotationThrust", rotationThrust_, xmlelement, mode);73 XMLPortParam(Drone, "primaryThrust", setPrimaryThrust, getPrimaryThrust, xmlelement, mode); 74 XMLPortParam(Drone, "auxilaryThrust", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode); 75 XMLPortParam(Drone, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode); 76 76 } 77 77 -
code/branches/tutorial/src/orxonox/worldentities/Drone.h
r5766 r5787 69 69 { this->rotateRoll(Vector2(value, 0)); } 70 70 71 void setPrimaryThrust( float thrust ){ this->primaryThrust_=thrust; } 72 void setAuxilaryThrust( float thrust ){ this->auxilaryThrust_=thrust; } 73 void setRotationThrust( float thrust ){ this->rotationThrust_=thrust; } 74 75 float getPrimaryThrust(){ return this->primaryThrust_; } 76 float getAuxilaryThrust(){ return this->auxilaryThrust_; } 77 float getRotationThrust(){ return this->rotationThrust_; } 78 71 79 private: 72 80 DroneController *myController_;
Note: See TracChangeset
for help on using the changeset viewer.