- Timestamp:
- Nov 28, 2015, 10:30:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/DivisionController.cc
r10883 r10885 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Gani Aliguzhinov 24 24 * Co-authors: 25 * Dominik Solenicki25 * ... 26 26 * 27 27 */ … … 96 96 } 97 97 98 bool DivisionController::setWingman(ActionpointController* wingman)98 bool DivisionController::setWingman(ActionpointController* newWingman) 99 99 { 100 101 WingmanController* newWingman = orxonox_cast<WingmanController*>(wingman);102 100 if (!this->myWingman_) 103 101 { 104 102 this->myWingman_ = newWingman; 103 if (!this->hasFollower()) 104 newWingman->takeActionpoints (this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 105 105 return true; 106 106 } … … 110 110 } 111 111 } 112 bool DivisionController::setFollower(ActionpointController* myFollower)112 bool DivisionController::setFollower(ActionpointController* newFollower) 113 113 { 114 LeaderController* newFollower = orxonox_cast<LeaderController*> (myFollower);115 114 if (!this->myFollower_) 116 115 { … … 120 119 this->myWingman_->takeActionpoints (std::vector<Point>(), std::vector<Point>(), false); 121 120 } 121 122 newFollower->takeActionpoints (this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 123 122 124 return true; 123 125 }
Note: See TracChangeset
for help on using the changeset viewer.