Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Patroller p = new Patroller();

            while (true)
            {
                p.Update();

                Thread.Sleep(2000);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
        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);
                }
            }
        }
Beispiel #5
0
 public void Exit(Patroller owner)
 {
     Console.WriteLine("Stupid kids, finally got o' me farm.");
 }
Beispiel #6
0
 public void Enter(Patroller owner)
 {
     Console.WriteLine("Ya filthy rascal, if it wasn' for me back!!");
 }
Beispiel #7
0
 public void Exit(Patroller owner)
 {
     Console.WriteLine("Oeh, me back!");
 }
Beispiel #8
0
 public void Enter(Patroller owner)
 {
     Console.WriteLine("Prepare yar buttocks, son!!");
 }
Beispiel #9
0
 public void Exit(Patroller owner)
 {
     Console.WriteLine("Oi, get o' me farm!");
 }
Beispiel #10
0
 public void Enter(Patroller owner)
 {
     Console.WriteLine("Imma start watchin' me farm.");
 }