Added Grow coin textures, and fixed small grow bug.
[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     int locked;               /* number of locked levels */
34     int completed;            /* number of completed levels */
35 };
36
37 /*---------------------------------------------------------------------------*/
38
39 void set_init();
40
41 int  set_exists(int);
42 const struct set *get_set(int);
43
44 /*---------------------------------------------------------------------------*/
45
46 int  set_unlocked(const struct set *);
47 int  set_completed(const struct set *);
48
49 int  set_level_exists(const struct set *, int);
50
51 /*---------------------------------------------------------------------------*/
52
53 void set_goto(int i);
54 const struct set *curr_set(void);
55
56 const struct level *get_level(int);
57
58 /*---------------------------------------------------------------------------*/
59
60 void set_finish_level(struct level_game *, const char *);
61 void score_change_name(struct level_game *, const char *);
62
63 /*---------------------------------------------------------------------------*/
64
65 void level_snap(int);
66
67 void set_cheat(void);
68
69 /*---------------------------------------------------------------------------*/
70
71 #endif