public MundaneArmorGenerator(IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector,
                              IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.percentileSelector        = percentileSelector;
     this.attributesSelector        = attributesSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
Ejemplo n.º 2
0
 public GoodsGenerator(Dice dice, ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector,
                       ICollectionsSelector attributesSelector)
 {
     this.dice = dice;
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.attributesSelector = attributesSelector;
 }
 public AdditionalFeatsGenerator(ICollectionsSelector collectionsSelector, IFeatsSelector featsSelector, IFeatFocusGenerator featFocusGenerator, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.featsSelector = featsSelector;
     this.featFocusGenerator = featFocusGenerator;
     this.adjustmentsSelector = adjustmentsSelector;
 }
Ejemplo n.º 4
0
 public StatsGenerator(IBooleanPercentileSelector booleanPercentileSelector, IStatAdjustmentsSelector statAdjustmentsSelector, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.statAdjustmentsSelector = statAdjustmentsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 5
0
 public StaffGenerator(IPercentileSelector percentileSelector, IChargesGenerator chargesGenerator, ICollectionsSelector attributesSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator)
 {
     this.percentileSelector        = percentileSelector;
     this.chargesGenerator          = chargesGenerator;
     this.attributesSelector        = attributesSelector;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
 }
 public MagicalArmorGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IPercentileSelector percentileSelector, ICollectionsSelector collectionsSelector, ISpecialAbilitiesGenerator specialAbilitiesSelector, ISpecificGearGenerator specificGearGenerator)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.percentileSelector       = percentileSelector;
     this.collectionsSelector      = collectionsSelector;
     this.specialAbilitiesSelector = specialAbilitiesSelector;
     this.specificGearGenerator    = specificGearGenerator;
 }
Ejemplo n.º 7
0
 public RingGenerator(IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector, ISpellGenerator spellGenerator, IChargesGenerator chargesGenerator, ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector)
 {
     this.percentileSelector = percentileSelector;
     this.attributesSelector = attributesSelector;
     this.spellGenerator     = spellGenerator;
     this.chargesGenerator   = chargesGenerator;
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
 }
Ejemplo n.º 8
0
 public CurseGenerator(Dice dice, IPercentileSelector percentileSelector, IBooleanPercentileSelector booleanPercentileSelector,
                       ICollectionsSelector collectionsSelector)
 {
     this.dice = dice;
     this.percentileSelector        = percentileSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector       = collectionsSelector;
 }
Ejemplo n.º 9
0
 public RaceGenerator(IBooleanPercentileSelector booleanPercentileSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     Dice dice)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.dice = dice;
 }
Ejemplo n.º 10
0
 public MundaneWeaponGenerator(IPercentileSelector percentileSelector, IAmmunitionGenerator ammunitionGenerator, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector, Dice dice)
 {
     this.percentileSelector        = percentileSelector;
     this.ammunitionGenerator       = ammunitionGenerator;
     this.collectionsSelector       = collectionsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.dice = dice;
 }
