- Timestamp:
- Dec 7, 2015, 3:14:40 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc
r10925 r10935 28 28 29 29 #include "SectionController.h" 30 //TODO: formation vectors are wrong, fix it. 31 // split classes. 32 // weaponsystem. 33 //-> Math ? 34 30 35 31 namespace orxonox 36 32 { … … 44 40 this->setFormationMode(FormationMode::FINGER4); 45 41 46 //this->actionTimer_.setTimer(ACTION_INTERVAL, true, createExecutor(createFunctor(&SectionController::action, this)));47 42 this->myWingman_ = 0; 48 43 this->myDivisionLeader_ = 0; 49 44 this->bFirstAction_ = true; 50 //orxout(internal_error) << this << "Was created" << endl;51 45 52 46 } … … 74 68 75 69 SUPER(SectionController, tick, dt); 76 /*if (this->timeOffset_ > 0.8f && this->timeOffset_ <= 1.6f && !this->bActionCalled_) 77 { 78 this->action(); 79 this->bActionCalled_ = true; 80 } 81 if (this->timeOffset_ > 2.0f) 82 { 83 this->bActionCalled_ = false; 84 }*/ 85 70 86 71 } 87 72 … … 137 122 { 138 123 this->chooseTarget(); 139 //orxout (internal_error) << "Section ain't got no target" << endl;140 124 } 141 if (this->hasTarget()) 142 { 143 // this->maneuver(); 144 // this->bShooting_ = this->canFire(); 145 // Vector3 healthPosition = bestHealthPickup((this->target_->getWorldPosition() - this->getControllableEntity()->getWorldPosition()).length()); 146 // if ((this->getControllableEntity()->getWorldPosition() - healthPosition).length() < this->tolerance_) 147 // { 148 // //----choose where to go---- 149 // this->maneuver(); 150 // } 151 // else 152 // { 153 // this->dodgeTowards(healthPosition); 154 // } 155 // //----fire if you can---- 156 // this->bShooting_ = this->canFire(); 157 } 125 158 126 } 159 127 }
Note: See TracChangeset
for help on using the changeset viewer.