- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/controllers/DivisionController.cc
r11052 r11071 40 40 RegisterObject(DivisionController); 41 41 this->setFormationMode(FormationMode::DIAMOND); 42 this->target_ = 0;43 this->myFollower_ = 0;44 this->myWingman_ = 0;42 this->target_ = nullptr; 43 this->myFollower_ = nullptr; 44 this->myWingman_ = nullptr; 45 45 } 46 46 47 47 DivisionController::~DivisionController() 48 48 { 49 for ( size_t i = 0; i < this->actionpoints_.size(); ++i)49 for (WorldEntity* actionpoint : this->actionpoints_) 50 50 { 51 if (this->actionpoints_[i])52 this->actionpoints_[i]->destroy();51 if (actionpoint) 52 actionpoint->destroy(); 53 53 } 54 54 this->parsedActionpoints_.clear(); 55 55 this->actionpoints_.clear(); 56 56 } 57 58 void DivisionController::XMLPort(Element& xmlelement, XMLPort::Mode mode)59 {60 SUPER(DivisionController, XMLPort, xmlelement, mode);61 62 }63 void DivisionController::tick(float dt)64 {65 if (!this->isActive())66 return;67 68 SUPER(DivisionController, tick, dt);69 70 }71 57 void DivisionController::action() 72 58 {
Note: See TracChangeset
for help on using the changeset viewer.