예제 #1
0
        private void Boost(AbilityScoreSelection boost, string name, int value)
        {
            switch (boost)
            {
            case AbilityScoreSelection.Str:
                Str.Add(name, value);
                break;

            case AbilityScoreSelection.Dex:
                Dex.Add(name, value);
                break;

            case AbilityScoreSelection.Con:
                Con.Add(name, value);
                break;

            case AbilityScoreSelection.Wis:
                Wis.Add(name, value);
                break;

            case AbilityScoreSelection.Int:
                Int.Add(name, value);
                break;

            case AbilityScoreSelection.Cha:
                Cha.Add(name, value);
                break;
            }
        }
 public PlayerClass(string name, AbilityScoreSelection keyAbilityScore, int hitpoints, int trainedSkills,
                    ProficiencyStat perception, ProficiencyStat fortitude, ProficiencyStat reflex, ProficiencyStat will,
                    SpellCastingType spellCastingType, List <string> signatureSkills, Dictionary <string, Proficiency> weaponArmourProficiencies,
                    Dictionary <int, Level> levelUpScheme)
 {
     Name                      = name;
     KeyAbilityScore           = keyAbilityScore;
     Hitpoints                 = hitpoints;
     TrainedSkills             = trainedSkills;
     Perception                = perception;
     Fortitude                 = fortitude;
     Reflex                    = reflex;
     Will                      = will;
     SpellCastingType          = spellCastingType;
     SignatureSkills           = signatureSkills;
     WeaponArmourProficiencies = weaponArmourProficiencies;
     LevelUpScheme             = levelUpScheme;
 }
예제 #3
0
 public Skill(Proficiency proficiency, AbilityScoreSelection mainAbility, bool signature) : base(proficiency, mainAbility)
 {
     Signature = signature;
 }
예제 #4
0
 public ProficiencyStat(Proficiency proficiency, AbilityScoreSelection mainAbility)
 {
     Proficiency = Proficiency;
     MainAbility = mainAbility;
 }