Ejemplo n.º 1
0
 public Avoider(Texture2D a_Texture, Vector2 a_Position, MovableEntity a_CurrentTarget)
     : base(a_Texture, a_Position)
 {
     currentTarget = a_CurrentTarget;
     m_StartingPos = a_Position;
     m_Colour      = Color.Gray;
 }
Ejemplo n.º 2
0
 public ChaseHideEnemy(Texture2D a_Texture, Vector2 a_Position, MovableEntity a_Target)
     : base(a_Texture, a_Position)
 {
     m_Colour         = Color.Azure;
     currentBehaviour = null;
     currentTarget    = a_Target;
 }
Ejemplo n.º 3
0
 public Pursue(MovableEntity a_Owner, MovableEntity a_Target)
 {
     behaviourType = BehaviourType.PURSUE;
     owner         = a_Owner;
     target        = a_Target;
 }
Ejemplo n.º 4
0
 public abstract void Execute(MovableEntity a_Entity);
Ejemplo n.º 5
0
 public override void Execute(MovableEntity a_Entity)
 {
     a_Entity.Shoot();
 }
Ejemplo n.º 6
0
 public override void Execute(MovableEntity a_Entity)
 {
     a_Entity.MoveDown();
 }
Ejemplo n.º 7
0
 public override void Execute(MovableEntity a_Entity)
 {
     a_Entity.MoveRight();
 }
Ejemplo n.º 8
0
 public Flee(MovableEntity a_Owner, Vector2 a_Target)
 {
     behaviourType = BehaviourType.FLEE;
     target        = a_Target;
     owner         = a_Owner;
 }
Ejemplo n.º 9
0
 public Wander(MovableEntity a_Owner)
 {
     owner         = a_Owner;
     target        = owner.Position;
     behaviourType = BehaviourType.WANDER;
 }
Ejemplo n.º 10
0
 public Evade(MovableEntity a_Owner, MovableEntity a_Target)
 {
     behaviourType = BehaviourType.EVADE;
     target        = a_Target;
     owner         = a_Owner;
 }
Ejemplo n.º 11
0
 public Seek(MovableEntity a_Owner, Vector2 a_Target)
 {
     behaviourType = BehaviourType.SEEK;
     target        = a_Target;
     owner         = a_Owner;
 }