- Timestamp:
- May 17, 2010, 4:45:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/ArtificialController.h
r6888 r6919 53 53 inline int getTeam() const 54 54 { return this->team_; } 55 inline void setFormationFlight(bool formation) 56 { this->formationFlight_ = formation; } 57 inline bool getFormationFlight() const 58 { return this->formationFlight_; } 55 59 virtual void changedControllableEntity(); 56 60 … … 59 63 60 64 int team_; 65 bool formationFlight_; 61 66 int freedomCount_; 62 67 enum State {SLAVE, MASTER, FREE}; 63 68 State state_; 64 69 std::vector<ArtificialController*> slaves_; 70 ArtificialController *myMaster_; 71 enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180}; 72 SpecificMasterAction specificMasterAction_; 73 int specificMasterActionHoldCount_; 65 74 66 75 void targetDied(); … … 80 89 void forceFreedom(); 81 90 bool forcedFree(); 82 83 ArtificialController *myMaster_; 91 void specificMasterActionHold(); 92 void turn180(); 93 void spin(); 84 94 85 95 void setTargetPosition(const Vector3& target);
Note: See TracChangeset
for help on using the changeset viewer.