예제 #1
0
        public Task <LeaderPipResult> CalculateAverageRulerLeaderPipsAsync(
            double tradition,
            int militarySkill,
            ILeaderPipDistributionStrategy leaderPipDistributionStrategy,
            LeaderPipModifiers leaderPipModifiers = null)
        {
            double effectiveTradition = CalculateRulerEffectiveTradition(tradition, militarySkill);

            return(CalculateAndDistributePips(leaderPipDistributionStrategy, leaderPipModifiers, effectiveTradition));
        }
예제 #2
0
        public Task <LeaderPipResult> CalculateAverageLeaderPipsAsync(
            double tradition,
            LeaderType leaderType,
            ILeaderPipDistributionStrategy leaderPipDistributionStrategy,
            LeaderPipModifiers leaderPipModifiers = null)
        {
            double effectiveTradition = CalculateEffectiveTradition(tradition, leaderType);

            return(CalculateAndDistributePips(leaderPipDistributionStrategy, leaderPipModifiers, effectiveTradition));
        }
예제 #3
0
        private Task <LeaderPipResult> CalculateAndDistributePips(ILeaderPipDistributionStrategy leaderPipDistributionStrategy, LeaderPipModifiers leaderPipModifiers, double effectiveTradition)
        {
            double averagePips = CalculateAveragePips(effectiveTradition);

            return(leaderPipDistributionStrategy.DistributePipsAsync(averagePips, leaderPipModifiers));
        }