コード例 #1
0
 public MundaneArmorGenerator(IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector,
                              IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.percentileSelector        = percentileSelector;
     this.attributesSelector        = attributesSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
コード例 #2
0
 public GoodsGenerator(Dice dice, ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector,
                       ICollectionsSelector attributesSelector)
 {
     this.dice = dice;
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.attributesSelector = attributesSelector;
 }
コード例 #3
0
 public AdditionalFeatsGenerator(ICollectionsSelector collectionsSelector, IFeatsSelector featsSelector, IFeatFocusGenerator featFocusGenerator, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.featsSelector = featsSelector;
     this.featFocusGenerator = featFocusGenerator;
     this.adjustmentsSelector = adjustmentsSelector;
 }
コード例 #4
0
ファイル: StatsGenerator.cs プロジェクト: DnDGen/CharacterGen
 public StatsGenerator(IBooleanPercentileSelector booleanPercentileSelector, IStatAdjustmentsSelector statAdjustmentsSelector, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.statAdjustmentsSelector = statAdjustmentsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #5
0
 public StaffGenerator(IPercentileSelector percentileSelector, IChargesGenerator chargesGenerator, ICollectionsSelector attributesSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator)
 {
     this.percentileSelector        = percentileSelector;
     this.chargesGenerator          = chargesGenerator;
     this.attributesSelector        = attributesSelector;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
 }
コード例 #6
0
 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;
 }
コード例 #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;
 }
コード例 #8
0
 public CurseGenerator(Dice dice, IPercentileSelector percentileSelector, IBooleanPercentileSelector booleanPercentileSelector,
                       ICollectionsSelector collectionsSelector)
 {
     this.dice = dice;
     this.percentileSelector        = percentileSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector       = collectionsSelector;
 }
コード例 #9
0
ファイル: RaceGenerator.cs プロジェクト: DnDGen/CharacterGen
 public RaceGenerator(IBooleanPercentileSelector booleanPercentileSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     Dice dice)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.dice = dice;
 }
コード例 #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;
 }
コード例 #11
0
ファイル: FeatsGenerator.cs プロジェクト: DnDGen/CharacterGen
 public FeatsGenerator(IRacialFeatsGenerator racialFeatsGenerator, IClassFeatsGenerator classFeatsGenerator,
     IAdditionalFeatsGenerator additionalFeatsGenerator, ICollectionsSelector collectionsSelector)
 {
     this.racialFeatsGenerator = racialFeatsGenerator;
     this.classFeatsGenerator = classFeatsGenerator;
     this.additionalFeatsGenerator = additionalFeatsGenerator;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #12
0
 public SkillsGenerator(ISkillSelector skillSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.skillSelector = skillSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
コード例 #13
0
ファイル: ArmorGenerator.cs プロジェクト: DnDGen/CharacterGen
 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;
 }
コード例 #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;
 }
コード例 #15
0
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #22
0
 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;
 }
コード例 #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();
            }
        }
コード例 #24
0
        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);
        }
コード例 #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);
            }
        }
コード例 #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;
        }
コード例 #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;
 }
コード例 #28
0
 public RandomizerVerifier(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #29
0
 public AnimalGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.generator = generator;
 }
コード例 #30
0
 public AdjustmentsSelector(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #31
0
 public ClassFeatsGenerator(IFeatsSelector featsSelector, IFeatFocusGenerator featFocusGenerator, ICollectionsSelector collectionsSelector)
 {
     this.featsSelector = featsSelector;
     this.featFocusGenerator = featFocusGenerator;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #32
0
 public FeatFocusGenerator(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #33
0
 public LanguageGenerator(ILanguageCollectionsSelector languagesSelector, ICollectionsSelector collectionsSelector)
 {
     this.languagesSelector = languagesSelector;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #34
0
 public RangeAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
コード例 #35
0
 public CharacterClassGenerator(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #36
0
 public SetBaseRaceRandomizer(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #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);
        }
コード例 #38
0
 public SpecialAbilityAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
コード例 #39
0
 public AmmunitionGenerator(IPercentileSelector percentileSelector, Dice dice, ICollectionsSelector attributesSelector)
 {
     this.percentileSelector = percentileSelector;
     this.dice = dice;
     this.attributesSelector = attributesSelector;
 }
コード例 #40
0
 public SavingThrowsGenerator(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #41
0
ファイル: FeatsSelector.cs プロジェクト: DnDGen/CharacterGen
 public FeatsSelector(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
コード例 #42
0
 public NonSpellcasterClassNameRandomizer(IPercentileSelector percentileResultSelector, ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #43
0
 public LanguageCollectionsSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
コード例 #44
0
 public AnyNPCClassNameRandomizer(ICollectionsSelector collectionsSelector)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #45
0
 public StatAdjustmentsSelector(IAdjustmentsSelector innerSelector, ICollectionsSelector collectionsSelector)
 {
     this.innerSelector = innerSelector;
     this.collectionsSelector = collectionsSelector;
 }
コード例 #46
0
 public NonStandardBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #47
0
 public LycanthropeMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector,
     ICollectionsSelector collectionsSelector, Generator generator)
     : base(percentileResultSelector, levelAdjustmentSelector, generator)
 {
     this.collectionsSelector = collectionsSelector;
 }
コード例 #48
0
 public ArmorClassGenerator(ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector)
 {
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
 }
コード例 #49
0
 public IntelligenceAttributesSelector(ICollectionsSelector innerSelector)
 {
     this.innerSelector = innerSelector;
 }
コード例 #50
0
 public HitPointsGenerator(Dice dice, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.dice = dice;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }