Those sets haven't been merged.
[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
11 #define MAXSET 16
12 #define MAXLVL 25
13
14 struct set
15 {
16     char file[PATHMAX];
17
18     char id[MAXSTR];           /* Internal set identifier    */
19     char name[MAXSTR];         /* Set name                   */
20     char desc[MAXSTR];         /* Set description            */
21     char shot[MAXSTR];         /* Set screen-shot            */
22
23     char user_scores[PATHMAX]; /* User high-score file       */
24
25     struct score time_score;   /* Challenge score            */
26     struct score coin_score;   /* Challenge score            */
27
28     /* Level stats */
29
30     unsigned int count;        /* Number of levels           */
31     unsigned int locked;       /* Number of locked levels    */
32     unsigned int completed;    /* Number of completed levels */
33 };
34
35 /*---------------------------------------------------------------------------*/
36
37 int set_init();
38 int set_exists(int);
39
40 const struct set *get_set(int);
41
42 int set_unlocked(const struct set *);
43 int set_completed(const struct set *);
44 int set_level_exists(const struct set *, int);
45
46 void                set_goto(int i);
47 const struct set *  curr_set(void);
48 const struct level *get_level(int);
49
50 /*---------------------------------------------------------------------------*/
51
52 void set_finish_level(struct level_game *, const char *);
53 void score_change_name(struct level_game *, const char *);
54
55 /*---------------------------------------------------------------------------*/
56
57 void level_snap(int);
58 void set_cheat(void);
59
60 /*---------------------------------------------------------------------------*/
61
62 #endif