Safe Haskell | None |
---|
High score table operations.
- data ScoreTable
- empty :: ScoreTable
- register :: ScoreTable -> Int -> Time -> Status -> ClockTime -> Int -> Maybe (ScoreTable, Int)
- highSlideshow :: ScoreTable -> Int -> Status -> Slideshow
Documentation
data ScoreTable Source
The list of scores, in decreasing order.
Empty score table
:: ScoreTable | old table |
-> Int | the total score. not halved yet |
-> Time | game time spent |
-> Status | reason of the game interruption |
-> ClockTime | current date |
-> Int | difficulty level |
-> Maybe (ScoreTable, Int) |
Register a new score in a score table.
:: ScoreTable | current score table |
-> Int | position of the current score in the table |
-> Status | reason of the game interruption |
-> Slideshow |
Generate a slideshow with the current and previous scores.