public AdditionalFeatsGenerator(ICollectionsSelector collectionsSelector, IFeatsSelector featsSelector, IFeatFocusGenerator featFocusGenerator, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.featsSelector = featsSelector;
     this.featFocusGenerator = featFocusGenerator;
     this.adjustmentsSelector = adjustmentsSelector;
 }
Exemplo n.º 2
0
 public StatsGenerator(IBooleanPercentileSelector booleanPercentileSelector, IStatAdjustmentsSelector statAdjustmentsSelector, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.statAdjustmentsSelector = statAdjustmentsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 3
0
        public ZombieApplicator(
            ICollectionSelector collectionSelector,
            IAdjustmentsSelector adjustmentSelector,
            Dice dice,
            IAttacksGenerator attacksGenerator,
            IFeatsGenerator featsGenerator,
            ISavesGenerator savesGenerator,
            IHitPointsGenerator hitPointsGenerator)
        {
            this.collectionSelector = collectionSelector;
            this.adjustmentSelector = adjustmentSelector;
            this.dice               = dice;
            this.attacksGenerator   = attacksGenerator;
            this.featsGenerator     = featsGenerator;
            this.savesGenerator     = savesGenerator;
            this.hitPointsGenerator = hitPointsGenerator;

            creatureTypes = new[]
            {
                CreatureConstants.Types.Aberration,
                CreatureConstants.Types.Animal,
                CreatureConstants.Types.Dragon,
                CreatureConstants.Types.Elemental,
                CreatureConstants.Types.Fey,
                CreatureConstants.Types.Giant,
                CreatureConstants.Types.Humanoid,
                CreatureConstants.Types.MagicalBeast,
                CreatureConstants.Types.MonstrousHumanoid,
                CreatureConstants.Types.Vermin,
            };
        }
Exemplo n.º 4
0
 public SkillsGenerator(ISkillSelector skillSelector, ICollectionSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector, Dice dice)
 {
     this.skillSelector       = skillSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.dice = dice;
 }
Exemplo n.º 5
0
 public RaceGenerator(IBooleanPercentileSelector booleanPercentileSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     Dice dice)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.dice = dice;
 }
Exemplo n.º 6
0
 public SkillsGenerator(ISkillSelector skillSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.skillSelector = skillSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
Exemplo n.º 7
0
 public CombatGenerator(IArmorClassGenerator armorClassGenerator, IHitPointsGenerator hitPointsGenerator, ISavingThrowsGenerator savingThrowsGenerator,
     IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.armorClassGenerator = armorClassGenerator;
     this.hitPointsGenerator = hitPointsGenerator;
     this.savingThrowsGenerator = savingThrowsGenerator;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
        public void Setup()
        {
            mockCollectionsSelector = new Mock <ICollectionSelector>();
            adjustmentsSelector     = new AdjustmentsSelector(mockCollectionsSelector.Object);
            collections             = new Dictionary <string, IEnumerable <string> >();

            mockCollectionsSelector.Setup(m => m.SelectAllFrom(TableName)).Returns(collections);
            mockCollectionsSelector.Setup(s => s.SelectFrom(TableName, It.IsAny <string>()))
            .Returns((string table, string name) => collections[name]);
        }
Exemplo n.º 9
0
 public MagicGenerator(
     ISpellsGenerator spellsGenerator,
     ICollectionSelector collectionsSelector,
     IAdjustmentsSelector adjustmentsSelector,
     ITypeAndAmountSelector typeAndAmountSelector)
 {
     this.spellsGenerator       = spellsGenerator;
     this.collectionsSelector   = collectionsSelector;
     this.adjustmentsSelector   = adjustmentsSelector;
     this.typeAndAmountSelector = typeAndAmountSelector;
 }
Exemplo n.º 10
0
        public CharacterGenerator(IAlignmentGenerator alignmentGenerator, ICharacterClassGenerator characterClassGenerator, IRaceGenerator raceGenerator,
            IAdjustmentsSelector adjustmentsSelector, IRandomizerVerifier randomizerVerifier, IPercentileSelector percentileSelector,
            IAbilitiesGenerator abilitiesGenerator, ICombatGenerator combatGenerator, IEquipmentGenerator equipmentGenerator,
            IMagicGenerator magicGenerator, Generator generator, ICollectionsSelector collectionsSelector)
        {
            this.alignmentGenerator = alignmentGenerator;
            this.characterClassGenerator = characterClassGenerator;
            this.raceGenerator = raceGenerator;
            this.abilitiesGenerator = abilitiesGenerator;
            this.combatGenerator = combatGenerator;
            this.equipmentGenerator = equipmentGenerator;
            this.generator = generator;

            this.adjustmentsSelector = adjustmentsSelector;
            this.randomizerVerifier = randomizerVerifier;
            this.percentileSelector = percentileSelector;
            this.magicGenerator = magicGenerator;
            this.collectionsSelector = collectionsSelector;
        }
Exemplo n.º 11
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,
            };
        }
