Exemplo n.º 1
0
        public Character()
        {
            SkillScores = new List<SkillScore>();

            Strength = new AbilityScore(this, Abilities.Strength);
            Dexterity = new AbilityScore(this, Abilities.Dexterity);
            Intelligence = new AbilityScore(this, Abilities.Intelligence);
            Constitution = new AbilityScore(this, Abilities.Constitution);
            Wisdom = new AbilityScore(this, Abilities.Wisdom);
            Charisma = new AbilityScore(this, Abilities.Charisma);
        }
Exemplo n.º 2
0
 public void TestModifier(uint ranks, int expectedModifier)
 {
     var score = new AbilityScore(new Character(), Abilities.Strength, ranks);
     Assert.That(score.Modifier, Is.EqualTo(expectedModifier));
 }
 public AbilityScoreViewModel(AbilityScore abilityScore)
 {
     _abilityScore = abilityScore;
 }