Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 30, 2013, 3:55:12 PM (11 years ago)
Author:
maxima
Message:

New function SetNewMasterWithinFormation(FormationController), but it does not work yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formationupdate/src/orxonox/controllers/FormationController.h

    r9617 r9619  
    5959      static void passivebehaviour(const bool passive);
    6060      static void formationsize(const int size);
    61       void takeLeadOfFormation();
    62       void loseMasterState();
     61      void setNewMasterWithinFormation();
     62      //void setNewMasterWithinFormation(FormationController* newMaster);
    6363
    6464      inline void setFormationFlight(bool formation)
     
    103103      FormationController* getMaster( void ) { return myMaster_; }
    104104      FormationController* getThis( void ) { return this; }
     105      FormationController* getSlave( void ) { return this->slaves_.back(); }
    105106
    106107  protected:
     
    133134      void searchNewMaster();
    134135      void commandSlaves();
    135       void setNewMasterWithinFormation();
     136      void takeLeadOfFormation();
     137      void loseMasterState();
    136138
    137139      void freeSlaves();
Note: See TracChangeset for help on using the changeset viewer.