projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add infos in Modes and Secrets tabs
[neverball]
/
ball
/
set.h
diff --git
a/ball/set.h
b/ball/set.h
index
078e361
..
88a24d6
100644
(file)
--- a/
ball/set.h
+++ b/
ball/set.h
@@
-16,8
+16,9
@@
struct set
/* set global info */
int number; /* number of the set */
/* set global info */
int number; /* number of the set */
- char file[MAXSTR]; /* set file description */
- char user_scores[MAXSTR]; /* user highscore file */
+ char file[PATHMAX];
+
+ char user_scores[PATHMAX]; /* user highscore file */
char setname[MAXSTR]; /* internal set name */
char name[MAXSTR]; /* set name */
char setname[MAXSTR]; /* internal set name */
char name[MAXSTR]; /* set name */
@@
-26,10
+27,12
@@
struct set
struct score time_score; /* challenge score */
struct score coin_score; /* challenge score */
struct score time_score; /* challenge score */
struct score coin_score; /* challenge score */
-
+
/* levels info */
/* levels info */
-
- int count; /* number of levels */
+
+ int count; /* number of levels */
+ int locked; /* number of locked levels */
+ int completed; /* number of completed levels */
};
/*---------------------------------------------------------------------------*/
};
/*---------------------------------------------------------------------------*/
@@
-41,6
+44,7
@@
const struct set *get_set(int);
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
+int set_unlocked(const struct set *);
int set_completed(const struct set *);
int set_level_exists(const struct set *, int);
int set_completed(const struct set *);
int set_level_exists(const struct set *, int);