protected Plant(string name, string type, PlantMood mood, ThirstLevel thirst) { Name = name; Type = type; Mood = mood; Thirst = thirst; }
public virtual ThirstLevel WaterPlant() { if ((int)this.Thirst < 3) { Console.WriteLine(GetWaterPlantMessage()); this.Thirst += 1; return(this.Thirst); } Console.WriteLine(GetWaterPlantFailedMessage()); return(this.Thirst); }
public Jade(string name, string type, PlantMood mood, ThirstLevel thirst) : base(name, type, mood, thirst) { }
public void UpdatePlant(ThirstLevel thirst) => Thirst = thirst;