예제 #1
0
 // 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);
 }
예제 #2
0
 // 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);
 }
예제 #3
0
 // 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);
 }
예제 #4
0
 // 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);
 }
예제 #5
0
 // Constructor
 public Vulture()
 {
     EaterType    = EaterType.Carnivore;
     FoodSchedule = new FoodSchedule();
     HardCodeFoodSchedule();
 }
예제 #6
0
 // Constructor
 public Crow()
 {
     EaterType    = EaterType.Omnivorous;
     FoodSchedule = new FoodSchedule();
     HardCodeFoodSchedule();
 }