- Timestamp:
- Jan 3, 2016, 8:47:51 PM (9 years ago)
- Location:
- code/branches/presentationHS15/src/orxonox/controllers
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15/src/orxonox/controllers/ArtificialController.cc
r10631 r11028 94 94 return; 95 95 96 static const float hardcoded_projectile_speed= 750;97 98 this->targetPosition_ = getPredictedPosition(this->getControllableEntity()->getWorldPosition(), hardcoded_projectile_speed, this->target_->getWorldPosition(), this->target_->getVelocity());96 static const float HARDCODED_PROJECTILE_SPEED = 750; 97 98 this->targetPosition_ = getPredictedPosition(this->getControllableEntity()->getWorldPosition(), HARDCODED_PROJECTILE_SPEED, this->target_->getWorldPosition(), this->target_->getVelocity()); 99 99 this->bHasTargetPosition_ = (this->targetPosition_ != Vector3::ZERO); 100 100 -
code/branches/presentationHS15/src/orxonox/controllers/CommonController.cc
r11026 r11028 38 38 namespace orxonox 39 39 { 40 const float CommonController::HARDCODED_PROJECTILE_SPEED = 750; 40 41 41 42 RegisterClass(CommonController); -
code/branches/presentationHS15/src/orxonox/controllers/CommonController.h
r11026 r11028 45 45 46 46 public: 47 static const float hardcoded_projectile_speed = 750;//<! FightingController uses it to predict enemy position47 static const float HARDCODED_PROJECTILE_SPEED; //<! FightingController uses it to predict enemy position 48 48 49 49 CommonController(Context* context); -
code/branches/presentationHS15/src/orxonox/controllers/FightingController.cc
r11026 r11028 206 206 return false; 207 207 Vector3 newPositionOfTarget = getPredictedPosition(this->getControllableEntity()->getWorldPosition(), 208 hardcoded_projectile_speed, this->target_->getWorldPosition(),208 HARDCODED_PROJECTILE_SPEED, this->target_->getWorldPosition(), 209 209 this->target_->getVelocity()); 210 210 if (!this->target_ || !this->getControllableEntity()) -
code/branches/presentationHS15/src/orxonox/controllers/FlyingController.cc
r11026 r11028 37 37 namespace orxonox 38 38 { 39 const float FlyingController::SPEED = 0.9f/0.02f; 40 const float FlyingController::ROTATEFACTOR = 0.6f/0.02f; 41 39 42 RegisterClass (FlyingController); 40 43 -
code/branches/presentationHS15/src/orxonox/controllers/FlyingController.h
r11026 r11028 53 53 54 54 public: 55 static const float SPEED = 0.9f/0.02f; //<! ship's speed56 static const float ROTATEFACTOR = 0.6f/0.02f; //<! ship's rotation factor55 static const float SPEED; //<! ship's speed 56 static const float ROTATEFACTOR; //<! ship's rotation factor 57 57 58 58 FlyingController(Context* context);
Note: See TracChangeset
for help on using the changeset viewer.