示例#1
0
    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;
 }
示例#3
0
 public void SetSteeringBehaviour(int newBehaviour)
 {
     steeringBehavior = (eSteeringBehavior)newBehaviour;
 }