8 |
8 |
9 /* landscape.c */ |
9 /* landscape.c */ |
10 void FindLandscapeHeight(TileInfo *ti, uint x, uint y); |
10 void FindLandscapeHeight(TileInfo *ti, uint x, uint y); |
11 void FindLandscapeHeightByTile(TileInfo *ti, TileIndex tile); |
11 void FindLandscapeHeightByTile(TileInfo *ti, TileIndex tile); |
12 |
12 |
13 void DoClearSquare(uint tile); |
13 void DoClearSquare(TileIndex tile); |
14 void CDECL ModifyTile(uint tile, uint flags, ...); |
14 void CDECL ModifyTile(TileIndex tile, uint flags, ...); |
15 void RunTileLoop(void); |
15 void RunTileLoop(void); |
16 |
16 |
17 uint GetPartialZ(int x, int y, int corners); |
17 uint GetPartialZ(int x, int y, int corners); |
18 uint GetSlopeZ(int x, int y); |
18 uint GetSlopeZ(int x, int y); |
19 uint32 GetTileTrackStatus(uint tile, TransportType mode); |
19 uint32 GetTileTrackStatus(TileIndex tile, TransportType mode); |
20 void GetAcceptedCargo(uint tile, AcceptedCargo ac); |
20 void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac); |
21 void ChangeTileOwner(uint tile, byte old_player, byte new_player); |
21 void ChangeTileOwner(TileIndex tile, byte old_player, byte new_player); |
22 void AnimateTile(uint tile); |
22 void AnimateTile(TileIndex tile); |
23 void ClickTile(uint tile); |
23 void ClickTile(TileIndex tile); |
24 void GetTileDesc(uint tile, TileDesc *td); |
24 void GetTileDesc(TileIndex tile, TileDesc *td); |
25 void DrawTile(TileInfo *ti); |
25 void DrawTile(TileInfo *ti); |
26 void UpdateTownMaxPass(Town *t); |
26 void UpdateTownMaxPass(Town *t); |
27 |
27 |
28 bool IsValidTile(uint tile); |
28 bool IsValidTile(TileIndex tile); |
29 |
29 |
30 static inline Point RemapCoords(int x, int y, int z) |
30 static inline Point RemapCoords(int x, int y, int z) |
31 { |
31 { |
32 #if !defined(NEW_ROTATION) |
32 #if !defined(NEW_ROTATION) |
33 Point pt; |
33 Point pt; |