src/table/track_land.h
author smatz
Sat, 13 Dec 2008 16:16:44 +0000
changeset 10417 a1a609566853
parent 9111 48ce04029fe4
permissions -rw-r--r--
(svn r14670) -Codechange: use better readable (I hope) and branchless (for some archs/compilers) code for cargo value computation
2186
db48cf29b983 (svn r2701) Insert Id tags into all source files
tron
parents: 1544
diff changeset
     1
/* $Id$ */
db48cf29b983 (svn r2701) Insert Id tags into all source files
tron
parents: 1544
diff changeset
     2
9111
48ce04029fe4 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents: 8806
diff changeset
     3
/** @file track_land.h Sprites to use and how to display them for train depot/waypoint tiles. */
48ce04029fe4 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents: 8806
diff changeset
     4
8570
f50de4804ff1 (svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
frosch
parents: 8567
diff changeset
     5
#define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} },
f50de4804ff1 (svn r12148) -Codechange: Merge 'image' and 'pal' of DrawTileSeqStruct into one PalSpriteID
frosch
parents: 8567
diff changeset
     6
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} }
1542
62a03537ad0b (svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
truelight
parents: 1399
diff changeset
     7
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     8
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
     9
static const DrawTileSeqStruct _depot_gfx_NE[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    10
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | (1 << PALETTE_MODIFIER_COLOR), 2, 13, 13, 1)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    11
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    12
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    13
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    14
static const DrawTileSeqStruct _depot_gfx_SE[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    15
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | (1 << PALETTE_MODIFIER_COLOR),  2, 2, 1, 13)
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    16
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | (1 << PALETTE_MODIFIER_COLOR), 13, 2, 1, 13)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    17
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    18
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    19
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    20
static const DrawTileSeqStruct _depot_gfx_SW[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    21
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | (1 << PALETTE_MODIFIER_COLOR), 2,  2, 13, 1)
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    22
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | (1 << PALETTE_MODIFIER_COLOR), 2, 13, 13, 1)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    23
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    24
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    25
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    26
static const DrawTileSeqStruct _depot_gfx_NW[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    27
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | (1 << PALETTE_MODIFIER_COLOR), 13, 2, 1, 13)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    28
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    29
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    30
4229
f5e698452d34 (svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents: 4225
diff changeset
    31
static const DrawTileSprites _depot_gfx_table[] = {
8571
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    32
	{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE },
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    33
	{ {SPR_RAIL_TRACK_Y,    PAL_NONE}, _depot_gfx_SE },
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    34
	{ {SPR_RAIL_TRACK_X,    PAL_NONE}, _depot_gfx_SW },
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    35
	{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW }
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    36
};
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    37
8806
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    38
static const DrawTileSprites _depot_invisible_gfx_table[] = {
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    39
	{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE },
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    40
	{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    41
	{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    42
	{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW }
4fe163e0b52a (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
smatz
parents: 8571
diff changeset
    43
};
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    44
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    45
static const DrawTileSeqStruct _waypoint_gfx_X[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    46
	TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_X_1,  0,  0,  16,  5)
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    47
	TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_X_2,  0, 11,  16,  5)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    48
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    49
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    50
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    51
static const DrawTileSeqStruct _waypoint_gfx_Y[] = {
5669
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    52
	TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_Y_1,   0,  0, 5, 16)
631901f52707 (svn r8129) -Codechange: Change data tables to use split off palette map. And
peter1138
parents: 5587
diff changeset
    53
	TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOR) | SPR_WAYPOINT_Y_2,  11,  0, 5, 16)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    54
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    55
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    56
4229
f5e698452d34 (svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents: 4225
diff changeset
    57
static const DrawTileSprites _waypoint_gfx_table[] = {
8571
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    58
	{ {SPR_RAIL_TRACK_X, PAL_NONE}, _waypoint_gfx_X },
53c94d717e99 (svn r12149) -Codechange: Merge 'ground_sprite' and 'ground_pal' of DrawTileSprites into one PalSpriteID
frosch
parents: 8570
diff changeset
    59
	{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _waypoint_gfx_Y }
3528
42e939a5e21a (svn r4384) -Codechange: rail drawing code
celestar
parents: 3270
diff changeset
    60
};
8567
270fa0866286 (svn r12145) -Codechange: includes should be at the top of the source file
belugas
parents: 5669
diff changeset
    61
270fa0866286 (svn r12145) -Codechange: includes should be at the top of the source file
belugas
parents: 5669
diff changeset
    62
#undef TILE_SEQ_LINE
270fa0866286 (svn r12145) -Codechange: includes should be at the top of the source file
belugas
parents: 5669
diff changeset
    63
#undef TILE_SEQ_END
270fa0866286 (svn r12145) -Codechange: includes should be at the top of the source file
belugas
parents: 5669
diff changeset
    64