Ejemplo n.º 11
0
 public FeatsGenerator(IRacialFeatsGenerator racialFeatsGenerator, IClassFeatsGenerator classFeatsGenerator,
     IAdditionalFeatsGenerator additionalFeatsGenerator, ICollectionsSelector collectionsSelector)
 {
     this.racialFeatsGenerator = racialFeatsGenerator;
     this.classFeatsGenerator = classFeatsGenerator;
     this.additionalFeatsGenerator = additionalFeatsGenerator;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 12
0
 public SkillsGenerator(ISkillSelector skillSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.skillSelector = skillSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
Ejemplo n.º 13
0
 public ArmorGenerator(ICollectionsSelector collectionsSelector, IPercentileSelector percentileSelector,
     MundaneItemGenerator mundaneArmorGenerator, MagicalItemGenerator magicalArmorGenerator, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.percentileSelector = percentileSelector;
     this.mundaneArmorGenerator = mundaneArmorGenerator;
     this.magicalArmorGenerator = magicalArmorGenerator;
     this.generator = generator;
 }
Ejemplo n.º 14
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 SpecialAbilitiesGenerator(ICollectionsSelector attributesSelector, IPercentileSelector percentileSelector, ISpecialAbilityAttributesSelector specialAbilityAttributesSelector,
                                  IBooleanPercentileSelector booleanPercentileSelector, Dice dice)
 {
     this.attributesSelector = attributesSelector;
     this.percentileSelector = percentileSelector;
     this.specialAbilityAttributesSelector = specialAbilityAttributesSelector;
     this.booleanPercentileSelector        = booleanPercentileSelector;
     this.dice = dice;
 }
Ejemplo n.º 16
0
 public AbilitiesGenerator(IStatsGenerator statsGenerator, ILanguageGenerator languageGenerator, ISkillsGenerator skillsGenerator,
     IFeatsGenerator featsGenerator, ICollectionsSelector collectionsSelector)
 {
     this.statsGenerator = statsGenerator;
     this.languageGenerator = languageGenerator;
     this.skillsGenerator = skillsGenerator;
     this.featsGenerator = featsGenerator;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 17
0
 public WondrousItemGenerator(IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector, IChargesGenerator chargesGenerator, Dice dice, ISpellGenerator spellGenerator, ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector)
 {
     this.percentileSelector = percentileSelector;
     this.attributesSelector = attributesSelector;
     this.chargesGenerator   = chargesGenerator;
     this.dice           = dice;
     this.spellGenerator = spellGenerator;
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
 }
Ejemplo n.º 18
0
 public RodGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, ICollectionsSelector attributesSelector,
                     IChargesGenerator chargesGenerator, IBooleanPercentileSelector booleanPercentileSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.attributesSelector        = attributesSelector;
     this.chargesGenerator          = chargesGenerator;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
 }
Ejemplo n.º 19
0
 public IntelligenceGenerator(Dice dice, IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector,
                              IIntelligenceAttributesSelector intelligenceAttributesSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.dice = dice;
     this.percentileSelector             = percentileSelector;
     this.attributesSelector             = attributesSelector;
     this.intelligenceAttributesSelector = intelligenceAttributesSelector;
     this.booleanPercentileSelector      = booleanPercentileSelector;
 }
Ejemplo n.º 20
0
 public EquipmentGenerator(ICollectionsSelector collectionsSelector, IWeaponGenerator weaponGenerator,
     ITreasureGenerator treasureGenerator, IArmorGenerator armorGenerator, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.armorGenerator = armorGenerator;
     this.weaponGenerator = weaponGenerator;
     this.treasureGenerator = treasureGenerator;
     this.generator = generator;
 }
Ejemplo n.º 21
0
 public SpecificGearGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, ICollectionsSelector collectionsSelector, IChargesGenerator chargesGenerator, IPercentileSelector percentileSelector, ISpellGenerator spellGenerator, IBooleanPercentileSelector booleanPercentileSelector, Dice dice, ISpecialAbilitiesGenerator specialAbilitiesGenerator)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.collectionsSelector             = collectionsSelector;
     this.chargesGenerator          = chargesGenerator;
     this.percentileSelector        = percentileSelector;
     this.spellGenerator            = spellGenerator;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.dice = dice;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
 }
 public MagicalWeaponGenerator(ICollectionsSelector collectionsSelector, IPercentileSelector percentileSelector, IAmmunitionGenerator ammunitionGenerator, ISpecialAbilitiesGenerator specialAbilitiesGenerator, ISpecificGearGenerator specificGearGenerator, IBooleanPercentileSelector booleanPercentileSelector, ISpellGenerator spellGenerator, Dice dice)
 {
     this.collectionsSelector       = collectionsSelector;
     this.percentileSelector        = percentileSelector;
     this.ammunitionGenerator       = ammunitionGenerator;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
     this.specificGearGenerator     = specificGearGenerator;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.spellGenerator            = spellGenerator;
     this.dice = dice;
 }
