Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2010, 5:02:49 PM (14 years ago)
Author:
solex
Message:

death of master results in forming a new formation. Correct response to master death still to solve.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai/src/orxonox/controllers/ArtificialController.h

    r6696 r6795  
    4747            void abandonTarget(Pawn* target);
    4848
    49             inline void setTeam(int team)//new
     49            inline void setTeam(int team)
    5050                { this->team_ = team; }
    5151            inline int getTeam() const
    5252                { return this->team_; }
     53            virtual void changedControllableEntity();
    5354
    5455
     
    6162            enum State {SLAVE, MASTER, FREE};
    6263            int getState();
    63             std::list<ArtificialController*> slaves;
     64            std::list<ArtificialController*> slaves_;
    6465            void unregisterSlave();
    6566            void searchNewMaster();
    6667            void commandSlaves();
     68            void setNewMasterWithinFormation();
    6769            void freeAllSlaves();
    6870            void loseMasterState();
     
    8991
    9092
    91             State state_;//new master: 1 slave: -1  free: 0
    92             int team_;//new
     93            State state_;
     94            int team_;
    9395
    9496        private:
Note: See TracChangeset for help on using the changeset viewer.