示例#1
0
 public override void Exit(Undertaker undertaker)
 {
     if (undertaker.Location != Location.cemetery)
     {
         Printer.Print(undertaker.Id, "Leaving " + LocationProperties.ToString(undertaker.Location) + ".");
     }
 }
示例#2
0
        public override void Execute(Sheriff sheriff)
        {
            Printer.Print(sheriff.Id, "Patrolling in " + LocationProperties.ToString(sheriff.Location) + ".");

            if (!sheriff.OutlawSpotted)
            {
                sheriff.StateMachine.ChangeState(new SheriffTravelToTarget(sheriff.ChooseNextLocation(), new PatrolRandomLocation()));
            }
        }
示例#3
0
        public override void Execute(Outlaw outlaw)
        {
            Printer.Print(outlaw.Id, "Chilling in " + LocationProperties.ToString(outlaw.Location) + ".");

            if (outlaw.Bored())
            {
                outlaw.StateMachine.ChangeState(new OutlawTravelToTarget(Location.cemetery, new LurkInCemetery()));
            }
        }
示例#4
0
 public override void Exit(Sheriff sheriff)
 {
     Printer.Print(sheriff.Id, "Leaving " + LocationProperties.ToString(sheriff.Location) + ".");
 }
示例#5
0
        public override void Enter(Sheriff sheriff)
        {
            path = pathFinder.FindPath(sheriff.CurrentPosition, targetPosition);

            Printer.Print(sheriff.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + ".");
        }
示例#6
0
 public override void Enter(Undertaker undertaker)
 {
     Printer.Print(undertaker.Id, "Arrived in " + LocationProperties.ToString(undertaker.Location) + ".");
 }
示例#7
0
        public override void Enter(Undertaker undertaker)
        {
            path = pathFinder.FindPath(undertaker.CurrentPosition, targetPosition);

            Printer.Print(undertaker.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + ".");
        }
示例#8
0
        public override void Enter(Outlaw outlaw)
        {
            path = pathFinder.FindPath(outlaw.CurrentPosition, targetPosition);

            Printer.Print(outlaw.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + ".");
        }