| Safe Haskell | None |
|---|
Game.LambdaHack.Common.HighScore
Description
High score table operations.
- data ScoreTable
- empty :: ScoreTable
- register :: ScoreTable -> Int -> Time -> Status -> ClockTime -> Maybe (ScoreTable, Int)
- slideshow :: ScoreTable -> Int -> Status -> Slideshow
Documentation
data ScoreTable
The list of scores, in decreasing order.
Instances
| Eq ScoreTable | |
| Show ScoreTable | |
| Binary ScoreTable |
empty :: ScoreTable
Empty score table
Arguments
| :: ScoreTable | old table |
| -> Int | the total score. not halved yet |
| -> Time | game time spent |
| -> Status | reason of the game interruption |
| -> ClockTime | current date |
| -> Maybe (ScoreTable, Int) |
Register a new score in a score table.
Arguments
| :: ScoreTable | current score table |
| -> Int | position of the current high score in the table |
| -> Status | reason of the game interruption |
| -> Slideshow |
Generate a slideshow with the current and previous scores.