- Timestamp:
- Dec 8, 2015, 1:02:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/FightingController.h
r10955 r10958 60 60 virtual void maneuver(); //<! sets this->targetPosition_, which is a Vector3 of where this ship flies. Decision is made based on 61 61 //<! the distance to enemy, if being attacked, dodge() is called, otherwise ship just flies towards this->target_. 62 bool bShooting_; 62 bool bShooting_; //<! if true, ship shoots each tick 63 63 bool canFire(); //<! check if target_ is in radius and if this is looking at target_ 64 virtual void action(){};//<! action() is called in regular intervals managing the bot's behaviour. Only gets called by MasterController, is implemented in ActionpointController65 64 protected: 66 65 void setTarget(ControllableEntity* target); //set a target to shoot at
Note: See TracChangeset
for help on using the changeset viewer.










