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 int bonus; /* is a bonus level message needed? */
20 char *bonus_repr; /* representation of the unlocked bonus level */
22 /* Once a level is finished */
23 int status; /* status ending */
24 int coins; /* coins collected */
25 int timer; /* time elapsed */
27 /* rank = 3 => unclassed */
28 int coin_rank; /* rank in the level high-scores */
29 int goal_rank; /* rank in the level high-scores */
30 int time_rank; /* rank in the level high-scores */
31 int score_rank; /* rank in the set high-scores */
32 int times_rank; /* rank in the set high-scores */
34 /* What about the game and the set? */
35 int dead; /* Is the game over and lost? */
36 int win; /* Is the game over and win? */
37 int unlock; /* Is the next level newly unlocked */
38 const struct level *next_level; /* next level (NULL no next level) */
41 struct level_game *curr_lg(void);
43 /*---------------------------------------------------------------------------*/