- Timestamp:
- Jan 17, 2016, 1:59:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3/src/orxonox/controllers/FlyingController.h
r11052 r11065 41 41 42 42 //Formation mode for the divisions 43 namespaceFormationMode43 enum class FormationMode 44 44 { 45 enum Value 46 { 47 FINGER4, DIAMOND, WALL 48 }; 49 } 45 FINGER4, DIAMOND, WALL 46 }; 50 47 51 48 class _OrxonoxExport FlyingController : public CommonController … … 58 55 FlyingController(Context* context); 59 56 virtual ~FlyingController(); 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 58 62 59 void setSpread (int spread) //<! spread is a multiplier for formation flight, should be bigger than 100 … … 65 62 { return this->spread_; } 66 63 67 void setFormationModeXML( std::stringval);64 void setFormationModeXML(const std::string& val); 68 65 std::string getFormationModeXML() const; 69 66 70 void setFormationMode(FormationMode ::Valueval)67 void setFormationMode(FormationMode val) 71 68 { this->formationMode_ = val; } 72 FormationMode ::ValuegetFormationMode() const69 FormationMode getFormationMode() const 73 70 { return this->formationMode_; } 74 71 bool bCopyOrientation_; //<! set to true by default, MasterController sets it in its tick(), … … 91 88 //<! this stays in a certain position relative to leader 92 89 93 FormationMode ::ValueformationMode_;90 FormationMode formationMode_; 94 91 95 92 float rotationProgress_; //<! for slerping
Note: See TracChangeset
for help on using the changeset viewer.