Пример #1
0
 protected Plant(string name, string type, PlantMood mood, ThirstLevel thirst)
 {
     Name   = name;
     Type   = type;
     Mood   = mood;
     Thirst = thirst;
 }
Пример #2
0
        public virtual ThirstLevel WaterPlant()
        {
            if ((int)this.Thirst < 3)
            {
                Console.WriteLine(GetWaterPlantMessage());
                this.Thirst += 1;
                return(this.Thirst);
            }

            Console.WriteLine(GetWaterPlantFailedMessage());
            return(this.Thirst);
        }
Пример #3
0
 public Jade(string name, string type, PlantMood mood, ThirstLevel thirst) :
     base(name, type, mood, thirst)
 {
 }
Пример #4
0
 public void UpdatePlant(ThirstLevel thirst) => Thirst = thirst;