- Timestamp:
- Nov 30, 2011, 4:09:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/formation/src/orxonox/controllers/Masterable.h
r8939 r8953 88 88 */ 89 89 enum Mode {NORMAL,DEFEND,ATTACK}; 90 90 91 /** 91 @brief set a mode in formation 92 */ 93 void setMode(Mode mode); 94 /** 95 @brief get the current mode 92 @brief Sets the new mode. If master, set it for all slaves. 96 93 */ 97 Mode getMode(); 98 94 void setMode(Mode val); 95 inline Mode getMode() const 96 { return this->mode_; } 97 99 98 protected: 100 99 bool formationFlight_; … … 104 103 int freedomCount_; 105 104 enum State {SLAVE, MASTER, FREE}; 105 106 106 State state_; 107 107 std::vector<Masterable*> slaves_; 108 108 Masterable* myMaster_; 109 110 Mode mode_; 109 111 110 112 enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180, FOLLOW};
Note: See TracChangeset
for help on using the changeset viewer.