Use GLES 1.1
[neverball] / ball / score.h
1 #ifndef SCORE_H
2 #define SCORE_H
3
4 #include "base_config.h"
5
6 /*---------------------------------------------------------------------------*/
7
8 enum
9 {
10     RANK_MIN = -1,
11
12     RANK_HARD,
13     RANK_MEDM,
14     RANK_EASY,
15     RANK_LAST,
16
17     RANK_MAX
18 };
19
20 struct score
21 {
22     char player[RANK_MAX][MAXNAM];
23
24     int  timer[RANK_MAX];               /* Time elapsed                      */
25     int  coins[RANK_MAX];               /* Coins collected                   */
26 };
27
28 /*---------------------------------------------------------------------------*/
29
30 void score_init_hs(struct score *, int, int);
31
32 void score_time_insert(struct score *, int *, const char *, int, int);
33 void score_coin_insert(struct score *, int *, const char *, int, int);
34
35 /*---------------------------------------------------------------------------*/
36
37 #endif