TScoreList Class

List of scores registered for a game

Unit: Gamolf.RTL.Scores
TObjectList<T>
  Gamolf.RTL.Scores.TScoreList
type TScoreList = TScoreList<T>

The TScoreList type exposes the following members.

Show:
 NameDescription
Create

Overloaded. Scores list constructor

Top
Show:
 NameDescription
Add

Overloaded. Add a new score to the list

Add

Overloaded. Add a new score to the list

GetOldScoreFileName

Return old default file name (from u_scores.pas) for compatibility reasons

GetScoreFileName

Return default file name for the file list storrage

Load

Load the list of scores from the default file (GetScoreFileName)

LoadFromFile

Load the list of scores from FileName (if it exists)

Save

Save the list of scores in the default file (GetScoreFileName)

SaveToFile

Save the list of scores in AFileName (and create the path if needed and possible)

SortByPointsAsc

Sort the scores list by level / points / pseudo (bottom from top)

SortByPointsDesc

Sort the scores list by level / points / pseudo (top from bottom)

SortByPseudoAsc

Sort the scores list by pseudo in alphabetical order (and level+score if same pseudo is present more than once time)

SortByPseudoDesc

Sort the scores list by pseudo in inverse alphabetical order (and level+score if same pseudo is present more than once time)

Top