Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2010, 6:39:59 PM (15 years ago)
Author:
solex
Message:

consle commands

File:
1 edited

Legend:

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

    r6958 r6978  
    3636#include "util/Math.h"
    3737#include "Controller.h"
     38#include "controllers/NewHumanController.h"
    3839
    3940namespace orxonox
     
    6162            static void formationflight(bool form);
    6263            static void masteraction(int action);
     64            static void followme();
    6365
    6466        protected:
     
    7173            std::vector<ArtificialController*> slaves_;
    7274            ArtificialController *myMaster_;
    73             enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180};
     75            enum SpecificMasterAction {NONE, HOLD, SPIN, TURN180, FOLLOWHUMAN};
    7476            SpecificMasterAction specificMasterAction_;
    7577            int specificMasterActionHoldCount_;
     78            Pawn* humanToFollow_;
    7679
    7780            void targetDied();
     
    8689            void commandSlaves();
    8790            void setNewMasterWithinFormation();
     91
    8892            void freeSlaves();
    8993            void forceFreeSlaves();
     
    9195            void forceFreedom();
    9296            bool forcedFree();
     97
    9398            void specificMasterActionHold();
    9499            void turn180();
    95100            void spin();
     101            void followHuman(Pawn* humanController, bool always);
    96102
    97103            void setTargetPosition(const Vector3& target);
Note: See TracChangeset for help on using the changeset viewer.