Exemple #1
0
 public override void Exit(Undertaker undertaker)
 {
     if (undertaker.Location != Location.cemetery)
     {
         Printer.Print(undertaker.Id, "Leaving " + LocationProperties.ToString(undertaker.Location) + ".");
     }
 }
Exemple #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()));
            }
        }
Exemple #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()));
            }
        }
Exemple #4
0
 public override void Exit(Sheriff sheriff)
 {
     Printer.Print(sheriff.Id, "Leaving " + LocationProperties.ToString(sheriff.Location) + ".");
 }
Exemple #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)) + ".");
        }
Exemple #6
0
 public override void Enter(Undertaker undertaker)
 {
     Printer.Print(undertaker.Id, "Arrived in " + LocationProperties.ToString(undertaker.Location) + ".");
 }
Exemple #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)) + ".");
        }
Exemple #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)) + ".");
        }