private void battleDetails(monster m) { battleRtb.Clear(); battleRtb.Text += "Name: " + m.ToString() + "\n"; battleRtb.Text += "Element: " + m.Element + "\n"; battleRtb.Text += "Level: " + m.Level.ToString() + "\n"; battleRtb.Text += "HP: " + m.Hp.ToString() + "/" + m.Maxhp.ToString() + "\n"; battleRtb.Text += "ATK: " + m.Minatk.ToString() + "-" + m.Maxatk.ToString() + "\n"; battleRtb.Text += "DEF: " + m.Mindef.ToString() + "-" + m.Maxdef.ToString() + "\n"; }
private void statEnemy(monster enemy) { nameLabel2.Text = enemy.ToString(); eleLabel2.Text = enemy.Element; levelLabel2.Text = enemy.Level.ToString(); expBar2.Minimum = 0; expBar2.Maximum = enemy.Maxexp; expBar2.Value = enemy.Exp; hpBar2.Minimum = 0; hpBar2.Maximum = enemy.Maxhp; hpBar2.Value = enemy.Hp; atkLabel2.Text = enemy.Minatk + "-" + enemy.Maxatk; defLabel2.Text = enemy.Mindef + "-" + enemy.Maxdef; }
private void statPlayer(monster mymons) { nameLabel1.Text = mymons.ToString(); eleLabel1.Text = mymons.Element; levelLabel1.Text = mymons.Level.ToString(); expBar1.Minimum = 0; expBar1.Maximum = mymons.Maxexp; expBar1.Value = mymons.Exp; hpBar1.Minimum = 0; hpBar1.Maximum = mymons.Maxhp; hpBar1.Value = mymons.Hp; atkLabel1.Text = mymons.Minatk + "-" + mymons.Maxatk; defLabel1.Text = mymons.Mindef + "-" + mymons.Maxdef; }