public RoomExitGenerator(IAreaPercentileSelector areaPercentileSelector, AreaGenerator hallGenerator, AreaGenerator doorGenerator, IPercentileSelector percentileSelector) { this.areaPercentileSelector = areaPercentileSelector; this.hallGenerator = hallGenerator; this.doorGenerator = doorGenerator; this.percentileSelector = percentileSelector; }
public MundaneArmorGenerator(IPercentileSelector percentileSelector, ICollectionsSelector attributesSelector, IBooleanPercentileSelector booleanPercentileSelector) { this.percentileSelector = percentileSelector; this.attributesSelector = attributesSelector; this.booleanPercentileSelector = booleanPercentileSelector; }
public CaveGenerator(IAreaPercentileSelector areaPercentileSelector, PoolGenerator poolGenerator, IPercentileSelector percentileSelector, IEncounterGenerator encounterGenerator) { this.areaPercentileSelector = areaPercentileSelector; this.poolGenerator = poolGenerator; this.percentileSelector = percentileSelector; this.encounterGenerator = encounterGenerator; }
public SpecialAreaGenerator(IAreaPercentileSelector areaPercentileSelector, IPercentileSelector percentileSelector, PoolGenerator poolGenerator, AreaGenerator caveGenerator) { this.areaPercentileSelector = areaPercentileSelector; this.percentileSelector = percentileSelector; this.poolGenerator = poolGenerator; this.caveGenerator = caveGenerator; }
public StaffGenerator(IPercentileSelector percentileSelector, IChargesGenerator chargesGenerator, ICollectionsSelector attributesSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator) { this.percentileSelector = percentileSelector; this.chargesGenerator = chargesGenerator; this.attributesSelector = attributesSelector; this.specialAbilitiesGenerator = specialAbilitiesGenerator; }
public PercentileSelectorStringReplacementDecorator( IPercentileSelector innerSelector, IReplacementSelector replacementSelector) { this.innerSelector = innerSelector; this.replacementSelector = replacementSelector; }
public CurseGenerator(Dice dice, IPercentileSelector percentileSelector, IBooleanPercentileSelector booleanPercentileSelector, ICollectionsSelector collectionsSelector) { this.dice = dice; this.percentileSelector = percentileSelector; this.booleanPercentileSelector = booleanPercentileSelector; this.collectionsSelector = collectionsSelector; }
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; }
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; }
public ItemsGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IMundaneItemGeneratorRuntimeFactory mundaneItemGeneratorFactory, IPercentileSelector percentileSelector, IMagicalItemGeneratorRuntimeFactory magicalItemGeneratorFactory, IRangeAttributesSelector rangeAttributesSelector) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.mundaneItemGeneratorFactory = mundaneItemGeneratorFactory; this.percentileSelector = percentileSelector; this.magicalItemGeneratorFactory = magicalItemGeneratorFactory; this.rangeAttributesSelector = rangeAttributesSelector; }
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; }
public DungeonGenerator(IAreaPercentileSelector areaPercentileSelector, IAreaGeneratorFactory areaGeneratorFactory, IEncounterGenerator encounterGenerator, ITrapGenerator trapGenerator, IPercentileSelector percentileSelector, AreaGenerator hallGenerator) { this.areaGeneratorFactory = areaGeneratorFactory; this.areaPercentileSelector = areaPercentileSelector; this.encounterGenerator = encounterGenerator; this.trapGenerator = trapGenerator; this.percentileSelector = percentileSelector; this.hallGenerator = hallGenerator; }
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; }
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; }
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; }
public void Setup() { table = new Dictionary <int, string>(); mockPercentileMapper = new Mock <IPercentileMapper>(); mockDice = new Mock <Dice>(); percentileSelector = new PercentileSelector(mockPercentileMapper.Object, mockDice.Object); mockPercentileMapper.Setup(p => p.Map(tableName)).Returns(table); }
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; }
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; }
public EquipmentGenerator(ICollectionSelector collectionSelector, IItemsGenerator itemGenerator, IPercentileSelector percentileSelector, IItemSelector itemSelector, JustInTimeFactory justInTimeFactory) { this.collectionSelector = collectionSelector; this.itemGenerator = itemGenerator; this.percentileSelector = percentileSelector; this.itemSelector = itemSelector; this.justInTimeFactory = justInTimeFactory; }
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() { mockInnerSelector = new Mock <IPercentileSelector>(); mockAttributesSelector = new Mock <ICollectionsSelector>(); var replacementStrings = new[] { "FIRST", "SECOND" }; mockAttributesSelector.Setup(s => s.SelectFrom(TableNameConstants.Collections.Set.ReplacementStrings, TableNameConstants.Collections.Set.ReplacementStrings)) .Returns(replacementStrings); mockAttributesSelector.Setup(s => s.SelectFrom(TableNameConstants.Collections.Set.ReplacementStrings, "FIRST")).Returns(new[] { "first table" }); mockAttributesSelector.Setup(s => s.SelectFrom(TableNameConstants.Collections.Set.ReplacementStrings, "SECOND")).Returns(new[] { "second table" }); decorator = new ReplacePercentileSelectorDecorator(mockInnerSelector.Object, mockAttributesSelector.Object); }
public void Setup() { table = new Dictionary<int, string>(); for (var i = 1; i <= 5; i++) table.Add(i, "content"); for (var i = 6; i <= 10; i++) table.Add(i, i.ToString()); mockPercentileMapper = new Mock<PercentileMapper>(); mockPercentileMapper.Setup(p => p.Map(tableName)).Returns(table); mockDice = new Mock<Dice>(); mockDice.Setup(d => d.Roll(1).d(100).AsSum()).Returns(1); percentileSelector = new PercentileSelector(mockPercentileMapper.Object, mockDice.Object); }
public void Setup() { mockPercentileMapper = new Mock<PercentileMapper>(); mockDice = new Mock<Dice>(); selector = new PercentileSelector(mockPercentileMapper.Object, mockDice.Object); table = new Dictionary<int, string>(); for (var i = 1; i <= 5; i++) table.Add(i, "content"); for (var i = 6; i <= 10; i++) table.Add(i, i.ToString()); mockPercentileMapper.Setup(p => p.Map(tableName)).Returns(table); mockDice.Setup(d => d.ReplaceExpressionWithTotal(It.IsAny<string>(), false)).Returns((string s) => s); }
public EncounterGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IRollSelector rollSelector, IPercentileSelector percentileSelector, ICollectionSelector collectionSelector, Dice dice, IEncounterCharacterGenerator encounterCharacterGenerator, IEncounterTreasureGenerator encounterTreasureGenerator, IFilterVerifier filterVerifier, IEncounterCollectionSelector creatureCollectionSelector) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.rollSelector = rollSelector; this.percentileSelector = percentileSelector; this.collectionSelector = collectionSelector; this.dice = dice; this.encounterTreasureGenerator = encounterTreasureGenerator; this.encounterCharacterGenerator = encounterCharacterGenerator; this.filterVerifier = filterVerifier; this.creatureCollectionSelector = creatureCollectionSelector; challengeRatingRegex = new Regex(RegexConstants.ChallengeRatingPattern); subTypeRegex = new Regex(RegexConstants.DescriptionPattern); }
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; }
public void Setup() { table = new Dictionary <int, string>(); for (var i = 1; i <= 5; i++) { table.Add(i, "content"); } for (var i = 6; i <= 10; i++) { table.Add(i, i.ToString()); } mockPercentileMapper = new Mock <PercentileMapper>(); mockPercentileMapper.Setup(p => p.Map(tableName)).Returns(table); mockDice = new Mock <Dice>(); mockDice.Setup(d => d.Roll(1).d(100).AsSum <int>()).Returns(1); percentileSelector = new PercentileSelector(mockPercentileMapper.Object, mockDice.Object); }
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; }
public NonStandardBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector, ICollectionsSelector collectionsSelector, Generator generator) : base(percentileResultSelector, levelAdjustmentSelector, generator) { this.collectionsSelector = collectionsSelector; }
public TypeAndAmountPercentileSelector(IPercentileSelector percentileSelector, Dice dice) { this.percentileSelector = percentileSelector; this.dice = dice; }
public ToolGenerator(IPercentileSelector percentileSelector) { this.percentileSelector = percentileSelector; }
public MagicalItemTraitsGenerator(IPercentileSelector percentileSelector) { this.percentileSelector = percentileSelector; }
public WandGenerator(IPercentileSelector percentileSelector, IChargesGenerator chargesGenerator) { this.percentileSelector = percentileSelector; this.chargesGenerator = chargesGenerator; }
public PotionGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IPercentileSelector percentileSelector) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.percentileSelector = percentileSelector; }
public AnyMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector, Generator generator) : base(percentileResultSelector, levelAdjustmentSelector, generator) { }
public BaseForcableMetarace(IPercentileSelector percentileResultSelector, IAdjustmentsSelector adjustmentsSelector, Generator generator) { this.percentileResultSelector = percentileResultSelector; this.adjustmentsSelector = adjustmentsSelector; this.generator = generator; }
public DomainContentsGenerator(IAreaPercentileSelector areaPercentileSelector, IPercentileSelector percentileSelector, ITreasureGenerator treasureGenerator) { this.areaPercentileSelector = areaPercentileSelector; this.percentileSelector = percentileSelector; this.treasureGenerator = treasureGenerator; }
public SidePassageGenerator(IPercentileSelector percentileSelector, AreaGenerator hallGenerator) { this.percentileSelector = percentileSelector; this.hallGenerator = hallGenerator; }
public BooleanPercentileSelector(IPercentileSelector innerSelector) { this.innerSelector = innerSelector; }
public AdvancementSelector(ITypeAndAmountSelector typeAndAmountSelector, IPercentileSelector percentileSelector, ICollectionSelector collectionSelector) { this.typeAndAmountSelector = typeAndAmountSelector; this.percentileSelector = percentileSelector; this.collectionSelector = collectionSelector; }
public ChaoticAlignmentRandomizer(IPercentileSelector innerSelector, Generator generator) : base(innerSelector, generator) { }
public TypeAndAmountPercentileSelector(IPercentileSelector innerSelector) { this.innerSelector = innerSelector; }
public BaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector adjustmentSelector, Generator generator) { this.percentileResultSelector = percentileResultSelector; this.adjustmentSelector = adjustmentSelector; this.generator = generator; }
public TurnGenerator(IPercentileSelector percentileSelector) { this.percentileSelector = percentileSelector; }
public AreaPercentileSelector(IPercentileSelector innerSelector, Dice dice) { this.innerSelector = innerSelector; this.dice = dice; }
public HallGenerator(IAreaPercentileSelector areaPercentileSelector, IPercentileSelector percentileSelector, Dice dice) { this.areaPercentileSelector = areaPercentileSelector; this.percentileSelector = percentileSelector; this.dice = dice; }
public TestBaseRaceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector) : base(percentileResultSelector, levelAdjustmentSelector, new ConfigurableIterationGenerator(2)) { }
public AmmunitionGenerator(IPercentileSelector percentileSelector, Dice dice, ICollectionsSelector attributesSelector) { this.percentileSelector = percentileSelector; this.dice = dice; this.attributesSelector = attributesSelector; }
public void Setup() { percentileSelector = GetNewInstanceOf <IPercentileSelector>(); }
public NonSpellcasterClassNameRandomizer(IPercentileSelector percentileResultSelector, ICollectionsSelector collectionsSelector, Generator generator) : base(percentileResultSelector, generator) { this.collectionsSelector = collectionsSelector; }
public LycanthropeMetaraceRandomizer(IPercentileSelector percentileResultSelector, IAdjustmentsSelector levelAdjustmentSelector, ICollectionsSelector collectionsSelector, Generator generator) : base(percentileResultSelector, levelAdjustmentSelector, generator) { this.collectionsSelector = collectionsSelector; }
public DomainPoolGenerator(IPercentileSelector percentileSelector, IEncounterGenerator encounterGenerator, ITreasureGenerator treasureGenerator) { this.percentileSelector = percentileSelector; this.encounterGenerator = encounterGenerator; this.treasureGenerator = treasureGenerator; }
public void Setup() { typeAndAmountPercentileSelector = GetNewInstanceOf <ITypeAndAmountPercentileSelector>(); replacementSelector = GetNewInstanceOf <IReplacementSelector>(); percentileSelector = GetNewInstanceOf <IPercentileSelector>(); }
public BaseClassNameRandomizer(IPercentileSelector percentileResultSelector, Generator generator) { this.percentileResultSelector = percentileResultSelector; this.generator = generator; }
public TestClassRandomizer(IPercentileSelector percentileResultSelector, Generator generator) : base(percentileResultSelector, generator) { }
public NeutralAlignmentRandomizer(IPercentileSelector innerSelector, Generator generator) : base(innerSelector, generator) { }
public BaseAlignmentRandomizer(IPercentileSelector percentileResultSelector, Generator generator) { this.percentileResultSelector = percentileResultSelector; this.generator = generator; }