Пример #1
0
 public IntelligenceGenerator(Dice dice, ITreasurePercentileSelector percentileSelector, ICollectionSelector collectionsSelector, IIntelligenceDataSelector intelligenceDataSelector)
 {
     this.dice = dice;
     this.percentileSelector       = percentileSelector;
     this.collectionsSelector      = collectionsSelector;
     this.intelligenceDataSelector = intelligenceDataSelector;
 }
        public void Setup()
        {
            mockInnerSelector       = new Mock <IPercentileSelector>();
            mockReplacementSelector = new Mock <IReplacementSelector>();

            decorator = new PercentileSelectorStringReplacementDecorator(mockInnerSelector.Object, mockReplacementSelector.Object);
        }
Пример #3
0
 public CurseGenerator(Dice dice, ITreasurePercentileSelector percentileSelector, ICollectionSelector collectionsSelector, JustInTimeFactory justInTimeFactory)
 {
     this.dice = dice;
     this.percentileSelector  = percentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.justInTimeFactory   = justInTimeFactory;
 }
Пример #4
0
        public SpecialAbilitiesGenerator(ICollectionSelector collectionsSelector, ITreasurePercentileSelector percentileSelector, ISpecialAbilityDataSelector specialAbilityDataSelector)
        {
            this.collectionsSelector        = collectionsSelector;
            this.percentileSelector         = percentileSelector;
            this.specialAbilityDataSelector = specialAbilityDataSelector;

            damageHelper = new DamageHelper();
        }
Пример #5
0
 public ItemsGenerator(
     ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector,
     JustInTimeFactory justInTimeFactory,
     ITreasurePercentileSelector percentileSelector,
     IRangeDataSelector rangeDataSelector,
     ICollectionSelector collectionSelector)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.justInTimeFactory  = justInTimeFactory;
     this.percentileSelector = percentileSelector;
     this.rangeDataSelector  = rangeDataSelector;
     this.collectionSelector = collectionSelector;
 }
Пример #6
0
 public MagicalArmorGenerator(
     ITreasurePercentileSelector percentileSelector,
     ICollectionSelector collectionsSelector,
     ISpecialAbilitiesGenerator specialAbilitiesGenerator,
     ISpecificGearGenerator specificGearGenerator,
     JustInTimeFactory justInTimeFactory)
 {
     this.percentileSelector        = percentileSelector;
     this.collectionsSelector       = collectionsSelector;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
     this.specificGearGenerator     = specificGearGenerator;
     this.justInTimeFactory         = justInTimeFactory;
 }
Пример #7
0
 public MundaneWeaponGenerator(
     ITreasurePercentileSelector percentileSelector,
     ICollectionSelector collectionsSelector,
     Dice dice,
     IWeaponDataSelector weaponDataSelector,
     IReplacementSelector replacementSelector)
 {
     this.percentileSelector  = percentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.dice = dice;
     this.weaponDataSelector  = weaponDataSelector;
     this.replacementSelector = replacementSelector;
 }
Пример #8
0
 public RodGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector,
                     ICollectionSelector collectionsSelector,
                     IChargesGenerator chargesGenerator,
                     ITreasurePercentileSelector percentileSelector,
                     ISpecialAbilitiesGenerator specialAbilitiesGenerator,
                     JustInTimeFactory justInTimeFactory)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.collectionsSelector             = collectionsSelector;
     this.chargesGenerator          = chargesGenerator;
     this.percentileSelector        = percentileSelector;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
     this.justInTimeFactory         = justInTimeFactory;
 }
Пример #9
0
 public WondrousItemGenerator(
     ITreasurePercentileSelector percentileSelector,
     ICollectionSelector collectionsSelector,
     IChargesGenerator chargesGenerator,
     Dice dice,
     ISpellGenerator spellGenerator,
     ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector)
 {
     this.percentileSelector  = percentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.chargesGenerator    = chargesGenerator;
     this.dice           = dice;
     this.spellGenerator = spellGenerator;
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
 }
Пример #10
0
 public SpecificGearGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector,
                              ICollectionSelector collectionsSelector,
                              IChargesGenerator chargesGenerator,
                              ITreasurePercentileSelector percentileSelector,
                              ISpellGenerator spellGenerator,
                              ISpecialAbilitiesGenerator specialAbilitiesGenerator,
                              JustInTimeFactory justInTimeFactory,
                              IReplacementSelector replacementSelector)
 {
     this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector;
     this.collectionsSelector             = collectionsSelector;
     this.chargesGenerator          = chargesGenerator;
     this.percentileSelector        = percentileSelector;
     this.spellGenerator            = spellGenerator;
     this.specialAbilitiesGenerator = specialAbilitiesGenerator;
     this.justInTimeFactory         = justInTimeFactory;
     this.replacementSelector       = replacementSelector;
 }
Пример #11
0
 public SpecialMaterialGenerator(ICollectionSelector collectionsSelector, ITreasurePercentileSelector percentileSelector)
 {
     this.percentileSelector  = percentileSelector;
     this.collectionsSelector = collectionsSelector;
 }
Пример #12
0
 public WandGenerator(ITreasurePercentileSelector percentileSelector, IChargesGenerator chargesGenerator)
 {
     this.percentileSelector = percentileSelector;
     this.chargesGenerator   = chargesGenerator;
 }
Пример #13
0
 public ChargesGenerator(Dice dice, IRangeDataSelector rangeDataSelector, ITreasurePercentileSelector percentileSelector)
 {
     this.dice = dice;
     this.rangeDataSelector  = rangeDataSelector;
     this.percentileSelector = percentileSelector;
 }
Пример #14
0
 public MundaneArmorGenerator(ITreasurePercentileSelector percentileSelector, ICollectionSelector collectionsSelector, IArmorDataSelector armorDataSelector)
 {
     this.percentileSelector  = percentileSelector;
     this.collectionsSelector = collectionsSelector;
     this.armorDataSelector   = armorDataSelector;
 }
 public TypeAndAmountPercentileSelector(ITreasurePercentileSelector percentileSelector, Dice dice)
 {
     this.percentileSelector = percentileSelector;
     this.dice = dice;
 }
Пример #16
0
 public ToolGenerator(ITreasurePercentileSelector percentileSelector)
 {
     this.percentileSelector = percentileSelector;
 }
Пример #17
0
 public MagicalItemTraitsGenerator(ITreasurePercentileSelector percentileSelector)
 {
     this.percentileSelector = percentileSelector;
 }