| Safe Haskell | None |
|---|
Game.LambdaHack.Common.HighScore
Description
High score table operations.
- data ScoreTable
- empty :: ScoreTable
- register :: ScoreTable -> Int -> Time -> Status -> ClockTime -> Int -> Maybe (ScoreTable, Int)
- highSlideshow :: ScoreTable -> Int -> Status -> Slideshow
Documentation
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 |
| -> Int | difficulty level |
| -> Maybe (ScoreTable, Int) |
Register a new score in a score table.
Arguments
| :: 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.