private void radioButton5_CheckedChanged(object sender, EventArgs e) //Barbarian { richTextBox3.Clear(); Barbarian barbarian = new Barbarian(); richTextBox3.Text = barbarian.DisplayAll(); }
private void btnFinalCharInfo_Click(object sender, EventArgs e) { //Need to make Characters default stats match that of chosen race, display relevant info about class abilities. richTextBoxCharFinal.Clear(); richTextBoxCharFinal.Text = "Race Info and Base Stat Block: \n"; switch (playersCharacter.Race) { case "Elf": richTextBoxCharFinal.Text += "Race - Elf: \n"; Elf elf = new Elf(); richTextBoxCharFinal.Text += elf.DisplayAll(); richTextBoxCharFinal.Text += "Base Strength: " + elf.Strength + "\n"; richTextBoxCharFinal.Text += "Base Dexterity: " + elf.Dexterity + "\n"; richTextBoxCharFinal.Text += "Base Constitution: " + elf.Constitution + "\n"; richTextBoxCharFinal.Text += "Base Wisdom: " + elf.Wisdom + "\n"; richTextBoxCharFinal.Text += "Base Intelligence: " + elf.Intelligence + "\n"; richTextBoxCharFinal.Text += "Base Charisma: " + elf.Charisma + "\n"; break; case "Human": richTextBoxCharFinal.Text += "Race - Human: \n"; Human human = new Human(); richTextBoxCharFinal.Text += human.DisplayAll(); richTextBoxCharFinal.Text += "Base Strength: " + human.Strength + "\n"; richTextBoxCharFinal.Text += "Base Dexterity: " + human.Dexterity + "\n"; richTextBoxCharFinal.Text += "Base Constitution: " + human.Constitution + "\n"; richTextBoxCharFinal.Text += "Base Wisdom: " + human.Wisdom + "\n"; richTextBoxCharFinal.Text += "Base Intelligence: " + human.Intelligence + "\n"; richTextBoxCharFinal.Text += "Base Charisma: " + human.Charisma + "\n"; break; case "Dwarf": richTextBoxCharFinal.Text += "Race - Dwarf: \n"; Dwarf dwarf = new Dwarf(); richTextBoxCharFinal.Text += dwarf.DisplayAll(); richTextBoxCharFinal.Text += "Base Strength: " + dwarf.Strength + "\n"; richTextBoxCharFinal.Text += "Base Dexterity: " + dwarf.Dexterity + "\n"; richTextBoxCharFinal.Text += "Base Constitution: " + dwarf.Constitution + "\n"; richTextBoxCharFinal.Text += "Base Wisdom: " + dwarf.Wisdom + "\n"; richTextBoxCharFinal.Text += "Base Intelligence: " + dwarf.Intelligence + "\n"; richTextBoxCharFinal.Text += "Base Charisma: " + dwarf.Charisma + "\n"; break; case "Gnome": richTextBoxCharFinal.Text += "Race - Gnome: \n"; Gnome gnome = new Gnome(); richTextBoxCharFinal.Text += gnome.DisplayAll(); richTextBoxCharFinal.Text += "Base Strength: " + gnome.Strength + "\n"; richTextBoxCharFinal.Text += "Base Dexterity: " + gnome.Dexterity + "\n"; richTextBoxCharFinal.Text += "Base Constitution: " + gnome.Constitution + "\n"; richTextBoxCharFinal.Text += "Base Wisdom: " + gnome.Wisdom + "\n"; richTextBoxCharFinal.Text += "Base Intelligence: " + gnome.Intelligence + "\n"; richTextBoxCharFinal.Text += "Base Charisma: " + gnome.Charisma + "\n"; break; default: richTextBoxCharFinal.Text += "Race - Not Selected: \n"; break; } richTextBoxCharFinal.Text += "\nClass Info: \n"; switch (playersCharacter.Class) { case "Fighter": richTextBoxCharFinal.Text += "Class - Fighter: \n"; Fighter fighter = new Fighter(); richTextBoxCharFinal.Text += fighter.DisplayAll(); break; case "Rogue": richTextBoxCharFinal.Text += "Class - Rogue: \n"; Rogue rogue = new Rogue(); richTextBoxCharFinal.Text += rogue.DisplayAll(); break; case "Barbarian": richTextBoxCharFinal.Text += "Class - Barbarian: \n"; Barbarian barbarian = new Barbarian(); richTextBoxCharFinal.Text += barbarian.DisplayAll(); break; case "Ranger": richTextBoxCharFinal.Text += "Class - Ranger: \n"; Ranger ranger = new Ranger(); richTextBoxCharFinal.Text += ranger.DisplayAll(); break; default: richTextBoxCharFinal.Text += "Race - Not Selected: \n"; break; } richTextBoxCharFinal.Text += "\n\nBackground Info: \n"; switch (playersCharacter.Background) { case "Noble": richTextBoxCharFinal.Text += "Class - Noble: \n"; Noble noble = new Noble(); richTextBoxCharFinal.Text += noble.DisplayAll(); break; case "Soldier": richTextBoxCharFinal.Text += "Class - Soldier: \n"; Soldier soldier = new Soldier(); richTextBoxCharFinal.Text += soldier.DisplayAll(); break; case "Priest": richTextBoxCharFinal.Text += "Class - Priest: \n"; Priest priest = new Priest(); richTextBoxCharFinal.Text += priest.DisplayAll(); break; default: richTextBoxCharFinal.Text += "Race - Not Selected: \n"; break; } //Display User's Chosen Inventory\ richTextBoxCharFinal.Text += "\n\nInventory: \n"; foreach (string o in playersCharacter.Inventory) { richTextBoxCharFinal.Text += o.ToString(); richTextBoxCharFinal.Text += " "; } }