table/track_land.h
author belugas
Mon, 02 Oct 2006 00:28:31 +0000
changeset 4702 c79e9d9f27b3
parent 4229 f5e698452d34
permissions -rw-r--r--
(svn r6612) -Codechange: Use accessors for hidden_state.
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
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
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
     3
#define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, img },
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
     4
#define TILE_SEQ_END() { 0x80, 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
     5
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     6
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
     7
static const DrawTileSeqStruct _depot_gfx_NE[] = {
3270
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
     8
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | PALETTE_MODIFIER_COLOR, 2, 13, 13, 1)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
     9
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    10
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    11
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    12
static const DrawTileSeqStruct _depot_gfx_SE[] = {
3270
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
    13
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | PALETTE_MODIFIER_COLOR,  2, 2, 1, 13)
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
    14
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | PALETTE_MODIFIER_COLOR, 13, 2, 1, 13)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    15
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    16
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    17
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    18
static const DrawTileSeqStruct _depot_gfx_SW[] = {
3270
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
    19
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | PALETTE_MODIFIER_COLOR, 2,  2, 13, 1)
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
    20
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | PALETTE_MODIFIER_COLOR, 2, 13, 13, 1)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    21
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    22
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    23
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    24
static const DrawTileSeqStruct _depot_gfx_NW[] = {
3270
a9bed87794a2 (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
tron
parents: 2571
diff changeset
    25
	TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | PALETTE_MODIFIER_COLOR, 13, 2, 1, 13)
0
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    26
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    27
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    28
4229
f5e698452d34 (svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents: 4225
diff changeset
    29
static const DrawTileSprites _depot_gfx_table[] = {
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    30
	{ SPR_FLAT_GRASS_TILE, _depot_gfx_NE },
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    31
	{ SPR_RAIL_TRACK_Y,    _depot_gfx_SE },
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    32
	{ SPR_RAIL_TRACK_X,    _depot_gfx_SW },
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    33
	{ SPR_FLAT_GRASS_TILE, _depot_gfx_NW }
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    34
};
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    35
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
static const DrawTileSeqStruct _waypoint_gfx_X[] = {
2571
550a7d323ced (svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents: 2548
diff changeset
    38
	TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_X_1,  0,  0,  16,  5)
550a7d323ced (svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents: 2548
diff changeset
    39
	TILE_SEQ_LINE(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
    40
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    41
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    42
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    43
static const DrawTileSeqStruct _waypoint_gfx_Y[] = {
2571
550a7d323ced (svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents: 2548
diff changeset
    44
	TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_Y_1,   0,  0, 5, 16)
550a7d323ced (svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron
parents: 2548
diff changeset
    45
	TILE_SEQ_LINE(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
    46
	TILE_SEQ_END()
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    47
};
29654efe3188 (svn r1) Import of revision 975 of old (crashed) SVN
truelight
parents:
diff changeset
    48
4229
f5e698452d34 (svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
belugas
parents: 4225
diff changeset
    49
static const DrawTileSprites _waypoint_gfx_table[] = {
4225
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    50
	{ SPR_RAIL_TRACK_X, _waypoint_gfx_X },
88d760a6a4bf (svn r5771) Unify several code paths and data structures for drawing train depots and waypoints
tron
parents: 3528
diff changeset
    51
	{ SPR_RAIL_TRACK_Y, _waypoint_gfx_Y }
3528
42e939a5e21a (svn r4384) -Codechange: rail drawing code
celestar
parents: 3270
diff changeset
    52
};