TScoreList<T> Class
Definition
Generic list of scores registered for a game (use TScoreList if you don't need the genericity)
type TScoreList<T> = class(TObjectList<T>)
Type Parameters
- T
- Inheritance
-
TObjectList<T>TScoreList<T>
Constructors
| Create(string, string, string) |
Scores list constructor |
Methods
| Add(Cardinal, Boolean) |
Add a new score to the list |
| Add(Cardinal, Cardinal, Boolean) |
Add a new score to the list |
| Add(string, Cardinal, Boolean) |
Add a new score to the list |
| Add(string, Cardinal, Cardinal, Boolean) |
Add a new score to the list |
| GetOldScoreFileName(string, string) |
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(string) |
Load the list of scores from FileName (if it exists) |
| Save |
Save the list of scores in the default file (GetScoreFileName) |
| SaveToFile(string) |
Save the list of scores in AFileName (and create the path if needed and possible) |
| SortByPointsAsc(Boolean) |
Sort the scores list by level / points / pseudo (bottom from top) |
| SortByPointsDesc(Boolean) |
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) |