Пример #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);
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            Patroller p = new Patroller();

            while (true)
            {
                p.Update();

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