public Skill(string name, Enums.AbilityScoreName modifierType, string description, int value = 0) { Name = name; ModifierType = modifierType; Description = description; Value = value; }
// The handlers of the Skills // Adding a Skill to the character public bool AddSkill(string name, Enums.AbilityScoreName modifierType, string description, int value = 0) { // check to see if Skill already exists foreach (Skill skill in Skills) { if (skill.Name == name) { // if Skill exists return false return(false); } } // if it Skill doesn't exists add Skill and return true Skills.Add(new Skill(name, modifierType, description, value)); return(true); }
public AbilityScore(Enums.AbilityScoreName name, int value = 0) { Name = name; Value = value; }