Changeset 7039 for code/branches/presentation3/src/orxonox/worldentities
- Timestamp:
- May 31, 2010, 9:33:09 AM (14 years ago)
- Location:
- code/branches/presentation3/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/worldentities/Drone.cc
r7034 r7039 1 2 3 4 5 6 7 1 /* 8 2 * ORXONOX - the hottest 3D action shooter ever to exist … … 47 41 Drone::Drone(BaseObject* creator) : Pawn(creator) 48 42 { 49 43 RegisterObject(Drone); 50 44 51 45 this->myController_ = 0; … … 80 74 SUPER(Drone, XMLPort, xmlelement, mode); 81 75 82 83 84 76 XMLPortParam(Drone, "primaryThrust_", setPrimaryThrust, getPrimaryThrust, xmlelement, mode); 77 XMLPortParam(Drone, "auxilaryThrust_", setAuxilaryThrust, getAuxilaryThrust, xmlelement, mode); 78 XMLPortParam(Drone, "rotationThrust_", setRotationThrust, getRotationThrust, xmlelement, mode); 85 79 XMLPortParam(Drone, "maxDistanceToOwner_", setMaxDistanceToOwner, getMaxDistanceToOwner, xmlelement, mode); 86 80 XMLPortParam(Drone, "minDistanceToOwner_", setMinDistanceToOwner, getMinDistanceToOwner, xmlelement, mode); -
code/branches/presentation3/src/orxonox/worldentities/Drone.h
r7034 r7039 114 114 inline void setMinDistanceToOwner( float distance) 115 115 { this->minDistanceToOwner_=distance; } 116 116 117 117 118 118 /** 119 119 @brief Gets the primary thrust to the input amount. 120 @ preturn The amount of thrust.120 @return The amount of thrust. 121 121 */ 122 122 inline float getPrimaryThrust() 123 123 { return this->primaryThrust_; } 124 124 inline float getAuxilaryThrust() 125 125 { return this->auxilaryThrust_; } 126 126 inline float getRotationThrust() 127 127 { return this->rotationThrust_; } 128 128 inline float getMaxDistanceToOwner() 129 129 { return this->maxDistanceToOwner_; } 130 130 inline float getMinDistanceToOwner()
Note: See TracChangeset
for help on using the changeset viewer.