struct score
{
- char player[NSCORE+1][MAXNAM]; /* player name */
- int timer[NSCORE+1]; /* time elapsed */
- int coins[NSCORE+1]; /* coins collected */
+ char player[NSCORE + 1][MAXNAM]; /* player name */
+ int timer[NSCORE + 1]; /* time elapsed */
+ int coins[NSCORE + 1]; /* coins collected */
};
void score_init_hs(struct score *, int, int);
struct level
{
/* Level identity */
-
+
char file[MAXSTR]; /* sol main file */
char name[MAXSTR]; /* the level name */
int version; /* the level version */
char author[MAXSTR]; /* the author */
-
+
/* Time and goal information */
-
+
int time; /* time limit */
int goal; /* coins needed */
struct score coin_score; /* "most coin" score */
/* Regarding set information */
-
- struct set * set; /* set (NULL in single mode) */
+
+ struct set *set; /* set (NULL in single mode) */
int number; /* level number in the set */
char numbername[3]; /* string representation of the number (eg. B1) */
int is_locked; /* Is the level unplayable */
- int is_bonus; /* Is the level an extra-bonus level? */
- int is_completed; /* Is the level goal terminated? */
- int is_last; /* Is the level the last of the set? */
-
+ int is_bonus; /* Is the level an extra-bonus level? */
+ int is_completed; /* Is the level goal terminated? */
+ int is_last; /* Is the level the last of the set? */
+
/* Other metadata (files are relative the data file) */
-
+
char message[MAXSTR]; /* intro message */
char back[MAXSTR]; /* sol background file */
char grad[MAXSTR]; /* gradiant backgound image */
int goal; /* coins needed */
int time; /* time limit */
-
+
/* MODE_CHALLENGE only */
int score; /* coin total */
int balls; /* live count */