Esempio n. 1
0
        static void Main(string[] args)
        {
            Robot c3po  = new Robot("C-3PO", 20, "Axe", 5);
            Robot r2d2  = new Robot("R2-D2", 25, "Gun", 6);
            Robot robo3 = new Robot();
            Fleet fleet = new Fleet(c3po);

            fleet.AddRobot(r2d2);
            fleet.AddRobot(robo3);

            Dinosaur tRex        = new Dinosaur("T-Rex", 25, 8);
            Dinosaur triceratops = new Dinosaur("Triceratops", 35, 3);
            Dinosaur raptor      = new Dinosaur("Raptor", 10, 5);
            Herd     herd        = new Herd(tRex);

            herd.AddDinosaur(triceratops);
            herd.AddDinosaur(raptor);

            Battlefield arena = new Battlefield(herd, fleet);

            arena.Attack();
            Console.ReadLine();
        }