C# Class gbrainy.Core.Main.Score

Show file Open project: GNOME/gbrainy

Public Methods

Method Description
GameExpectedTime ( GameTypes type, GameDifficulty difficulty ) : int
GameScore ( bool correct_answer, double seconds, int expected_time, bool tip_used ) : int
SessionUpdateHistoryScore ( GameSessionHistoryExtended &history, GameTypes type, GameDifficulty difficulty, int game_score ) : void

Private Methods

Method Description
SessionScoreFormula ( GameSessionHistoryExtended &history, GameTypes type, GameDifficulty difficulty ) : int

Method Details

GameExpectedTime() public static method

public static GameExpectedTime ( GameTypes type, GameDifficulty difficulty ) : int
type GameTypes
difficulty GameDifficulty
return int

GameScore() public static method

public static GameScore ( bool correct_answer, double seconds, int expected_time, bool tip_used ) : int
correct_answer bool
seconds double
expected_time int
tip_used bool
return int

SessionUpdateHistoryScore() public static method

public static SessionUpdateHistoryScore ( GameSessionHistoryExtended &history, GameTypes type, GameDifficulty difficulty, int game_score ) : void
history GameSessionHistoryExtended
type GameTypes
difficulty GameDifficulty
game_score int
return void