A library for managing high score tables/leaderboards
File: |
HighScore.lib |
Version: |
1.0 |
Author: |
John Master |
This library handles very simple high score lists, containing only names and scored points.
Name |
Parameters |
Brief description |
|
procedure |
maxEntries, standardName$, maxScore |
Init high score list. |
|
function |
filename$ |
Load list from file. |
|
function |
filename$ |
Save list. |
|
function |
index |
Get name at specific index, where 0 has the highest score. |
|
function |
index |
Get score at specific index, where 0 has the highest score. |
|
function |
Return all names. |
||
function |
Return all scores. |
||
function |
score |
Returns true if score is high enough for an entry. |
|
function |
name$, score |
Add new entry. |
|
procedure |
name$ |
Set default name. |
procedure HS_Init ( maxEntries, standardName$, maxScore )Init a list for a specific number of entries.
[ Back ] |
function HS_Load ( filename$ )Load list from file.
Return value [ Back ] |
function HS_Save ( filename$ )Save list.
Return value [ Back ] |
function HS_GetName$ ( index )Get name at specific index, where 0 has the highest score.
Return value [ Back ] |
function HS_GetScore ( index )Get score at specific index, where 0 has the highest score.
Return value [ Back ] |
function HS_GetNames$[] ( )Return all names.
Return value [ Back ] |
function HS_GetScores[] ( )Return all scores.
Return value [ Back ] |
function HS_IsQualified ( score )Returns true if score is high enough for an entry.
Return value [ Back ] |
function HS_AddEntry ( name$, score )Add new entry.
Return value [ Back ] |
procedure HS_SetDefaultName ( name$ )Set default name to be used if player submits an empty string.
[ Back ] |
Generated with NLDoc 20140630.