C# 클래스 BusinessLogic.Logic.Points.PointsCalculator

상속: IPointsCalculator
파일 보기 프로젝트 열기: NemeStats/NemeStats 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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