Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SilverNeedle.Characters.OffenseStats"/> class.
 /// </summary>
 /// <param name="scores">Ability scores of the character.</param>
 /// <param name="size">Size of the character.</param>
 /// <param name="inventory">Inventory and gear of the character.</param>
 public OffenseStats(AbilityScores scores, SizeStats size, Inventory inventory)
 {
     this.BaseAttackBonus       = new BasicStat();
     this.combatManeuverDefense = new BasicStat(10);
     this.combatManeuverOffense = new BasicStat();
     this.AbilityScores         = scores;
     this.Size                = size;
     this.inventory           = inventory;
     this.WeaponProficiencies = new List <WeaponProficiency>();
     this.offensiveAbilities  = new List <SpecialAbility>();
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SilverNeedle.Characters.DefenseStats"/> class.
        /// </summary>
        /// <param name="abilityScores">Ability scores of the character.</param>
        /// <param name="size">Size of the character.</param>
        /// <param name="inv">Inventory of the character.</param>
        public DefenseStats(AbilityScores abilityScores, SizeStats size, Inventory inv)
        {
            this.abilities = abilityScores;
            this.size      = size;
            this.inventory = inv;

            this.fortitudeSave = new BasicStat();
            this.fortitudeSave.AddModifier(
                new AbilityStatModifier(abilityScores.GetAbility(AbilityScoreTypes.Constitution)));

            this.reflexSave = new BasicStat();
            this.reflexSave.AddModifier(
                new AbilityStatModifier(abilityScores.GetAbility(AbilityScoreTypes.Dexterity)));

            this.willSave = new BasicStat();
            this.willSave.AddModifier(
                new AbilityStatModifier(abilityScores.GetAbility(AbilityScoreTypes.Wisdom)));

            this.armor = new BasicStat(BaseArmorClass);

            this.specialAbilities = new List <SpecialAbility>();
        }
Example #3
0
 public void Initialize(ComponentContainer components)
 {
     _sizeStats = components.Get <SizeStats>();
 }