LambdaHack-0.2.12: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Common.HighScore

Description

High score table operations.

Synopsis

Documentation

data ScoreTable Source

The list of scores, in decreasing order.

empty :: ScoreTableSource

Empty score table

registerSource

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.

highSlideshowSource

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.