UpdateScore() public method

public UpdateScore ( GameTypes type, GameDifficulty difficulty, int game_score ) : void
type GameTypes
difficulty GameDifficulty
game_score int
return void
Ejemplo n.º 1
0
        public bool ScoreGame(string answer)
        {
            int game_score;

            if (CurrentGame == null || Status == SessionStatus.Answered)
            {
                return(false);
            }

            game_score = CurrentGame.Score(answer);
            history.UpdateScore(CurrentGame.Type, Difficulty, game_score);

            Status = SessionStatus.Answered;
            return(game_score > 0 ? true : false);
        }