public MediumStrengthState(Player player)
     : base(player)
 {
     this.Speed = 5;
     this.LowerStrenghtLimit = 20;
     this.UpperStrenghtLimit = 60;
 }
 public HighStrengthState(Player player)
     : base(player)
 {
     this.Speed = 10;
     this.LowerStrenghtLimit = 60;
     this.UpperStrenghtLimit = 100;
 }
Ejemplo n.º 3
0
        static void Main()
        {
            Player forrest = new Player("Forrest Gump");
            forrest.Show();
            forrest.Run();

            forrest.DrinkAlcohol(10);
            forrest.Run();

            forrest.EatSpinach(40);
            forrest.Run();

            forrest.EatSpinach(40);

            forrest.EatSpinach(100);
            forrest.Run();
        }