Ejemplo n.º 1
0
 /// <summary>
 /// Gets the score for an ability
 /// </summary>
 /// <returns>The ability score.</returns>
 /// <param name="ability">Ability to lookup.</param>
 public int GetScore(string ability)
 {
     return(this.GetScore(AbilityScore.GetType(ability)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the modifier for an ability
 /// </summary>
 /// <returns>The modifier score for the ability.</returns>
 /// <param name="ability">Ability to find</param>
 public int GetModifier(string ability)
 {
     return(this.GetModifier(AbilityScore.GetType(ability)));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the ability based on the string name of the ability.
 /// This can trigger exceptions if the ability does not match a type or if the
 /// ability is not found in this container
 /// </summary>
 /// <returns>The ability that was found.</returns>
 /// <param name="ability">Ability to find.</param>
 public AbilityScore GetAbility(string ability)
 {
     return(this.GetAbility(AbilityScore.GetType(ability)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the score for an ability
 /// </summary>
 /// <param name="ability">Ability score.</param>
 /// <param name="val">Value for the new ability score.</param>
 public void SetScore(string ability, int val)
 {
     this.SetScore(AbilityScore.GetType(ability), val);
 }