private void setClassWeaponsAndAttack() { EntityWeapons weapon = EntityWeapons.Sword; EntityAttacks attack = EntityAttacks.Melee; if (cboSelectCharacterClass.Text == "Cleric") { weapon = EntityWeapons.Warhammer; attack = EntityAttacks.Melee; } else if (cboSelectCharacterClass.Text == "Fighter") { weapon = EntityWeapons.Sword; attack = EntityAttacks.Melee; } else if (cboSelectCharacterClass.Text == "Rogue") { weapon = EntityWeapons.Bow; attack = EntityAttacks.Range; } else if (cboSelectCharacterClass.Text == "Wizard") { weapon = EntityWeapons.Quaterstaff; attack = EntityAttacks.Spell; } playerPickingClass.Weapon = weapon; playerPickingClass.Attack = attack; 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; }