Exemplo n.º 1
0
 public void ApplyBonuses(HumanFighter fighter, GodRelationshipManager relationshipManager)
 {
     foreach (DecisionBonus bonus in Bonuses)
     {
         bonus.ApplyBonus(fighter, relationshipManager);
     }
 }
Exemplo n.º 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>();
        }
Exemplo n.º 3
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     relationshipManager.UpdateRelationship(fighter, _god, BonusAmount);
 }
Exemplo n.º 4
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     fighter.AddMagicBonus(_magicStatType, _magicType, BonusAmount, isSecretBonus);
 }
Exemplo n.º 5
0
 public override void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false)
 {
     fighter.AddPersonalityFlag(_personalityFlag);
 }
Exemplo n.º 6
0
 public abstract void ApplyBonus(HumanFighter fighter, GodRelationshipManager relationshipManager, bool isSecretBonus = false);