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