public void Execute(Patroller owner) { Console.WriteLine("Imma kick ya so hard, ya can't sit for a fortnigh'!!"); owner.strength -= 2; if (owner.strength < 5) { owner.ChangeState(Hide.instance); } }
static void Main(string[] args) { Patroller p = new Patroller(); while (true) { p.Update(); Thread.Sleep(2000); } }
public void Execute(Patroller owner) { Console.WriteLine("Just ya wait, I'm smackin' ya on ya behind real soon!"); owner.strength++; if (new Random().Next(0, 5) == 0) { owner.ChangeState(Patrol.Instance); } else if (owner.strength > 10) { owner.ChangeState(Attack.instance); } }
public void Execute(Patroller owner) { Console.WriteLine("Nothin' suspicious a' me farm."); owner.strength++; if (new Random().Next(0, 7) == 0) { if (owner.strength > 10) { owner.ChangeState(Attack.instance); } else { owner.ChangeState(Hide.instance); } } }
public void Exit(Patroller owner) { Console.WriteLine("Stupid kids, finally got o' me farm."); }
public void Enter(Patroller owner) { Console.WriteLine("Ya filthy rascal, if it wasn' for me back!!"); }
public void Exit(Patroller owner) { Console.WriteLine("Oeh, me back!"); }
public void Enter(Patroller owner) { Console.WriteLine("Prepare yar buttocks, son!!"); }
public void Exit(Patroller owner) { Console.WriteLine("Oi, get o' me farm!"); }
public void Enter(Patroller owner) { Console.WriteLine("Imma start watchin' me farm."); }