Ejemplo n.º 23
0
        public ReplacePercentileSelectorDecorator(IPercentileSelector innerSelector, ICollectionsSelector attributesSelector)
        {
            this.innerSelector = innerSelector;

            var replaceTargets = attributesSelector.SelectFrom(TableNameConstants.Collections.Set.ReplacementStrings, TableNameConstants.Collections.Set.ReplacementStrings);

            replacementTables = new Dictionary <string, string>();

            foreach (var replaceTarget in replaceTargets)
            {
                replacementTables[replaceTarget] = attributesSelector.SelectFrom(TableNameConstants.Collections.Set.ReplacementStrings, replaceTarget).Single();
            }
        }
        public void Setup()
        {
            expected = new[] { "type 1", "type 2" };
            var table = new Dictionary <string, IEnumerable <string> >();

            table.Add("name", expected);
            table.Add("other name", Enumerable.Empty <string>());

            mockAttributesMapper = new Mock <ICollectionsMapper>();
            mockAttributesMapper.Setup(p => p.Map("table name")).Returns(table);
            mockAttributesMapper.Setup(p => p.Map("other table name")).Returns(new Dictionary <string, IEnumerable <string> >());

            attributesSelector = new CollectionsSelector(mockAttributesMapper.Object);
        }
Ejemplo n.º 25
0
        public SpecialMaterialGenerator(Dice dice, ICollectionsSelector attributesSelector, IBooleanPercentileSelector booleanPercentileSelector)
        {
            this.dice = dice;
            this.booleanPercentileSelector = booleanPercentileSelector;

            specialMaterialAttributes = new Dictionary <string, IEnumerable <string> >();

            var materials = TraitConstants.SpecialMaterials.All();

            foreach (var material in materials)
            {
                var attributeRequirements = attributesSelector.SelectFrom(TableNameConstants.Collections.Set.SpecialMaterials, material);
                specialMaterialAttributes.Add(material, attributeRequirements);
            }
        }
Ejemplo n.º 26
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;
        }
Ejemplo n.º 27
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;
 }
Ejemplo n.º 28
0
 public RandomizerVerifier(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 29
0
 public AnimalGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.generator = generator;
 }
Ejemplo n.º 30
0
 public AdjustmentsSelector(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 31
0
 public ClassFeatsGenerator(IFeatsSelector featsSelector, IFeatFocusGenerator featFocusGenerator, ICollectionsSelector collectionsSelector)
 {
     this.featsSelector = featsSelector;
     this.featFocusGenerator = featFocusGenerator;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 32
0
 public FeatFocusGenerator(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 33
0
 public LanguageGenerator(ILanguageCollectionsSelector languagesSelector, ICollectionsSelector collectionsSelector)
 {
     this.languagesSelector = languagesSelector;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 34
0
 public RangeAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
Ejemplo n.º 35
0
 public CharacterClassGenerator(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 36
0
 public SetBaseRaceRandomizer(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 37
0
        public void Setup()
        {
            mockMapper = new Mock<CollectionsMapper>();
            mockDice = new Mock<Dice>();
            selector = new CollectionsSelector(mockMapper.Object, mockDice.Object);
            allCollections = new Dictionary<string, IEnumerable<string>>();

            mockMapper.Setup(m => m.Map(TableName)).Returns(allCollections);
        }
Ejemplo n.º 38
0
 public SpecialAbilityAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
 public AmmunitionGenerator(IPercentileSelector percentileSelector, Dice dice, ICollectionsSelector attributesSelector)
 {
     this.percentileSelector = percentileSelector;
     this.dice = dice;
     this.attributesSelector = attributesSelector;
 }
Ejemplo n.º 40
0
 public SavingThrowsGenerator(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 41
0
 public FeatsSelector(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
 public NonSpellcasterClassNameRandomizer(IPercentileSelector percentileResultSelector, ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
 public LanguageCollectionsSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
 public AnyNPCClassNameRandomizer(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 45
0
 public StatAdjustmentsSelector(IAdjustmentsSelector innerSelector, ICollectionsSelector collectionsSelector)
 {
     this.innerSelector = innerSelector;
     this.collectionsSelector = collectionsSelector;
 }
 public NonStandardBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
 public LycanthropeMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
Ejemplo n.º 48
0
 public ArmorClassGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
 public IntelligenceAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
Ejemplo n.º 50
0
 public HitPointsGenerator(Dice dice, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.dice = dice;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }