Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2015, 11:07:34 PM (8 years ago)
Author:
gania
Message:

fixed pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/CommonController.h

    r10722 r10725  
    3939    {
    4040        public:
    41            
     41            enum FormationMode {VEE,FINGER4,DIAMOND, WALL};
     42            virtual void setFormationMode(FormationMode val)
     43                { this->formationMode_ = val; }
     44            inline FormationMode getFormationMode() const
     45                { return this->formationMode_; }
     46
    4247            CommonController(Context* context);
    4348            virtual ~CommonController();
     
    4550            virtual bool setWingman(CommonController* wingman);
    4651            virtual bool hasWingman();
    47             CommonController* myWingman_;
     52            Vector3* desiredRelativePosition_;
    4853
    49             CommonController* myLeader_;
    5054
    5155        protected:
     56            void moveToPosition(const Vector3& target);
     57            virtual void positionReached() {}
     58
     59        /*    void moveToTargetPosition();
     60            void absoluteMoveToPosition(const Vector3& target);
     61            void copyOrientation(const Quaternion& orient);
     62            void copyTargetOrientation();
     63
     64            void spin();
     65            void turn180();
     66            void follow();
     67            void setTargetPosition(const Vector3& target);
     68
     69            void setTargetOrientation(const Quaternion& orient);
     70            void setTargetOrientation(Pawn* target);
     71
     72
     73
     74            void setTarget(Pawn* target);
     75
     76            void searchNewTarget();
     77            void forgetTarget();
     78
     79            void targetDied();
     80*/
     81            bool bHasTargetPosition_;
     82            Vector3 targetPosition_;
     83            bool bHasTargetOrientation_;
     84            Quaternion targetOrientation_;
     85
     86            WeakPtr<ControllableEntity> target_;
     87            bool bShooting_;
     88
     89            FormationMode formationMode_;
     90
     91
    5292
    5393            //void defaultBehaviour(float maxrand); //<! Helper function for code reusage. Some concrete commands for a bot.   
Note: See TracChangeset for help on using the changeset viewer.