/// <summary> /// Gets the skill value. /// </summary> /// <returns>The skill numeric value.</returns> /// <param name="name">Name of skill to find.</param> public int GetSkillValue(string name) { return(SkillRanks.GetScore(name)); }
/// <summary> /// Processes the stat modifier. This takes anything that modifies stats and relays it to interested classes that might want to monitor for it /// TODO: Better mechanism would be a call back whenever a stat modifier is sent to the character sheet /// </summary> /// <param name="modifier">Modifier that can change stats.</param> public void ProcessStatModifier(IModifiesStats modifier) { SkillRanks.ProcessModifier(modifier); this.Defense.ProcessModifier(modifier); this.Offense.ProcessModifier(modifier); }
/// <summary> /// Gets a character skill. /// </summary> /// <returns>The character's ability with the skill found.</returns> /// <param name="skill">Skill to lookup.</param> public CharacterSkill GetSkill(Skill skill) { return(SkillRanks.GetSkill(skill.Name)); }