Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Bienvenidos a mi juego MARVEL.");
            Superheroe sup1 = new Superheroe("Spiderman", 1992, "Marvel", 100);
            Villano    vi1  = new Villano("Linterna verde", 1990, "Marvel", 80);

            sup1.Atacar(vi1);
            vi1.Atacar(sup1);
        }
Exemple #2
0
 public Combate(Superheroe valorSuperheroe, Villano valorVillano, int usosSuperpoder)
 {
     this.Superheroe             = valorSuperheroe;
     this.Villano                = valorVillano;
     this.CantidadUsosSuperpoder = usosSuperpoder;
 }
Exemple #3
0
 //set
 public void SetVillano(Villano Villano)
 {
     this.Villano = Villano;
 }
Exemple #4
0
 public Combate()
 {
     this.Superheroe             = new Superheroe("algo", 19, "algomas", 55);
     this.Villano                = new Villano("villa", 54, "esto", 45);
     this.CantidadUsosSuperpoder = 1;
 }