public EstadisticasCombate(ref Jugador player, ref Enemigo enemy) { jugador = player; enemigo = enemy; InitializeComponent(); }
public Combate(ref Jugador player, PictureBox csl_j) { Location = new Point(400, 0); InitializeComponent(); player_Cmbt = player; enemy = new Enemigo(player_Cmbt.Level); calcularProb(); //Text = "Enemigo: " + enemy.Vida_Real + " Mana: " + enemy.Mana_Real + " Jugador: " + player_Cmbt.Vida_Real + " Mana: " + player_Cmbt.Mana_Real; posicion_original[0] = BoxJugador.Location; posicion_original[1] = BoxEnemigo.Location; ec = new EstadisticasCombate(ref player_Cmbt, ref enemy); ec.Location = new Point(this.Size.Width + this.Location.X + 20, this.Location.Y); ec.actualizar(player_Cmbt.Vida_Real, player_Cmbt.Mana_Real, enemy.Vida_Real, 0, 0, 0); this.cls_j = csl_j; //recibe la casilla cuando se crea el combate this.AddOwnedForm(ec); if (this.OwnedForms != null) { ec.Show(); } //ec.BringToFront(); }