Exemplo n.º 1
0
        public void Setup()
        {
            batiriñonera = new List <Tecnologias>();
            Tecnologias batibumerangs = new Tecnologias("Batibumerangs", 100, 1);

            batiriñonera.Add(batibumerangs);
            batman = new Batman(batiriñonera);

            villanos = new List <Villano>();
            Psicopatas psicopata = new Psicopatas(5, 100);

            villanos.Add(psicopata);

            Habitante habitante   = new Habitante(2000000);
            Habitante habitante1  = new Habitante(7000000);
            Habitante habitante2  = new Habitante(8000000);
            Habitante habitante3  = new Habitante(9000000);
            Habitante habitante4  = new Habitante(10000000);
            Habitante habitante5  = new Habitante(11000000);
            Habitante habitante6  = new Habitante(12000000);
            Habitante habitante7  = new Habitante(13000000);
            Habitante habitante8  = new Habitante(14000000);
            Habitante habitante9  = new Habitante(15000000);
            Habitante habitante10 = new Habitante(16000000);
            Habitante habitante11 = new Habitante(500000);

            habitantes = new List <Habitante>();
            habitantes.Add(habitante);
            habitantes.Add(habitante1);
            habitantes.Add(habitante2);
            habitantes.Add(habitante3);
            habitantes.Add(habitante4);
            habitantes.Add(habitante5);
            habitantes.Add(habitante6);
            habitantes.Add(habitante7);
            habitantes.Add(habitante8);
            habitantes.Add(habitante9);
            habitantes.Add(habitante10);
            habitantes.Add(habitante11);
            ciudadGotica = new CiudadGotica(habitantes);
        }
 public void Setup()
 {
     batiCafe     = new Tecnologia("BatiCafe", 13, 2);
     batiPistola  = new Tecnologia("BatiPistola", 55, 10);
     batmanWinner = new Batman(new List <Tecnologia> {
         batiCafe, batiPistola
     });
     joker              = new Psicopata(100);
     ladronNormal       = new Ladron("Ladron");
     ladronGuanteBlanco = new Ladron("Guante Blanco");
     ladronGuanteMarron = new Ladron("Guante Marron");
     robinHood          = new Ladron("Robin Hood");
     ET = new Extraterrestre(4);
     pandillaDeLosFeos = new PandillaDeVillanos(new List <Villano> {
         ET, ladronNormal, joker
     });
     ciudad = new CiudadGotica(new List <int> {
         55555555, 11111111, 22222, 33333333, 4444444, 555, 444
     },
                               new List <Villano> {
         joker, ladronNormal, ladronGuanteBlanco, ladronGuanteMarron, ET
     });
 }
Exemplo n.º 3
0
 public void cometerCrimen(CiudadGotica ciudad)
 {
     ciudad.robos(tipo);
     cantidadDeMaldades++;
 }
 public abstract void RealizarMaldad(CiudadGotica ciudad);
Exemplo n.º 5
0
 public override void RealizarMaldad(CiudadGotica ciudad)
 {
     5.times(ciudad.RemoveAt(0));
     this.personasAsesinadas += 5;
 }
 public override void RealizarMaldad(CiudadGotica ciudad)
 {
     ciudad.
 }