public void AddResource(IGrazing animal, Farm farm) { if (_animals.Count < _capacity) { _animals.Add(animal); } else { ChooseGrazingField.atCapacity = true; ChooseGrazingField.CollectInput(farm, animal); } }
public void AddResource(Farm farm, IGrazing animal) { if (_animals.Count < _capacity) { _animals.Add(animal); ChooseGrazingField.UserTriedToSelectAFullFacility = false; } else { ChooseGrazingField.UserTriedToSelectAFullFacility = true; ChooseGrazingField.CollectInput(farm, animal); } }
public void AddResource(Farm farm, IGrazing animal) { if (_animals.Count < _capacity) { _animals.Add(animal); } else { Console.Clear(); Console.WriteLine("**** That facility is not large enough ****"); Console.WriteLine("**** Please choose another one ****"); Console.WriteLine(); ChooseGrazingField.CollectInput(farm, animal); } }