public Combate() { this.Superheroe = new Superheroe(); this.Villano = new Villano(); this.Ganador = new Personaje(); this.CantidadDeUsosSuperpoder = 0; }
public Combate(Superheroe super, Villano vil, Personaje gan, int usos) { this.Superheroe = super; this.Villano = vil; this.Ganador = gan; this.CantidadDeUsosSuperpoder = usos; }
public void Setup() { piramide = new Pertenencia("Piramides", 10); suero = new Pertenencia("Suero Mutante"); luna = new Pertenencia("La Luna"); city = new Ciudad(50, new List <Pertenencia>() { piramide, suero, luna }); recompensa3 = new Arma("Rayo Congelador", 10); //con=190 m1 = new Minion(new List <Arma>() { new Arma("Rayo Congelador", 40) }, 150); //con=40 m2 = new Minion(new List <Arma>() { new Arma("Rayo Congelador", 10), new Arma("Rayo Congelador", 20), new Arma("Rayo Encojedor", 10) }, 20); //con=170 m3 = new Minion(new List <Arma>() { new Arma("Rayo Congelador", 20), new Arma("Rayo Encojedor", 20), new Arma("Rayo Encojedor", 50) }, 120); grut = new Villano(new List <Minion>() { m1, m2, m3 }); }
// constructor 1 public Combate(Superheroe superheroe, Villano villano, Personaje ganador, int cantidadusos) { this.Superheroe = superheroe; this.Villano = villano; this.Ganador = ganador; this.CantidadDeUsosSuperpoder = cantidadusos; }
private void button2_Click(object sender, EventArgs e) { var Villano1 = new Villano(); Villano1.Id = 1; Villano1.Nombre = "El Wason"; Villano1.Interprete = "Heath Ledger"; Villano1.Descripcion = "Gran Astusia, Gran valor"; var Villano2 = new Villano(); Villano2.Id = 2; Villano2.Nombre = "El Pinguino"; Villano2.Interprete = "Danny DeVito"; Villano2.Descripcion = "Comunicacion con los animales, control de un club y armas"; var Villano3 = new Villano(); Villano3.Id = 3; Villano3.Nombre = "Ra's al Ghul"; Villano3.Interprete = "Liam Nesson"; Villano3.Descripcion = "agilidad con espadas, inteligencia y valor"; var ListadeVillanos = new List <Villano>(); ListadeVillanos.Add(Villano1); ListadeVillanos.Add(Villano2); ListadeVillanos.Add(Villano3); foreach (var V in ListadeVillanos) { MessageBox.Show(V.Id + " " + V.Nombre + " " + V.Interprete + " " + V.Descripcion); } }
public void Setup() { #region quirks oneForAll = new Quirk("One For All", 100, true); allForOne = new Quirk("All For One", 100, true); hellFlame = new Quirk("Hell Flame", 300, false); aplastaPerritos = new Quirk("aplasta perritos", 34, false); horizon = new Quirk("event horizon", 10, true); papaias = new Quirk("papaias intensas", 6, true); hackerHTML = new Quirk("Hackear la nasa con HTML", 600, true); #endregion #region villanos v0 = new Villano(true, false, false, aplastaPerritos); v1 = new Villano(true, true, true, horizon); v2 = new Villano(true, false, false, papaias); v3 = new Villano(true, true, true, hackerHTML); pandilla = new Pandilla(new List <Villano>() { v0, v1, v2 }); pandillaYJefe = new Pandilla(new List <Villano>() { v0, v1, v2, v3 }); #endregion romelio = new Persona(allForOne); endeavor = new Heroe(hellFlame); oruMaito = new Heroe(oneForAll); arturoMirodilla = new Heroe(papaias); }
static void Main(string[] args) { Villano Vil = new Villano(); Superheroe Super = new Superheroe(); Personaje Ganador = new Personaje(); Combate Comb = new Combate(Super, Vil, Ganador, 5); }
private void Form1_Load(object sender, EventArgs e) { var superman = new Heroe(); superman.Id = 01; superman.Nombre = "clark"; superman.Poder = "Volar"; var capitanAmerica = new Heroe(); capitanAmerica.Id = 02; capitanAmerica.Nombre = "stevenrogers"; capitanAmerica.Poder = "Fuerza"; var hulk = new Heroe(); hulk.Id = 03; hulk.Nombre = "BruceBaner"; hulk.Poder = "Fuerza"; var doctdum = new Villano(); doctdum.Id = 01; doctdum.Nombre = "VictorDum"; var thanos = new Villano(); thanos.Id = 02; thanos.Nombre = "ElThanos"; var loki = new Villano(); loki.Id = 03; loki.Nombre = "ElDiosdelaMentira"; }
static void Main(string[] args) { SuperHeroe Heroe = new SuperHeroe("IronMan", 1963, "Tales of Suspense", 100, new SuperPoder(), 2); Villano Villano = new Villano("Venom", 1984, "The Amazing Spiderman", 100); Combate Combate = new Combate(Heroe, Villano, 1); }
static void Main(string[] args) { Villano vil = new Villano(); Superheroe sup = new Superheroe(); Combate comb = new Combate(sup, vil, 5); vil.Atacar(sup); sup.Atacar(vil); }
static void Main(string[] args) { Villano Vil = new Villano(); Superheroe Super = new Superheroe(); Combate Comb = new Combate(Super, Vil, 5); Super.Atacar(Vil); Vil.Atacar(Super); }
static void Main(string[] args) { Superpoder superfuerza = new Superpoder(true, 3); Superheroe ironman = new Superheroe("Iron Man", 1963, "Marvel", 100, 5, superfuerza); Villano thanos = new Villano("Thanos", 1973, "Marvel", 100); Combate combate = new Combate(ironman, thanos, ironman, 2); }
static void Main(string[] args) { Console.WriteLine("Bienvenidos al juego MARVEL."); Superpoder superpoder = new Superpoder(); Superheroe superheroe = new Superheroe(1, superpoder); Villano villano = new Villano(); Combate combate = new Combate(superheroe, villano, 3); combate.Comenzar(); }
public void pelear(Villano villano) { if (villano.poder() > this.poder()) { derrotas++; } else { victorias++; } }
public void Setup() { hellFlame = new Quirk("Hell Flame", 300, ""); quirkVillano1 = new Quirk("Malisimo 1", 120, "Demencia"); quirkVillano2 = new Quirk("Malisimo 2", 40, ""); endevaror = new Heroe(200, 50, hellFlame); muyMalote = new Villano(quirkVillano1, true, false, true);//quirk,roboenonce,trabajo,pizzaconpiña muyMalote2 = new Villano(quirkVillano2, true, true, false); villanos = new List <Villano> { muyMalote, muyMalote2 }; }
public void Setup() { OFA = new Quirk(180, false, "One For All"); AllMight = new Heroe(OFA); HellFlame = new Quirk(300, false, "HellFlame"); Endeavor = new Heroe(HellFlame); Elasticity = new Quirk(60, false, "Elasticity"); GentleCriminal = new Villano(true, false, false, Elasticity); Love = new Quirk(60, false, "Love"); laBrava = new Villano(false, true, false, Love); youtubers = new List<Villano>{laBrava, GentleCriminal}; youtuberos = new Pandilla(youtubers); }
public void Setup() { LlaveEspada = new Arma("Llave Esapada", 20); KingdomHeart = new Arma("Kingdom Heart", 100); rayoCongelante = new Arma("Rayo Congelante", 10); Stuwart = new Minion(rayoCongelante, 10, "Amarillo"); minions = new List <Minion> { Stuwart }; objetos = new List <string> { "Piramides", "Suero Mutante", "La Luna" }; ciudad = new Ciudad(24, objetos, 100); gru = new Villano(minions, ciudad); }
public void Setup() { ElDestructinadorDeMetal = new Arma("El Destructinador De Metal", 20); rayoCongelante = new Arma("Rayo Congelante", 10); ElOtakuinador = new Arma("El Otakuinador", 100); Kevin = new Minion(rayoCongelante, 10, "Amarillo"); minions = new List <Minion> { Kevin }; objetos = new List <string> { "Piramides", "Suero Mutante", "La Luna" }; ciudad = new Ciudad(24, objetos, 100); gru = new Villano(minions, ciudad); }
static void Main(string[] args) { Console.WriteLine("MARVELL..."); var rnd = new Random(); int poderAtaqueSuperHeroe = rnd.Next(200, 500); int poderAtaqueVillano = rnd.Next(300, 600); decimal hitRatioSuperHeroe = (decimal)rnd.NextDouble(); decimal hitRatioVillano = (decimal)rnd.NextDouble(); decimal porcentajeDefensa = (decimal)rnd.NextDouble(); Villano X = new Villano(poderAtaqueVillano, hitRatioVillano); }
private void button2_Click(object sender, EventArgs e) { var Villano1 = new Villano(); Villano1.Nombre = "Guason"; Villano1.Poder = "Astucia"; var Villano2 = new Villano(); Villano2.Nombre = "Lex Luthor"; Villano2.Poder = "Dinero y inteligencia"; var Villano3 = new Villano(); Villano3.Nombre = "Zoom"; Villano3.Poder = "Velocidad"; }
public void Setup() { OFA = new Quirk(180, false, "One for All"); AllMight = new Heroe(OFA); HellFlame = new Quirk(300, false, "HellFlame"); Endeavor = new Heroe(HellFlame); PiroQuinesis = new Quirk(300, false, "PiroQuinesis"); ArturoMirodilla = new Heroe(OFA); Elasticity = new Quirk(60, false, "Elasticity"); Gentlecriminal = new Villano(true, false, false, Elasticity); Love = new Quirk(60, false, "Love"); laBraba = new Villano(false, true, false, Love); terrorists = new List <Villano> { laBraba, Gentlecriminal }; terroristas = new Pandilla(terrorists); }
private void cmbPersonajeDeLista_SelectedIndexChanged(object sender, EventArgs e) { if ((Personaje)cmbPersonajeDeLista.SelectedItem is Heroe) { btnTransformar.Enabled = true; hero = ((Heroe)(cmbPersonajeDeLista.SelectedItem)); if (hero.Saiyajin) { btnAvatar.ImageIndex = 0; lblMensaje.Text = $"Power: {hero.PowerLevel}\n{hero.Mensaje}"; } } else { villain = ((Villano)(cmbPersonajeDeLista.SelectedItem)); btnAvatar.ImageIndex = 7; lblMensaje.Text = $"Power: {villain.PowerLevel}\n{villain.Mensaje}"; } }
private void Form1_Load(object sender, EventArgs e) { var heroe1 = new Heroe(); heroe1.Id = 01; heroe1.Nombre = "Goku"; heroe1.Poderes = "Kamehameha"; var heroe2 = new Heroe(); heroe2.Id = 01; heroe2.Nombre = "Gohan"; heroe2.Poderes = "Masenko"; var heroe3 = new Heroe(); heroe3.Id = 01; heroe3.Nombre = "Vegeta"; heroe3.Poderes = "Resplandor Final"; var villano1 = new Villano(); villano1.Id = 02; villano1.Nombre = "Freezer"; villano1.Poderes = "Destruir Planetas"; var villano2 = new Villano(); villano2.Id = 02; villano2.Nombre = "Cell"; villano2.Poderes = "Absorber"; var villano3 = new Villano(); villano3.Id = 03; villano3.Nombre = "Magneto"; villano3.Poderes = "Control de metales"; }
public void Setup() { gancho = new Tecnologia("Batigancho", 200, 5); gas = new Tecnologia("Batigas lacrimogeno", 500, 1); batarang = new Tecnologia("Batarang", 700, 1); baticinturon = new List <Tecnologia> { gancho, gas, batarang }; batman = new Batman(baticinturon); joker = new Psicopata(2, 100000); catwoman = new GuanteBlanco(); superman = new Extraterrestre(4, 5, 1); villanos = new List <Villano> { joker, superman, catwoman }; }
private void Form1_Load(object sender, EventArgs e) { var heroe1 = new Heroe(); heroe1.Id = 01; heroe1.Nombre = "Superman"; heroe1.Poderes = "Super fuerza"; var heroe2 = new Heroe(); heroe2.Id = 01; heroe2.Nombre = "Batman"; heroe2.Poderes = "Sin poder"; var heroe3 = new Heroe(); heroe3.Id = 01; heroe3.Nombre = " Flash "; heroe3.Poderes = "Velocidad"; var villano1 = new Villano(); villano1.Id = 02; villano1.Nombre = " Ultron "; villano1.Poderes = " Control mental "; var villano2 = new Villano(); villano2.Id = 02; villano2.Nombre = "Darkseid"; villano2.Poderes = " Inteligencia sobrenatural "; var villano3 = new Villano(); villano3.Id = 02; villano3.Nombre = " Dormammu"; villano3.Poderes = " Inmortal y teletransportacion"; }
public void Setup() { hellFlame = new Quirks("Hell Flame", 5000, false); alasRigidas = new Quirks("Alas Rigidas", 180, true); duplicacion = new Quirks("Duplicacion", 15, false); cremacion = new Quirks("Cremmacion", 360, false); coaguloDeSangre = new Quirks("CoaguloDesangre", 80, false); OFA = new Quirks("One For All", 120, false); endeavor = new Heroe(hellFlame); hawks = new Heroe(alasRigidas); arturoMidorilla = new Heroe(OFA); oruMaito = new Heroe(OFA); twice = new Villano(true, true, false, duplicacion); dabi = new Villano(true, false, true, cremacion); stain = new Villano(true, false, true, coaguloDeSangre); pandill = new List <Villano> { twice, dabi }; pandilla = new Pandilla(pandill); }
public MasterControl() { jugador = new Jugador(); heroes = new List <Heroe>(); lugares = new List <LugarClave>(); heroes.Add(new Heroe("Ant-Man")); heroes.Add(new Heroe("Capitán América")); heroes.Add(new Heroe("Black Widow")); heroes.Add(new Heroe("Iron Man")); heroes.Add(new Heroe("Hulk")); heroes.Add(new Heroe("Thor")); heroes.Add(new Heroe("Hawkeye")); heroes.Add(new Heroe("Warmachine")); heroes.Add(new Heroe("Rocket")); heroes.Add(new Heroe("Nebula")); villano = new Villano("Thanos"); lugares.Add(new LugarClave("Ciudad de Nueva York", " año 2018")); lugares.Add(new LugarClave("Nuevos Cuarteles de los Vengadores", " año 2018")); lugares.Add(new LugarClave("Reino Cuántico", " año 2018")); lugares.Add(new LugarClave("Nuevo Asgard", " año 2018")); lugares.Add(new LugarClave("Japón", " año 2018")); lugares.Add(new LugarClave("Residencia Stark", " año 2018")); lugares.Add(new LugarClave("Laboratorio del Doctor Pym", " año 2018")); lugares.Add(new LugarClave("Ciudad de Nueva York", " año 2012")); lugares.Add(new LugarClave("Asgard", " año 2013")); lugares.Add(new LugarClave("Morag", " año 2014")); lugares.Add(new LugarClave("Vormir", " año 2014")); capUno = new CapituloUno(); capDos = new CapituloDos(); lah1 = new LeerArchHistoria(1); lah2 = new LeerArchHistoria(2); }
public void SetVillano(Villano Villano) { this.Villano = Villano; }
public abstract void Correr(Jugador jugador, List <Heroe> heroes, List <LugarClave> lugares, LeerArchHistoria lah, Villano villano);
public void SetVillano(Villano vil) { this.Villano = vil; }