private void CreatureSteeringEvent(Agent from, eSteeringBehavior Behavior) { switch (Behavior) { case eSteeringBehavior.Pursuit: Revision.Instance.ReviseCreaturePursuit(owner, from.Creature, from.Steering.Target.Creature); break; case eSteeringBehavior.PursuitPlayer: Revision.Instance.ReviseCreaturePursuitPlayer(owner, from.Creature); break; case eSteeringBehavior.FleePlayer: case eSteeringBehavior.HidePlayer: Revision.Instance.ReviseCreatureEvadePlayer(owner, from.Creature); break; } }
public SteeringBehavior(eSteeringBehavior behaviorType) { BehaviorType = behaviorType; }
public void SetSteeringBehaviour(int newBehaviour) { steeringBehavior = (eSteeringBehavior)newBehaviour; }