- Timestamp:
- May 3, 2010, 6:41:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/ArtificialController.h
r6833 r6850 51 51 inline int getTeam() const 52 52 { return this->team_; } 53 //virtual void changedControllableEntity();53 virtual void changedControllableEntity(); 54 54 55 55 56 56 protected: 57 58 int team_; 59 int freedomCount_; 60 enum State {SLAVE, MASTER, FREE}; 61 State state_; 62 std::list<ArtificialController*> slaves_; 63 57 64 void targetDied(); 58 65 59 66 void moveToPosition(const Vector3& target); 67 //void speedToTargetPosition(const Vector3& target); 60 68 void moveToTargetPosition(); 61 69 62 enum State {SLAVE, MASTER, FREE};63 70 int getState(); 64 std::list<ArtificialController*> slaves_; 71 65 72 void unregisterSlave(); 66 73 void searchNewMaster(); 67 74 void commandSlaves(); 68 75 void setNewMasterWithinFormation(); 69 void freeAllSlaves(); 76 void freeSlaves(); 77 void forceFreeSlaves(); 70 78 void loseMasterState(); 79 void forceFreedom(); 80 bool forcedFree(); 71 81 72 82 ArtificialController *myMaster_; … … 90 100 bool bShooting_; 91 101 92 93 State state_;94 int team_;95 96 102 private: 97 103 };
Note: See TracChangeset
for help on using the changeset viewer.