Clear "paused" flag on delete/keep at Replay Paused screen.
[neverball] / ball / levels.h
1 #ifndef LEVELS_H
2 #define LEVELS_H
3
4 /*---------------------------------------------------------------------------*/
5
6 struct level_game
7 {
8     int mode;          /* game mode */
9     const struct level *level; /* the level played */
10
11     int goal;          /* coins needed */
12     int time;          /* time limit */
13
14     /* MODE_CHALLENGE only */
15     int score;         /* coin total */
16     int balls;         /* live count */
17     int times;         /* time total */
18
19     /* Once a level is finished */
20     int status;        /* status ending */
21     int coins;         /* coins collected */
22     int timer;         /* time elapsed */
23
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 */
30
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) */
36 };
37
38 struct level_game *curr_lg(void);
39
40 /*---------------------------------------------------------------------------*/
41
42 #endif