PlayerStats
Object for PlayerStats model
Type members
Classlikes
Case class for PlayerStats model
Case class for PlayerStats model
- Value parameters:
- courseInStatsList
the list of course in stats
- totalAnswerPrecision
total % answer precision
- totalAnsweredQuestions
total number of answered questions
- totalAverageTimeAnswer
total average time to answer
- totalCorrectAnswers
total number of question answered correctly
- totalScore
total user score
Value members
Concrete methods
Add a QuizInGame to the PlayerStats of the current game
Add a QuizInGame to the PlayerStats of the current game
- Returns:
an updated PlayerStats with the newly added quiz in game
Calculates total answer precision given two value
Calculates total answer precision given two value
- Returns:
an Int as percentage
Change course in stats list
Change course in stats list
- Returns:
an updated PlayerStats
Change total answered questions
Change total answered questions
- Returns:
an updated PlayerStats
Change total average time to answer
Change total average time to answer
- Returns:
an updated PlayerStats
Change total score in player stats
Change total score in player stats
- Returns:
an updated PlayerStats
Merge two PlayerStats in a new one
Merge two PlayerStats in a new one
- Returns:
an updated PlayerStats
Removes statistics that don't have a correspondent SavedCourse
Removes statistics that don't have a correspondent SavedCourse
- Returns:
an updated PlayerStats
Update course in stats list in player stats
Update course in stats list in player stats
- Returns:
an updated PlayerStats
Update PlayerStats with all the values that can be derived
Update PlayerStats with all the values that can be derived
- Returns:
an updated PlayerStats