- Timestamp:
- Dec 7, 2015, 10:24:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/MasterController.cc
r10954 r10955 58 58 if (this->ticks_ == 1) 59 59 { 60 //fill the vector in the first tick 60 61 for (ObjectList<ActionpointController>::iterator it = ObjectList<ActionpointController>::begin(); it; ++it) 61 62 { … … 69 70 else 70 71 { 72 71 73 if (this->controllers_.empty()) 72 74 return; 73 75 76 //iterate over vecotr with the index, keep index in boundaries 74 77 if (this->indexOfCurrentController_ >= this->controllers_.size()) 75 78 { 76 79 this->indexOfCurrentController_ = 0; 77 80 } 81 //each 9 ticks index is incremented 78 82 if (this->numberOfTicksPassedSinceLastActionCall_ >= 9) 79 83 { … … 83 87 if (this->numberOfTicksPassedSinceLastActionCall_ > 0) 84 88 { 89 //call maneuver for current index 85 90 if (this->numberOfTicksPassedSinceLastActionCall_ == 3) 86 91 { … … 95 100 else if (this->numberOfTicksPassedSinceLastActionCall_ == 6) 96 101 { 102 //call canFire for current index 97 103 if (!this->controllers_.at(this->indexOfCurrentController_)) 98 104 { … … 107 113 else 108 114 { 115 //call action for current index 109 116 if (!this->controllers_.at(this->indexOfCurrentController_)) 110 117 {
Note: See TracChangeset
for help on using the changeset viewer.