- Timestamp:
- May 27, 2010, 6:39:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/ArtificialController.h
r6958 r6978 36 36 #include "util/Math.h" 37 37 #include "Controller.h" 38 #include "controllers/NewHumanController.h" 38 39 39 40 namespace orxonox … … 61 62 static void formationflight(bool form); 62 63 static void masteraction(int action); 64 static void followme(); 63 65 64 66 protected: … … 71 73 std::vector<ArtificialController*> slaves_; 72 74 ArtificialController *myMaster_; 73 enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180 };75 enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180, FOLLOWHUMAN}; 74 76 SpecificMasterAction specificMasterAction_; 75 77 int specificMasterActionHoldCount_; 78 Pawn* humanToFollow_; 76 79 77 80 void targetDied(); … … 86 89 void commandSlaves(); 87 90 void setNewMasterWithinFormation(); 91 88 92 void freeSlaves(); 89 93 void forceFreeSlaves(); … … 91 95 void forceFreedom(); 92 96 bool forcedFree(); 97 93 98 void specificMasterActionHold(); 94 99 void turn180(); 95 100 void spin(); 101 void followHuman(Pawn* humanController, bool always); 96 102 97 103 void setTargetPosition(const Vector3& target);
Note: See TracChangeset
for help on using the changeset viewer.