public void Setup()
        {
            helper = new SpecialQualityHelper();

            featsSelector        = GetNewInstanceOf <IFeatsSelector>();
            creatureDataSelector = GetNewInstanceOf <ICreatureDataSelector>();
        }
示例#2
0
        public LycanthropeApplicator(
            ICollectionSelector collectionSelector,
            ICreatureDataSelector creatureDataSelector,
            IHitPointsGenerator hitPointsGenerator,
            Dice dice,
            ITypeAndAmountSelector typeAndAmountSelector,
            IFeatsGenerator featsGenerator,
            IAttacksGenerator attacksGenerator,
            ISavesGenerator savesGenerator,
            ISkillsGenerator skillsGenerator,
            ISpeedsGenerator speedsGenerator)
        {
            this.collectionSelector   = collectionSelector;
            this.creatureDataSelector = creatureDataSelector;
            this.hitPointsGenerator   = hitPointsGenerator;
            this.dice = dice;
            this.typeAndAmountSelector = typeAndAmountSelector;
            this.featsGenerator        = featsGenerator;
            this.attacksGenerator      = attacksGenerator;
            this.savesGenerator        = savesGenerator;
            this.skillsGenerator       = skillsGenerator;
            this.speedsGenerator       = speedsGenerator;

            creatureTypes = new[]
            {
                CreatureConstants.Types.Giant,
                CreatureConstants.Types.Humanoid,
            };
        }
示例#3
0
 public void Setup()
 {
     helper               = new AttackHelper();
     damageHelper         = new DamageHelper();
     collectionSelector   = GetNewInstanceOf <ICollectionSelector>();
     featsSelector        = GetNewInstanceOf <IFeatsSelector>();
     creatureDataSelector = GetNewInstanceOf <ICreatureDataSelector>();
 }
示例#4
0
 public LichApplicator(
     ICollectionSelector collectionSelector,
     ICreatureDataSelector creatureDataSelector,
     Dice dice,
     IAttacksGenerator attacksGenerator,
     IFeatsGenerator featsGenerator,
     ITypeAndAmountSelector typeAndAmountSelector)
 {
     this.collectionSelector   = collectionSelector;
     this.creatureDataSelector = creatureDataSelector;
     this.dice                  = dice;
     this.attacksGenerator      = attacksGenerator;
     this.featsGenerator        = featsGenerator;
     this.typeAndAmountSelector = typeAndAmountSelector;
 }
        public void SelectFor_Setup()
        {
            mockCollectionSelector = new Mock <ICollectionSelector>();
            creatureDataSelector   = new CreatureDataSelector(mockCollectionSelector.Object);

            data = DataIndexConstants.CreatureData.InitializeData();
            data[DataIndexConstants.CreatureData.ChallengeRating] = "challenge rating";
            data[DataIndexConstants.CreatureData.LevelAdjustment] = "9266";
            data[DataIndexConstants.CreatureData.Reach]           = "90.210";
            data[DataIndexConstants.CreatureData.Size]            = "size";
            data[DataIndexConstants.CreatureData.Space]           = "4.2";
            data[DataIndexConstants.CreatureData.CanUseEquipment] = bool.TrueString;
            data[DataIndexConstants.CreatureData.CasterLevel]     = "600";
            data[DataIndexConstants.CreatureData.NaturalArmor]    = "1337";
            data[DataIndexConstants.CreatureData.NumberOfHands]   = "1336";

            mockCollectionSelector
            .Setup(s => s.SelectFrom(TableNameConstants.Collection.CreatureData, Creature))
            .Returns(data);
        }
示例#6
0
        public VampireApplicator(
            Dice dice,
            IAttacksGenerator attacksGenerator,
            IFeatsGenerator featsGenerator,
            ICollectionSelector collectionSelector,
            ICreatureDataSelector creatureDataSelector,
            IAdjustmentsSelector adjustmentSelector)
        {
            this.dice                 = dice;
            this.attacksGenerator     = attacksGenerator;
            this.featsGenerator       = featsGenerator;
            this.collectionSelector   = collectionSelector;
            this.creatureDataSelector = creatureDataSelector;
            this.adjustmentSelector   = adjustmentSelector;

            creatureTypes = new[]
            {
                CreatureConstants.Types.Humanoid,
                CreatureConstants.Types.MonstrousHumanoid,
            };
        }
 public LycanthropeBoarNaturalApplicator(
     ICollectionSelector collectionSelector,
     ICreatureDataSelector creatureDataSelector,
     IHitPointsGenerator hitPointsGenerator,
     Dice dice,
     ITypeAndAmountSelector typeAndAmountSelector,
     IFeatsGenerator featsGenerator,
     IAttacksGenerator attacksGenerator,
     ISavesGenerator savesGenerator,
     ISkillsGenerator skillsGenerator,
     ISpeedsGenerator speedsGenerator)
     : base(
         collectionSelector,
         creatureDataSelector,
         hitPointsGenerator,
         dice,
         typeAndAmountSelector,
         featsGenerator,
         attacksGenerator,
         savesGenerator,
         skillsGenerator,
         speedsGenerator)
 {
 }
示例#8
0
 public CreatureGenerator(IAlignmentGenerator alignmentGenerator,
                          ICreatureVerifier creatureVerifier,
                          ICollectionSelector collectionsSelector,
                          IAbilitiesGenerator abilitiesGenerator,
                          ISkillsGenerator skillsGenerator,
                          IFeatsGenerator featsGenerator,
                          ICreatureDataSelector creatureDataSelector,
                          IHitPointsGenerator hitPointsGenerator,
                          IArmorClassGenerator armorClassGenerator,
                          ISavesGenerator savesGenerator,
                          JustInTimeFactory justInTimeFactory,
                          IAdvancementSelector advancementSelector,
                          IAttacksGenerator attacksGenerator,
                          ISpeedsGenerator speedsGenerator,
                          IEquipmentGenerator equipmentGenerator,
                          IMagicGenerator magicGenerator,
                          ILanguageGenerator languageGenerator)
 {
     this.alignmentGenerator   = alignmentGenerator;
     this.abilitiesGenerator   = abilitiesGenerator;
     this.skillsGenerator      = skillsGenerator;
     this.featsGenerator       = featsGenerator;
     this.creatureVerifier     = creatureVerifier;
     this.collectionsSelector  = collectionsSelector;
     this.creatureDataSelector = creatureDataSelector;
     this.hitPointsGenerator   = hitPointsGenerator;
     this.armorClassGenerator  = armorClassGenerator;
     this.savesGenerator       = savesGenerator;
     this.justInTimeFactory    = justInTimeFactory;
     this.advancementSelector  = advancementSelector;
     this.attacksGenerator     = attacksGenerator;
     this.speedsGenerator      = speedsGenerator;
     this.equipmentGenerator   = equipmentGenerator;
     this.magicGenerator       = magicGenerator;
     this.languageGenerator    = languageGenerator;
 }
示例#9
0
 public CreatureVerifier(JustInTimeFactory factory, ICreatureDataSelector creatureDataSelector)
 {
     this.factory = factory;
     this.creatureDataSelector = creatureDataSelector;
 }