rnd-20030119-1-src
[rocksndiamonds.git] / src / libgame / system.h
index 03429157c7fc327273ae3da60046d424b631eb88..fa722636b27c57679d7628e3f2b6777bb4525836 100644 (file)
@@ -71,7 +71,7 @@
 #define MV_BIT_RIGHT           1
 #define MV_BIT_UP              2
 #define MV_BIT_DOWN            3
-#define NUM_MV_DIRECTIONS      4
+#define NUM_DIRECTIONS         4
 
 #define MV_NO_MOVING           0
 #define MV_LEFT                        (1 << MV_BIT_LEFT)
 /* default name for unknown player names */
 #define ANONYMOUS_NAME         "anonymous"
 
+/* default name for new levels */
+#define NAMELESS_LEVEL_NAME    "nameless level"
+
 /* default text for non-existant artwork */
 #define NOT_AVAILABLE          "(not available)"
 
 /* default value for undefined filename */
 #define UNDEFINED_FILENAME     "[NONE]"
 
-/* default name for new levels */
-#define NAMELESS_LEVEL_NAME    "nameless level"
+/* default values for undefined configuration file parameters */
+#define ARG_UNDEFINED          "-1000000"
+#define ARG_UNDEFINED_VALUE    (atoi(ARG_UNDEFINED))
 
 /* definitions for game sub-directories */
 #ifndef RO_GAME_DIR
@@ -493,6 +497,14 @@ struct FileInfo
   int *parameter;                              /* array of file parameters */
 };
 
+struct SetupFileList
+{
+  char *token;
+  char *value;
+
+  struct SetupFileList *next;
+};
+
 struct ListNodeInfo
 {
   char *source_filename;                       /* primary key for node list */
@@ -505,9 +517,14 @@ struct ArtworkListInfo
 
   int num_file_list_entries;
   int num_suffix_list_entries;
+  int num_ext1_suffix_list_entries;
+  int num_ext2_suffix_list_entries;
 
   struct FileInfo *file_list;                  /* static artwork file array */
   struct ConfigInfo *suffix_list;              /* parameter suffixes array */
+  struct ConfigInfo *ext1_suffix_list;         /* property suffixes array 1 */
+  struct ConfigInfo *ext2_suffix_list;         /* property suffixes array 2 */
+  struct SetupFileList *custom_setup_list;     /* additional definitions */
 
   struct ListNodeInfo **artwork_list;          /* static artwork node array */