Пример #1
0
 public void ApplyBonuses(HumanFighter fighter, GodRelationshipManager relationshipManager)
 {
     foreach (DecisionBonus bonus in Bonuses)
     {
         bonus.ApplyBonus(fighter, relationshipManager);
     }
 }
Пример #2
0
        public DecisionManager(GodRelationshipManager godRelationshipManager,
                               IChanceService chanceService = null,
                               IMenuFactory menuFactory     = null,
                               IInput input   = null,
                               IOutput output = null)
        {
            _relationshipManager = godRelationshipManager;
            _chanceService       = chanceService ?? Globals.ChanceService;
            _menuFactory         = menuFactory ?? Globals.MenuFactory;
            _input  = input ?? Globals.Input;
            _output = output ?? Globals.Output;

            _groupingChoicesDictionary = new Dictionary <int, WorldSubRegion>();
        }
Пример #3
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     relationshipManager.UpdateRelationship(fighter, _god, BonusAmount);
 }
Пример #4
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     fighter.AddMagicBonus(_magicStatType, _magicType, BonusAmount, isSecretBonus);
 }
Пример #5
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     fighter.AddPersonalityFlag(_personalityFlag);
 }
Пример #6
0
 public abstract void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false);