Bonus level info is now in the level (medatada field)
[neverball] / ball / set.h
1 #ifndef SET_H
2 #define SET_H
3
4 #include "base_config.h"
5 #include "level.h"
6
7 /*---------------------------------------------------------------------------*/
8
9 #define SET_FILE "sets.txt"
10 #define MAXSET 16
11 #define MAXLVL 25
12
13 /* A pack of levels */
14 struct set
15 {
16     /* set global info */
17     int number;               /* number of the set */
18
19     char file[MAXSTR];        /* set file description */
20     char user_scores[MAXSTR]; /* user highscore file */
21     char setname[MAXSTR];     /* internal set name */
22
23     char name[MAXSTR];        /* set name */
24     char desc[MAXSTR];        /* set description */
25     char shot[MAXSTR];        /* screenshot image file*/
26
27     struct score time_score;  /* challenge score */
28     struct score coin_score;  /* challenge score */
29     
30     /* levels info */
31     
32     int count;                /* number of levels */
33 };
34
35 /*---------------------------------------------------------------------------*/
36
37 void set_init();
38
39 int  set_exists(int);
40 const struct set *get_set(int);
41
42 /*---------------------------------------------------------------------------*/
43
44 int  set_completed(const struct set *);
45
46 int  set_level_exists(const struct set *, int);
47
48 /*---------------------------------------------------------------------------*/
49
50 void set_goto(int i);
51 const struct set *curr_set(void);
52
53 const struct level *get_level(int);
54
55 /*---------------------------------------------------------------------------*/
56
57 void set_finish_level(struct level_game *, const char *);
58 void score_change_name(struct level_game *, const char *);
59
60 /*---------------------------------------------------------------------------*/
61
62 void level_snap(int);
63
64 void set_cheat(void);
65
66 /*---------------------------------------------------------------------------*/
67
68 #endif