private void setCharacterRace() { EntityCharacterRace race = EntityCharacterRace.Human; if (cboSelectCharacterRace.Text == "Dragonborn") { race = EntityCharacterRace.Dragonborn; } else if (cboSelectCharacterRace.Text == "Dwarf") { race = EntityCharacterRace.Dwarf; } else if (cboSelectCharacterRace.Text == "Elf") { race = EntityCharacterRace.Elf; } else if (cboSelectCharacterRace.Text == "Human") { race = EntityCharacterRace.Human; } else { MessageBox.Show("You must select a Race."); return; } playerPickingRace.CharacterRace = race; return; }
//Create the object public Entity() { intHealth = 10; strName = ""; entGender = EntityGender.Female; intAge = 20; intHeightFeet = 5; intHeightInches = 11; strWeight = ""; entEyeColor = EntityEyeColor.Blue; entHairColor = EntityHairColor.Black; strSkin = "Weathered"; intStrengthAbility = 0; intDexterityAbility = 0; intConstitutionAbility = 0; intIntelligenceAbility = 0; intWisdomAbility = 0; intCharismaAbility = 0; strStrengthModifier = ""; strDexterityModifier = ""; strConstitutionModifier = ""; strIntelligenceModifier = ""; strWisdomModifier = ""; strCharismaModifier = ""; strStrengthSaving = ""; strDexteritySaving = ""; strConstitutionSaving = ""; strIntelligenceSaving = ""; strWisdomSaving = ""; strCharismaSaving = ""; entAttack = EntityAttacks.Melee; entWeapon = EntityWeapons.Sword; entCharacterRace = EntityCharacterRace.Human; entCharacterClass = EntityCharacterClass.Fighter; entArmor = EntityArmor.Medium; }