public void DisplayWinner(Herd herd, Fleet fleet) { if (herd.HasSurvivors() == true) { Console.WriteLine("Winner winner chicken dinner!!!\nTeam Dinosaur is victorious!!!"); } else { Console.WriteLine("Winner winner chicken dinner!!!\nTeam Robot is victorious!!!"); } }
public void HealRemainingCompetitors(Herd herd, Fleet fleet) { foreach (Dinosaur dino in herd.dinosaurs) { dino.RegenHealth(); } foreach (Robot robot in fleet.robots) { robot.RegenHealth(); } }
public void DisplayStats(Herd herd, Fleet fleet) { foreach (Dinosaur dino in herd.dinosaurs) { Console.WriteLine(dino.DisplayStatus()); } foreach (Robot robo in fleet.robots) { Console.WriteLine(robo.DisplayStatus()); } }
public Battlefield(Herd herd, Fleet fleet) { this.herd = herd; this.fleet = fleet; }