4 /*---------------------------------------------------------------------------*/
8 int mode; /* game mode */
9 const struct level *level; /* the level played */
11 int goal; /* coins needed */
12 int time; /* time limit */
14 /* MODE_CHALLENGE only */
15 int score; /* coin total */
16 int balls; /* live count */
17 int times; /* time total */
19 /* Once a level is finished */
20 int status; /* status ending */
21 int coins; /* coins collected */
22 int timer; /* time elapsed */
24 /* rank = 3 => unclassed */
25 int coin_rank; /* rank in the level high-scores */
26 int goal_rank; /* rank in the level high-scores */
27 int time_rank; /* rank in the level high-scores */
28 int score_rank; /* rank in the set high-scores */
29 int times_rank; /* rank in the set high-scores */
31 /* What about the game and the set? */
32 int dead; /* Is the game over and lost? */
33 int win; /* Is the game over and win? */
34 int unlock; /* Is the next level newly unlocked */
35 const struct level *next_level; /* next level (NULL no next level) */
38 struct level_game *curr_lg(void);
40 /*---------------------------------------------------------------------------*/