Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 29, 2015, 11:53:45 AM (9 years ago)
Author:
gania
Message:

Wingmen and Leaders look for their leaders

File:
1 edited

Legend:

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

    r10709 r10717  
    3333
    3434
     35#include "util/Math.h"
     36#include "tools/Timer.h"
     37#include "tools/interfaces/Tickable.h"
    3538
    3639namespace orxonox
     
    4952                inline FormationMode getFormationMode() const
    5053                        { return this->formationMode_; }
    51                         virtual void setLeader(LeaderController* leader);
     54                        virtual bool setFollower(LeaderController* myFollower);
    5255
    5356                       
     
    6366                        FormationMode formationMode_;
    6467                       
    65                         /*void setTargetPosition(const Vector3& target);
    66                         void searchRandomTargetPosition();
    67 
    68                         void setTargetOrientation(const Quaternion& orient);
    69                         void setTargetOrientation(Pawn* target);
    70 
    71                         virtual void positionReached() {}
    72 
    73 
    74 
    75                         void setTarget(Pawn* target);
    76 
    77                         void searchNewTarget();
    78                     void forgetTarget();
    79 
    80                         void targetDied();
    81                         bool bShooting_;
    82                         void aimAtTarget();
    83 
    84             bool isCloseAtTarget(float distance) const;
    85             bool isLookingAtTarget(float angle) const;
    86 
    87                 //Has nothing to do with desiredRelativePosition_,
    88                 //is set by fleet controller.
    89                 Vector3* desiredAbsolutePosition_;
    90 
    91                 enum Maneuver {NONE, SPIN, TURN180};
    92                 Maneuver maneuver_;
    93 
    94                 void moveToPosition(const Vector3& target);
    95                     void moveToTargetPosition();
    96                     void absoluteMoveToPosition(const Vector3& target);
    97                     void copyOrientation(const Quaternion& orient);
    98                     void copyTargetOrientation();
    99 
    100                         void turn180Init();
    101                     void spinInit();
    102                     void spin();
    103                 void turn180();*/
    104 
    105                 LeaderController* leader_;
     68                       
     69                LeaderController* myFollower_;
    10670               
    10771
Note: See TracChangeset for help on using the changeset viewer.