// Hardcoded values of the food schedule. This method will be present in all specific animal classes. private void HardCodeFoodSchedule() { FoodSchedule.AddFoodScheduleItem("(0) Morning: carrion." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(1) Lunch: more carrion." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(2) 3 PM: even more carrion!" + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(3) Evenings: maybe some more carrion!" + Environment.NewLine); }
// Hardcoded values of the food schedule. This method will be present in all specific animal classes. private void HardCodeFoodSchedule() { FoodSchedule.AddFoodScheduleItem("(0) Morning: meat." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(1) Lunch: more meat." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(2) 3 PM: even more meat!" + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(3) Evenings: no more food for today." + Environment.NewLine); }
// Hardcoded values of the food schedule. This method will be present in all specific animal classes. private void HardCodeFoodSchedule() { FoodSchedule.AddFoodScheduleItem("(0) Morning: some fish." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(1) Lunch: a squirrel." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(2) 3 PM: a salmon or two!" + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(3) Evenings: rabbits!" + Environment.NewLine); }
// Hardcoded values of the food schedule. This method will be present in all specific animal classes. private void HardCodeFoodSchedule() { FoodSchedule.AddFoodScheduleItem("(0) Morning: worms." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(1) Lunch: some veggies." + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(2) 3 PM: even more worms!" + Environment.NewLine); FoodSchedule.AddFoodScheduleItem("(3) Evenings: no more food." + Environment.NewLine); }
// Constructor public Vulture() { EaterType = EaterType.Carnivore; FoodSchedule = new FoodSchedule(); HardCodeFoodSchedule(); }
// Constructor public Crow() { EaterType = EaterType.Omnivorous; FoodSchedule = new FoodSchedule(); HardCodeFoodSchedule(); }