Those sets haven't been merged.
[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     int   bonus;       /* is a bonus level message needed? */
20     char *bonus_repr;  /* representation of the unlocked bonus level */
21
22     /* Once a level is finished */
23     int status;        /* status ending */
24     int coins;         /* coins collected */
25     int timer;         /* time elapsed */
26
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 */
33
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) */
39 };
40
41 struct level_game *curr_lg(void);
42
43 /*---------------------------------------------------------------------------*/
44
45 #endif