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); }
public void Usar(Superheroe superheroe) { int usos; usos = this.CantidadUsos - 1; }
public Combate(Superheroe valorSuperheroe, Villano valorVillano, int usosSuperpoder) { this.Superheroe = valorSuperheroe; this.Villano = valorVillano; this.CantidadUsosSuperpoder = usosSuperpoder; }
//set public void SetSuperheroe(Superheroe Superheroe) { this.Superheroe = Superheroe; }
public Combate() { this.Superheroe = new Superheroe("algo", 19, "algomas", 55); this.Villano = new Villano("villa", 54, "esto", 45); this.CantidadUsosSuperpoder = 1; }