|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Data Structures | |
| struct | scr |
| struct | score_table |
Typedefs | |
| typedef struct scr | score |
Functions | |
| static void | put_score (const score *sc, char *buf, int size) |
| static void | hiscore_save (const score_table *table) |
| static int | get_score (char *bp, score *sc) |
| static char * | draw_one_high_score (const score *sc, char *buf, size_t size) |
| static void | add_score (score_table *table, score *new_score, score *old_score) |
| static void | hiscore_load (score_table *table) |
| void | hiscore_init () |
| void | hiscore_check (object *op, int quiet) |
| void | hiscore_display (object *op, int max, const char *match) |
Variables | |
| static score_table | hiscore_table |
Includes high score related functions.
Definition in file hiscore.c.
| static void add_score | ( | score_table * | table, |
| score * | new_score, | ||
| score * | old_score | ||
| ) | [static] |
| static char* draw_one_high_score | ( | const score * | sc, |
| char * | buf, | ||
| size_t | size | ||
| ) | [static] |
| static int get_score | ( | char * | bp, |
| score * | sc | ||
| ) | [static] |
The opposite of put_score(), get_score reads from the given buffer into a given score structure.
| bp | String to parse. |
| sc | Includes the parsed score. |
| void hiscore_check | ( | object * | op, |
| int | quiet | ||
| ) |
Checks if player should enter the hiscore, and if so writes them into the list.
| op | Player to check. |
| quiet | If set, don't print anything out - used for periodic updates during game play or when player unexpectedly quits - don't need to print anything in those cases. |
| void hiscore_display | ( | object * | op, |
| int | max, | ||
| const char * | match | ||
| ) |
| static void hiscore_load | ( | score_table * | table | ) | [static] |
| static void hiscore_save | ( | const score_table * | table | ) | [static] |
| static void put_score | ( | const score * | sc, |
| char * | buf, | ||
| int | size | ||
| ) | [static] |
score_table hiscore_table [static] |
1.7.4