コード例 #1
0
 public void DisplayGameEnd(Fleet roboFleet, Herd dinoHerd)
 {
     DisplayGameStatus(roboFleet, dinoHerd);
     Console.WriteLine();
     if (roboFleet.robots.Count == 0)
     {
         Console.WriteLine("Dinosaurs Win!");
     }
     if (dinoHerd.dinosaur.Count == 0)
     {
         Console.WriteLine("Robots Win!");
     }
     Console.ReadLine();
 }
コード例 #2
0
 public Battlefield()
 {
     herd = new Herd();
     fleet = new Fleet();
 }
コード例 #3
0
 //constructor
 public Battlefield()
 {
     robotFleet = new Fleet(rand);
     dinoHerd   = new Herd(rand);
     player     = new Player();
 }