X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmain.h;h=c8f30b68872f75ec6f4d31b97f65c3d99afb5507;hb=64048311a753e16e92c29112a8a223a866ac45ef;hp=ba480f4214e5b91ee67b49f74748d309bb0ff0ac;hpb=22473d4140e896b64767e3349ef308f69b7668b9;p=rocksndiamonds.git diff --git a/src/main.h b/src/main.h index ba480f42..c8f30b68 100644 --- a/src/main.h +++ b/src/main.h @@ -158,20 +158,21 @@ /* Bitmaps with graphic file */ #define PIX_BACK 0 -#define PIX_DOOR 1 -#define PIX_HEROES 2 -#define PIX_TOONS 3 -#define PIX_SP 4 -#define PIX_DC 5 -#define PIX_MORE 6 -#define PIX_BIGFONT 7 -#define PIX_SMALLFONT 8 -#define PIX_MEDIUMFONT 9 +#define PIX_ELEMENTS 1 +#define PIX_DOOR 2 +#define PIX_HEROES 3 +#define PIX_TOONS 4 +#define PIX_SP 5 +#define PIX_DC 6 +#define PIX_MORE 7 +#define PIX_BIGFONT 8 +#define PIX_SMALLFONT 9 +#define PIX_MEDIUMFONT 10 /* Bitmaps without graphic file */ -#define PIX_DB_DOOR 10 -#define PIX_DB_FIELD 11 +#define PIX_DB_DOOR 11 +#define PIX_DB_FIELD 12 -#define NUM_PICTURES 10 +#define NUM_PICTURES 11 #define NUM_BITMAPS 12 /* boundaries of arrays etc. */ @@ -415,7 +416,9 @@ extern struct GameInfo game; extern struct GlobalInfo global; extern struct ElementInfo element_info[]; extern struct GraphicInfo graphic_info[]; -extern struct ArtworkConfigInfo image_config[], sound_config[]; +extern struct ConfigInfo image_config[], sound_config[]; +extern struct ConfigInfo image_config_suffix[], sound_config_suffix[]; +extern struct FileInfo *image_files, *sound_files; /* often used screen positions */ #define SX 8 @@ -454,12 +457,10 @@ extern struct ArtworkConfigInfo image_config[], sound_config[]; #define MICROLEV_YPOS (SX + 12 * TILEY - MICRO_TILEY) #define MICROLABEL_YPOS (MICROLEV_YPOS + MICROLEV_YSIZE + 7) -#define GFX_STARTX SX -#define GFX_STARTY SY -#define MINI_GFX_STARTX SX -#define MINI_GFX_STARTY 424 -#define MICRO_GFX_STARTX SX -#define MICRO_GFX_STARTY 536 +#define MINI_GFX_STARTX 0 +#define MINI_GFX_STARTY 416 +#define MICRO_GFX_STARTX 0 +#define MICRO_GFX_STARTY 528 #define GFX_PER_LINE 16 #define MINI_GFX_PER_LINE 32 #define MICRO_GFX_PER_LINE 128 @@ -892,7 +893,7 @@ extern struct ArtworkConfigInfo image_config[], sound_config[]; #define EL_MAGIC_WALL_BD_FILLING 612 /* game graphics: -** 0 - 255: graphics from "RocksScreen" +** 0 - 255: graphics from "RocksElements" ** 256 - 511: graphics from "RocksFont" ** 512 - 767: graphics from "RocksHeroes" ** 768 - 1023: graphics from "RocksSP" @@ -900,8 +901,8 @@ extern struct ArtworkConfigInfo image_config[], sound_config[]; ** 1280 - 1535: graphics from "RocksMore" */ -#define GFX_START_ROCKSSCREEN 0 -#define GFX_END_ROCKSSCREEN 255 +#define GFX_START_ROCKSELEMENTS 0 +#define GFX_END_ROCKSELEMENTS 255 #define GFX_START_ROCKSFONT 256 #define GFX_END_ROCKSFONT 511 #define GFX_START_ROCKSHEROES 512 @@ -1458,11 +1459,19 @@ extern struct ArtworkConfigInfo image_config[], sound_config[]; #define NUM_SOUNDS 55 +/* values for image configuration suffixes */ +#define GFXARG_FRAME_XPOS 0 +#define GFXARG_FRAME_YPOS 1 +#define GFXARG_NUM_FRAMES 2 + /* values for image configuration */ -#define GFX_BD_DIAMOND_WAITING 0 +#define GFX_BD_DIAMOND 0 +#define GFX_ROBOT_WHEEL 1 -#define NUM_IMAGE_CONFIG_ENTRIES 1 +#define NUM_IMAGE_FILES 2 +/* values for sound configuration suffixes */ +/* (currently none) */ /* values for sound configuration */ #define SND_BD_EMPTY_SPACE_DIGGING 0 @@ -1635,7 +1644,7 @@ extern struct ArtworkConfigInfo image_config[], sound_config[]; #define SND_MENU_HALL_OF_FAME 167 #define SND_MENU_INFO_SCREEN 168 -#define NUM_SOUND_CONFIG_ENTRIES 169 +#define NUM_SOUND_FILES 169 /* values for game_status */