- Timestamp:
- Nov 28, 2015, 10:30:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.h
r10883 r10885 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Gani Aliguzhinov 24 24 * Co-authors: 25 * ...25 * Fabian 'x3n' Landau, Dominik Solenicki 26 26 * 27 27 */ … … 45 45 46 46 float squaredDistanceToTarget() const; 47 bool isLookingAtTarget(float angle) ;48 bool hasTarget() ;49 ControllableEntity* getTarget() 47 bool isLookingAtTarget(float angle) const; 48 bool hasTarget() const; 49 ControllableEntity* getTarget() const 50 50 { return this->target_; } 51 51 bool bKeepFormation_; … … 61 61 62 62 void maneuver(); 63 void dodge( Vector3& thisPosition, Vector3& diffUnit);63 void dodge(const Vector3& thisPosition, Vector3& diffUnit); 64 64 bool canFire(); 65 65 void doFire(); … … 71 71 bool bHasOrientationOfTarget_; 72 72 Quaternion orientationOfTarget_; 73 Pawn* closestTarget() ;73 Pawn* closestTarget() const; 74 74 75 75 int attackRange_; 76 76 bool bShooting_; 77 77 int maneuverCounter_; 78 bool bLookAtTarget_; 78 bool bLookAtTarget_; 79 80 //WEAPONSYSTEM DATA 81 int rocketsLeft_; 82 float timeout_; 83 bool bFiredRocket_; 84 std::map<std::string, int> weaponModes_; //<! Links each "weapon" to it's weaponmode - managed by setupWeapons() 85 //std::vector<int> projectiles_; //<! Displays amount of projectiles of each weapon. - managed by setupWeapons() 86 void setupWeapons(); //<! Defines which weapons are available for a bot. Is recalled whenever a bot was killed. 87 bool bSetupWorked; //<! If false, setupWeapons() is called. 88 int getFiremode(std::string name); 89 79 90 }; 80 91 }
Note: See TracChangeset
for help on using the changeset viewer.