Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2015, 11:53:45 AM (9 years ago)
Author:
gania
Message:

Wingmen and Leaders look for their leaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/DivisionController.cc

    r10709 r10717  
    3838    {
    3939        RegisterObject(DivisionController);
     40        bIsDivisionLeader_ = true;
    4041    }
    4142
     
    4748        }
    4849    }
    49     void DivisionController::setLeader(LeaderController* leader)
     50    bool DivisionController::setFollower(LeaderController* myFollower)
    5051    {
    51         this->leader_ = leader;
     52         if (!this->myFollower_)
     53        {
     54            this->myFollower_ = myFollower;
     55            return true;
     56        }
     57        else
     58        {
     59            return false;
     60        }
    5261    }
    5362    /*void DivisionController::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset for help on using the changeset viewer.