update copyright info, also add a copiright template to add at the top of sourcefiles
[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 *mode_to_str(int);
11
12 const char *level_shot(int);
13 const char *level_coin_n(int, int);
14 const char *level_time_n(int, int);
15 int         level_coin_c(int, int);
16 int         level_time_c(int, int);
17 int         level_coin_t(int, int);
18 int         level_time_t(int, int);
19
20 void level_init(const char *, const char *, const char *);
21 void level_free(void);
22
23 int  level_exists(int);
24 int  level_opened(int);
25 int  level_locked(int);
26 int  level_extra_bonus(int i);
27 int  level_extra_bonus_opened(void);
28 int  level_set_completed(void);
29 const char * level_number_name(int);
30
31 int  curr_times_total(void);
32 int  curr_coins_total(void);
33 int  curr_count(void);
34 int  curr_score(void);
35 int  curr_balls(void);
36 int  curr_level(void);
37
38 int  level_replay(const char *);
39 void level_play(int, int);
40 int  level_play_go(void);
41 void level_next(void);
42
43 void level_stop(int);
44 int  level_dead(void);
45 int  level_last(void);
46 int  level_sort(int *, int *);
47 int  level_done(int *, int *);
48 int  count_extra_balls(int, int);
49         
50
51 void level_name(int, const char *, int, int);
52 void level_snap(int);
53 void level_song(void);
54
55 int level_mode(void);
56
57 void level_cheat(void);
58
59 /*---------------------------------------------------------------------------*/
60
61 #endif