Changeset 10622 for code/trunk/src/modules/objects
- Timestamp:
- Oct 4, 2015, 3:45:56 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/objects/ForceField.h
r9939 r10622 160 160 const std::string& getMode(void); //!< Get the mode of the ForceField. 161 161 162 private:163 162 //! Strings to represent the modes. 164 163 static const std::string modeTube_s; … … 166 165 static const std::string modeInvertedSphere_s; 167 166 static const std::string modeNewtonianGravity_s; 168 169 167 static const std::string modeHomogen_s; 170 168 169 private: 171 170 float velocity_; //!< The velocity of the ForceField. 172 171 float radius_; //!< The radius of the ForceField. -
code/trunk/src/modules/objects/Turret.cc
r10262 r10622 223 223 XMLPortParam(Turret, "maxYaw", setMaxYaw, getMaxYaw, xmlelement, mode); 224 224 XMLPortParam(Turret, "maxPitch", setMaxPitch, getMaxPitch, xmlelement, mode); 225 XMLPortParam(Turret, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode); 225 226 } 226 227 -
code/trunk/src/modules/objects/Turret.h
r10262 r10622 102 102 { return this->maxYaw_; } 103 103 104 inline void setRotationThrust(float rotationthrust) 105 { this->rotationThrust_ = rotationthrust; } 106 107 inline float getRotationThrust() 108 { return this->rotationThrust_; } 109 104 110 protected: 105 111 Vector3 startDir_; //!< The initial facing direction, in local coordinates. -
code/trunk/src/modules/objects/controllers/TurretController.cc
r10262 r10622 104 104 { 105 105 Pawn* entity = orxonox_cast<Pawn*>(*it); 106 if (!entity || FormationController::sameTeam(t his->getControllableEntity(), entity, this->getGametype()))106 if (!entity || FormationController::sameTeam(turret, entity, this->getGametype())) 107 107 continue; 108 108 tempScore = turret->isInRange(entity); … … 196 196 if(this->isLookingAtTargetNew(Degree(5).valueRadians())) 197 197 { 198 198 199 this->getControllableEntity()->fire(0); 199 200 }
Note: See TracChangeset
for help on using the changeset viewer.