Add extra bonus level handling + status bar in the level selection menu
[neverball] / ball / level.h
1 #ifndef LEVEL_H
2 #define LEVEL_H
3
4 /*---------------------------------------------------------------------------*/
5
6 #define MODE_CHALLENGE  1
7 #define MODE_NORMAL     2
8 #define MODE_PRACTICE   3
9
10 const char *level_shot(int);
11 const char *level_coin_n(int, int);
12 const char *level_time_n(int, int);
13 int         level_coin_c(int, int);
14 int         level_time_c(int, int);
15 int         level_coin_t(int, int);
16 int         level_time_t(int, int);
17
18 void level_init(const char *, const char *, const char *);
19 void level_free(void);
20
21 int  level_exists(int);
22 int  level_opened(int);
23 int  level_locked(int);
24 int  level_extra_bonus(int i);
25 int  level_extra_bonus_opened(void);
26
27 int  curr_times_total(void);
28 int  curr_coins_total(void);
29 int  curr_count(void);
30 int  curr_score(void);
31 int  curr_coins(void);
32 int  curr_balls(void);
33 int  curr_level(void);
34 int  curr_goal (void);
35
36 int  level_replay(const char *);
37 void level_play(int, int);
38 int  level_play_go(void);
39 void level_next(void);
40
41 void level_stop(int);
42 int  level_dead(void);
43 int  level_last(void);
44 int  level_sort(int *, int *);
45 int  level_done(int *, int *);
46 int  level_score(int);
47 int  level_count(void);
48
49 void level_name(int, const char *, int, int);
50 void level_snap(int);
51 void level_song(void);
52
53 int level_mode(void);
54
55 void level_cheat(void);
56
57 /*---------------------------------------------------------------------------*/
58
59 #endif