Beispiel #1
0
 public StatsGenerator(IBooleanPercentileSelector booleanPercentileSelector, IStatAdjustmentsSelector statAdjustmentsSelector, IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.statAdjustmentsSelector = statAdjustmentsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.collectionsSelector = collectionsSelector;
 }
Beispiel #2
0
 public RaceGenerator(IBooleanPercentileSelector booleanPercentileSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     Dice dice)
 {
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.dice = dice;
 }
Beispiel #3
0
 public SkillsGenerator(ISkillSelector skillSelector, ICollectionsSelector collectionsSelector, IAdjustmentsSelector adjustmentsSelector,
     IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.skillSelector = skillSelector;
     this.collectionsSelector = collectionsSelector;
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }
Beispiel #4
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;
 }
Beispiel #5
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);
            }
        }
        public EncounterTreasureGenerator(ICoinGenerator coinGenerator, IGoodsGenerator goodsGenerator, IItemsGenerator itemsGenerator, IAdjustmentSelector adjustmentSelector,
            IBooleanPercentileSelector booleanPercentileSelector, ICollectionSelector collectionSelector, IMagicalItemGeneratorRuntimeFactory magicalItemGeneratorRuntimeFactory, IMundaneItemGeneratorRuntimeFactory mundaneItemGeneratorRuntimeFactory)
        {
            this.coinGenerator = coinGenerator;
            this.goodsGenerator = goodsGenerator;
            this.itemsGenerator = itemsGenerator;
            this.adjustmentSelector = adjustmentSelector;
            this.booleanPercentileSelector = booleanPercentileSelector;
            this.collectionSelector = collectionSelector;
            this.magicalItemGeneratorRuntimeFactory = magicalItemGeneratorRuntimeFactory;
            this.mundaneItemGeneratorRuntimeFactory = mundaneItemGeneratorRuntimeFactory;

            subTypeRegex = new Regex(RegexConstants.DescriptionPattern);
            itemTypeRegex = new Regex(RegexConstants.ItemTypePattern);
            itemBonusRegex = new Regex(RegexConstants.ItemBonusPattern);
            specialAbilityRegex = new Regex(RegexConstants.SpecialAbilitiesPattern);
            traitRegex = new Regex(RegexConstants.TraitPattern);
        }
 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 CharacterClassGenerator(IAdjustmentsSelector adjustmentsSelector, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.adjustmentsSelector = adjustmentsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.collectionsSelector = collectionsSelector;
 }
Beispiel #9
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;
 }
Beispiel #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;
 }
 public void Setup()
 {
     mockInnerSelector = new Mock<IPercentileSelector>();
     selector = new BooleanPercentileSelector(mockInnerSelector.Object);
 }
Beispiel #12
0
 public void Setup()
 {
     mockInnerSelector = new Mock <IPercentileSelector>();
     selector          = new BooleanPercentileSelector(mockInnerSelector.Object);
 }
 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 void Setup()
 {
     mockDice = new Mock<Dice>();
     booleanPercentileSelector = new BooleanPercentileSelector(mockDice.Object);
 }
Beispiel #15
0
 public ChargesGenerator(Dice dice, IRangeAttributesSelector rangeAttributesSelector, IBooleanPercentileSelector booleanPercentileSelector)
 {
     this.dice = dice;
     this.rangeAttributesSelector   = rangeAttributesSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
 }