예제 #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.");
 }