- Timestamp:
- Nov 30, 2015, 9:34:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.h
r10898 r10906 67 67 void maneuver(); //<! sets this->targetPosition_, which is a Vector3 of where this ship flies. Decision is made based on 68 68 //<! the distance to enemy, if being attacked, dodge() is called, otherwise ship just flies towards this->target_. 69 void dodge(const Vector3& thisPosition, Vector3& diffUnit); //<! choose a random Vector3 perpendicular to the difference vector between69 void dodge(const Vector3& thisPosition, float diffLength, Vector3& diffUnit); //<! choose a random Vector3 perpendicular to the difference vector between 70 70 //<! this and target_ plus or minus some amount in difference vector direction, 71 71 //<! depending on whether it is better to close up or survive. … … 84 84 int attackRange_; 85 85 bool bShooting_; 86 int maneuverCounter_;86 float maneuverCounter_; 87 87 bool bLookAtTarget_; 88 88 float deltaHp; 89 89 float previousHp; 90 bool bStartedDodging_; 91 float timeDodged_; 90 92 //WEAPONSYSTEM DATA 91 93 int rocketsLeft_;
Note: See TracChangeset
for help on using the changeset viewer.