Changeset 8014 for code/branches/tutorial/src/orxonox/worldentities
- Timestamp:
- Mar 3, 2011, 4:26:30 PM (14 years ago)
- Location:
- code/branches/tutorial/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
r8012 r8014 36 36 //TODO: Put your code in here: 37 37 // Create the factory for the drone. 38 CreateFactory(AutonomousDrone);39 38 40 39 /** … … 48 47 //TODO: Put your code in here: 49 48 // Register the drone class to the core. 50 RegisterObject(AutonomousDrone);51 49 52 50 this->myController_ = NULL; … … 89 87 // Variables can be added by the following command 90 88 // XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode); 91 XMLPortParam(AutonomousDrone, "auxiliaryThrust", setAuxiliaryThrust, getAuxiliaryThrust, xmlelement, mode);92 XMLPortParam(AutonomousDrone, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode);93 89 94 90 } -
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h
r8012 r8014 109 109 //TODO: Place your set-functions here. 110 110 // - hint: auxiliary thrust, rotation thrust. 111 /**112 @brief Sets the auxiliary thrust to the input amount.113 @param thrust The amount of thrust.114 */115 inline void setAuxiliaryThrust( float thrust )116 { this->auxiliaryThrust_ = thrust; }117 /**118 @brief Sets the rotation thrust to the input amount.119 @param thrust The amount of thrust.120 */121 inline void setRotationThrust( float thrust )122 { this->rotationThrust_ = thrust; }123 111 124 112 /** … … 129 117 { return this->primaryThrust_; } 130 118 //TODO: Place your get-functions here. 131 /**132 @brief Gets the auxiliary thrust to the input amount.133 @return The amount of thrust.134 */135 inline float getAuxiliaryThrust()136 { return this->auxiliaryThrust_; }137 /**138 @brief Gets the rotation thrust to the input amount.139 @return The amount of thrust.140 */141 inline float getRotationThrust()142 { return this->auxiliaryThrust_; }143 119 144 120 private: -
code/branches/tutorial/src/orxonox/worldentities/CMakeLists.txt
r8012 r8014 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 AutonomousDrone.cc3 2 WorldEntity.cc 4 3 StaticEntity.cc
Note: See TracChangeset
for help on using the changeset viewer.