Exemplo n.º 12
0
 public LeadershipGenerator(ICharacterGenerator characterGenerator, ILeadershipSelector leadershipSelector, IPercentileSelector percentileSelector,
     IAdjustmentsSelector adjustmentsSelector, ISetLevelRandomizer setLevelRandomizer, ISetAlignmentRandomizer setAlignmentRandomizer,
     IAlignmentRandomizer anyAlignmentRandomizer, IClassNameRandomizer anyPlayerClassNameRandomizer, RaceRandomizer anyBaseRaceRandomizer,
     RaceRandomizer anyMetaraceRandomizer, IStatsRandomizer rawStatsRandomizer, IBooleanPercentileSelector booleanPercentileSelector,
     ICollectionsSelector collectionsSelector, IAlignmentGenerator alignmentGenerator, Generator generator, IClassNameRandomizer anyNPCClassNameRandomizer)
 {
     this.characterGenerator = characterGenerator;
     this.leadershipSelector = leadershipSelector;
     this.percentileSelector = percentileSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.setLevelRandomizer = setLevelRandomizer;
     this.setAlignmentRandomizer = setAlignmentRandomizer;
     this.anyAlignmentRandomizer = anyAlignmentRandomizer;
     this.anyPlayerClassNameRandomizer = anyPlayerClassNameRandomizer;
     this.anyBaseRaceRandomizer = anyBaseRaceRandomizer;
     this.anyMetaraceRandomizer = anyMetaraceRandomizer;
     this.rawStatsRandomizer = rawStatsRandomizer;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.alignmentGenerator = alignmentGenerator;
     this.generator = generator;
     this.anyNPCClassNameRandomizer = anyNPCClassNameRandomizer;
 }
Exemplo n.º 13
0
 public RandomizerVerifier(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 14
0
 public AnyMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
 }
Exemplo n.º 15
0
 public FeatsSelector(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
Exemplo n.º 16
0
 public CharacterClassGenerator(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 17
0
 public ArmorClassGenerator(IBonusSelector bonusSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.bonusSelector       = bonusSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
Exemplo n.º 18
0
 public BaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector adjustmentSelector, Generator generator)
 {
     this.percentileResultSelector = percentileResultSelector;
     this.adjustmentSelector = adjustmentSelector;
     this.generator = generator;
 }
Exemplo n.º 19
0
 public TestBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector)
     : base(percentileResultSelector, levelAdjustmentSelector, new ConfigurableIterationGenerator(2))
 {
 }
 public NonStandardBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 21
0
 public ArmorClassGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
Exemplo n.º 22
0
 public AttacksGenerator(ICollectionSelector collectionSelector, IAdjustmentsSelector adjustmentsSelector, IAttackSelector attackSelector)
 {
     this.collectionSelector  = collectionSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.attackSelector      = attackSelector;
 }
Exemplo n.º 23
0
 public BaseForcableMetarace(IPercentileSelector percentileResultSelector, IAdjustmentsSelector adjustmentsSelector, Generator generator)
 {
     this.percentileResultSelector = percentileResultSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.generator = generator;
 }
Exemplo n.º 24
0
 public HitPointsGenerator(Dice dice, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.dice = dice;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 25
0
 public StatAdjustmentsSelector(IAdjustmentsSelector innerSelector, ICollectionsSelector collectionsSelector)
 {
     this.innerSelector = innerSelector;
     this.collectionsSelector = collectionsSelector;
 }
 public LycanthropeMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
Exemplo n.º 27
0
 public AnimalGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.generator = generator;
 }
Exemplo n.º 28
0
 public LeadershipSelector(IAdjustmentsSelector adjustmentsSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
 }
Exemplo n.º 29
0
 public HitPointsGenerator(Dice dice, IAdjustmentsSelector adjustmentSelector)
 {
     this.dice = dice;
     this.adjustmentSelector = adjustmentSelector;
 }