- Timestamp:
- Oct 29, 2015, 11:53:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/DivisionController.cc
r10709 r10717 38 38 { 39 39 RegisterObject(DivisionController); 40 bIsDivisionLeader_ = true; 40 41 } 41 42 … … 47 48 } 48 49 } 49 void DivisionController::setLeader(LeaderController* leader)50 bool DivisionController::setFollower(LeaderController* myFollower) 50 51 { 51 this->leader_ = leader; 52 if (!this->myFollower_) 53 { 54 this->myFollower_ = myFollower; 55 return true; 56 } 57 else 58 { 59 return false; 60 } 52 61 } 53 62 /*void DivisionController::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset
for help on using the changeset viewer.