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/worldentities/pawns/Pawn.cc

    r9617 r9619  
    365365
    366366                        // set new Master
    367                                         orxonox_cast<FormationController*>(this->getController())->loseMasterState();
    368 
    369 
    370 
    371                         /* TO DO: - new Master is not set right
    372                          *                - The slave still has a AIController
     367                                        //orxonox_cast<FormationController*>(this->getController())->setNewMasterWithinFormation(orxonox_cast<FormationController*>(slave));
     368                        orxonox_cast<FormationController*>(this->getController())->setNewMasterWithinFormation();
     369
     370
     371                        /* TO DO: - setNewMasterWithinFormation() with an argument.
     372                         *                - set slave as the new master within the formation
    373373                         *
    374374                         */
     
    377377                                this->getPlayer()->startControl(entity);
    378378
    379                                         //orxonox_cast<FormationController*>(this->getController())->takeLeadOfFormation();
    380379
    381380                }
Note: See TracChangeset for help on using the changeset viewer.