C# Класс BusinessLogic.Logic.Points.PointsCalculator

Наследование: IPointsCalculator
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
FIBONACCI_N_PLUS_2 int>.Dictionary
PERCENTAGE_BONUS_PER_AVERAGE_GAME_DURATION_TIER int

Открытые методы

Метод Описание
CalculatePoints ( IList playerRanks, BoardGameGeekGameDefinition bggGameDefinition ) : PointsScorecard>.Dictionary
PointsCalculator ( IWeightBonusCalculator weightBonusCalculator, IGameDurationBonusCalculator gameDurationBonusCalculator ) : System

Приватные методы

Метод Описание
AwardBasePoints ( IList playerRanks ) : PointsScorecard>.Dictionary
EveryoneLost ( IList playerRanks ) : bool
FibonacciSum ( int endIndex ) : decimal
FibonacciSum ( int fibonacciStartIndex, int finoacciEndIndex ) : decimal
GiveEveryoneNormalPoints ( IList playerRanks, PointsScorecard>.Dictionary playerToPoints ) : void
GiveEveryoneTwoPoints ( IList playerRanks, PointsScorecard>.Dictionary playerToPoints ) : void
RoundUpIfNonNegligible ( decimal valueToRound ) : int
ValidatePlayerRanks ( IList playerRanks ) : void

Описание методов

CalculatePoints() публичный Метод

public CalculatePoints ( IList playerRanks, BoardGameGeekGameDefinition bggGameDefinition ) : PointsScorecard>.Dictionary
playerRanks IList
bggGameDefinition BoardGameGeekGameDefinition
Результат PointsScorecard>.Dictionary

PointsCalculator() публичный Метод

public PointsCalculator ( IWeightBonusCalculator weightBonusCalculator, IGameDurationBonusCalculator gameDurationBonusCalculator ) : System
weightBonusCalculator IWeightBonusCalculator
gameDurationBonusCalculator IGameDurationBonusCalculator
Результат System

Описание свойств

FIBONACCI_N_PLUS_2 публичное статическое свойство

public static Dictionary FIBONACCI_N_PLUS_2
Результат int>.Dictionary

PERCENTAGE_BONUS_PER_AVERAGE_GAME_DURATION_TIER публичное свойство

public int PERCENTAGE_BONUS_PER_AVERAGE_GAME_DURATION_TIER
Результат int