public void RefreshChar2Text() { this.Char2NameLabel.Text = char2.GetLongName(); this.Char2LevelLabel.Text = ("Lv. " + char2.GetLevel()) + " Fighter"; this.Char2RaceLabel.Text = CharRace.GetString(char2.GetRace()) + " " + CharBackground.GetString(char2.GetBackground()); this.Char2StatsLabel.Text = char2.GetStr() + " / " + char2.GetDex() + " / " + char2.GetCon() + " / " + char2.GetInt() + " / " + char2.GetWis() + " / " + char2.GetCha(); }
public DuelForm(DuelSetupForm parent, ICharacter _char1, ICharacter _char2) { InitializeComponent(); _parent = parent; char1 = _char1; char2 = _char2; log = new List <String>(); // Character details. this.Char1NameLabel.Text = char1.GetLongName(); this.Char2NameLabel.Text = char2.GetLongName(); this.Char1LevelLabel.Text = ("Lv. " + char1.GetLevel()) + " Fighter"; this.Char2LevelLabel.Text = ("Lv. " + char2.GetLevel()) + " Fighter"; this.Char1RaceLabel.Text = CharRace.GetString(char1.GetRace()) + " " + CharBackground.GetString(char1.GetBackground()); this.Char2RaceLabel.Text = CharRace.GetString(char2.GetRace()) + " " + CharBackground.GetString(char2.GetBackground()); this.Char1StatsLabel.Text = char1.GetStr() + " / " + char1.GetDex() + " / " + char1.GetCon() + " / " + char1.GetInt() + " / " + char1.GetWis() + " / " + char1.GetCha(); this.Char2StatsLabel.Text = char2.GetStr() + " / " + char2.GetDex() + " / " + char2.GetCon() + " / " + char2.GetInt() + " / " + char2.GetWis() + " / " + char2.GetCha(); this.Char1HPLabel.Text = "HP: " + char1.GetHP() + "/" + char1.GetMaxHP(); this.Char2HPLabel.Text = "HP: " + char2.GetHP() + "/" + char2.GetMaxHP(); // Log opening line log.Add(char1.GetShortName() + " and " + char2.GetShortName() + " are ready to fight!\n"); this.UpdateLogOutput(); // Roll initiative. _char1Init = char1.RollInitiative(); _char2Init = char2.RollInitiative(); }