add infos in Modes and Secrets tabs
[neverball] / ball / set.h
index 078e361..88a24d6 100644 (file)
@@ -16,8 +16,9 @@ struct 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 */
@@ -26,10 +27,12 @@ struct set
 
     struct score time_score;  /* challenge score */
     struct score coin_score;  /* challenge score */
-    
+
     /* 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);