author | tron |
Sun, 17 Jul 2005 11:09:03 +0000 | |
changeset 2088 | d7a97ef74701 |
parent 1977 | 37bbebf94434 |
child 2163 | b17b313113a0 |
permissions | -rw-r--r-- |
0 | 1 |
#include "stdafx.h" |
1891
862800791170
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Darkvater
parents:
507
diff
changeset
|
2 |
#include "openttd.h" |
507
04b5403aaf6b
(svn r815) Include strings.h only in the files which need it.
tron
parents:
473
diff
changeset
|
3 |
#include "table/strings.h" |
0 | 4 |
#include "viewport.h" |
5 |
#include "command.h" |
|
6 |
||
7 |
static void DrawTile_Dummy(TileInfo *ti) |
|
8 |
{ |
|
9 |
DrawGroundSpriteAt(0x3EC, ti->x, ti->y, ti->z); |
|
10 |
} |
|
11 |
||
12 |
||
13 |
static uint GetSlopeZ_Dummy(TileInfo *ti) { |
|
14 |
return GetPartialZ(ti->x&0xF, ti->y&0xF, ti->tileh) + ti->z; |
|
15 |
} |
|
16 |
||
40 | 17 |
static uint GetSlopeTileh_Dummy(TileInfo *ti) { |
39 | 18 |
return ti->tileh; |
19 |
} |
|
20 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
21 |
static int32 ClearTile_Dummy(TileIndex tile, byte flags) |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
22 |
{ |
0 | 23 |
return_cmd_error(STR_0001_OFF_EDGE_OF_MAP); |
24 |
} |
|
25 |
||
26 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
27 |
static void GetAcceptedCargo_Dummy(TileIndex tile, AcceptedCargo ac) |
0 | 28 |
{ |
29 |
/* not used */ |
|
30 |
} |
|
31 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
32 |
static void GetTileDesc_Dummy(TileIndex tile, TileDesc *td) |
0 | 33 |
{ |
34 |
td->str = STR_EMPTY; |
|
35 |
td->owner = OWNER_NONE; |
|
36 |
} |
|
37 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
38 |
static void AnimateTile_Dummy(TileIndex tile) |
0 | 39 |
{ |
40 |
/* not used */ |
|
41 |
} |
|
42 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
43 |
static void TileLoop_Dummy(TileIndex tile) |
0 | 44 |
{ |
45 |
/* not used */ |
|
46 |
} |
|
47 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
48 |
static void ClickTile_Dummy(TileIndex tile) |
0 | 49 |
{ |
50 |
/* not used */ |
|
51 |
} |
|
52 |
||
1977
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
53 |
static void ChangeTileOwner_Dummy(TileIndex tile, byte old_player, byte new_player) |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
54 |
{ |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
55 |
/* not used */ |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
56 |
} |
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
57 |
|
37bbebf94434
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
tron
parents:
1891
diff
changeset
|
58 |
static uint32 GetTileTrackStatus_Dummy(TileIndex tile, TransportType mode) |
0 | 59 |
{ |
60 |
return 0; |
|
61 |
} |
|
62 |
||
63 |
const TileTypeProcs _tile_type_dummy_procs = { |
|
64 |
DrawTile_Dummy, /* draw_tile_proc */ |
|
65 |
GetSlopeZ_Dummy, /* get_slope_z_proc */ |
|
66 |
ClearTile_Dummy, /* clear_tile_proc */ |
|
67 |
GetAcceptedCargo_Dummy, /* get_accepted_cargo_proc */ |
|
68 |
GetTileDesc_Dummy, /* get_tile_desc_proc */ |
|
69 |
GetTileTrackStatus_Dummy, /* get_tile_track_status_proc */ |
|
70 |
ClickTile_Dummy, /* click_tile_proc */ |
|
71 |
AnimateTile_Dummy, /* animate_tile_proc */ |
|
72 |
TileLoop_Dummy, /* tile_loop_clear */ |
|
73 |
ChangeTileOwner_Dummy, /* change_tile_owner_clear */ |
|
74 |
NULL, /* get_produced_cargo_proc */ |
|
75 |
NULL, /* vehicle_enter_tile_proc */ |
|
76 |
NULL, /* vehicle_leave_tile_proc */ |
|
39 | 77 |
GetSlopeTileh_Dummy, /* get_slope_tileh_proc */ |
0 | 78 |
}; |
79 |