public override void Exit(Undertaker undertaker) { if (undertaker.Location != Location.cemetery) { Printer.Print(undertaker.Id, "Leaving " + LocationProperties.ToString(undertaker.Location) + "."); } }
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())); } }
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())); } }
public override void Exit(Sheriff sheriff) { Printer.Print(sheriff.Id, "Leaving " + LocationProperties.ToString(sheriff.Location) + "."); }
public override void Enter(Sheriff sheriff) { path = pathFinder.FindPath(sheriff.CurrentPosition, targetPosition); Printer.Print(sheriff.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + "."); }
public override void Enter(Undertaker undertaker) { Printer.Print(undertaker.Id, "Arrived in " + LocationProperties.ToString(undertaker.Location) + "."); }
public override void Enter(Undertaker undertaker) { path = pathFinder.FindPath(undertaker.CurrentPosition, targetPosition); Printer.Print(undertaker.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + "."); }
public override void Enter(Outlaw outlaw) { path = pathFinder.FindPath(outlaw.CurrentPosition, targetPosition); Printer.Print(outlaw.Id, "Walkin' to " + LocationProperties.ToString(LocationProperties.GetLocation(targetPosition)) + "."); }