示例#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);
        }
示例#2
0
        public void Usar(Superheroe superheroe)
        {
            int usos;

            usos = this.CantidadUsos - 1;
        }
示例#3
0
 public Combate(Superheroe valorSuperheroe, Villano valorVillano, int usosSuperpoder)
 {
     this.Superheroe             = valorSuperheroe;
     this.Villano                = valorVillano;
     this.CantidadUsosSuperpoder = usosSuperpoder;
 }
示例#4
0
 //set
 public void SetSuperheroe(Superheroe Superheroe)
 {
     this.Superheroe = Superheroe;
 }
示例#5
0
 public Combate()
 {
     this.Superheroe             = new Superheroe("algo", 19, "algomas", 55);
     this.Villano                = new Villano("villa", 54, "esto", 45);
     this.CantidadUsosSuperpoder = 1;
 }