X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=f77bc0acf59d9bfcc67f48d1a21b00fb76238ea7;hb=ee0895b12e544444db37febb1242bcc8a72d6ad8;hp=754ecc3be7397eb7be3f2a9026149f37f2bacbdc;hpb=994cb017022c658f115e3c9fc927d8a0cc83832c;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index 754ecc3b..f77bc0ac 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -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) @@ -138,14 +138,18 @@ /* 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 @@ -479,6 +483,7 @@ struct ConfigInfo { char *token; char *value; + int type; }; struct FileInfo @@ -492,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 */ @@ -507,6 +520,7 @@ struct ArtworkListInfo struct FileInfo *file_list; /* static artwork file array */ struct ConfigInfo *suffix_list; /* parameter suffixes array */ + struct SetupFileList *custom_setup_list; /* additional definitions */ struct ListNodeInfo **artwork_list; /* static artwork node array */