equal
deleted
inserted
replaced
2 |
2 |
3 /** @file landscape.h */ |
3 /** @file landscape.h */ |
4 |
4 |
5 #ifndef LANDSCAPE_H |
5 #ifndef LANDSCAPE_H |
6 #define LANDSCAPE_H |
6 #define LANDSCAPE_H |
|
7 |
|
8 #include "core/geometry_type.hpp" |
|
9 #include "tile_cmd.h" |
|
10 #include "slope_type.h" |
|
11 #include "direction_type.h" |
7 |
12 |
8 enum { |
13 enum { |
9 SNOW_LINE_MONTHS = 12, |
14 SNOW_LINE_MONTHS = 12, |
10 SNOW_LINE_DAYS = 32, |
15 SNOW_LINE_DAYS = 32, |
11 }; |
16 }; |
25 |
30 |
26 uint GetPartialZ(int x, int y, Slope corners); |
31 uint GetPartialZ(int x, int y, Slope corners); |
27 uint GetSlopeZ(int x, int y); |
32 uint GetSlopeZ(int x, int y); |
28 void GetSlopeZOnEdge(Slope tileh, DiagDirection edge, int *z1, int *z2); |
33 void GetSlopeZOnEdge(Slope tileh, DiagDirection edge, int *z1, int *z2); |
29 int GetSlopeZInCorner(Slope tileh, Corner corner); |
34 int GetSlopeZInCorner(Slope tileh, Corner corner); |
|
35 Slope GetFoundationSlope(TileIndex tile, uint* z); |
30 |
36 |
31 static inline Point RemapCoords(int x, int y, int z) |
37 static inline Point RemapCoords(int x, int y, int z) |
32 { |
38 { |
33 Point pt; |
39 Point pt; |
34 pt.x = (y - x) * 2; |
40 pt.x = (y - x) * 2; |
45 void DrawFoundation(TileInfo *ti, Foundation f); |
51 void DrawFoundation(TileInfo *ti, Foundation f); |
46 |
52 |
47 void DoClearSquare(TileIndex tile); |
53 void DoClearSquare(TileIndex tile); |
48 void RunTileLoop(); |
54 void RunTileLoop(); |
49 |
55 |
50 uint32 GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode); |
|
51 void GetAcceptedCargo(TileIndex tile, AcceptedCargo ac); |
|
52 void ChangeTileOwner(TileIndex tile, PlayerID old_player, PlayerID new_player); |
|
53 void AnimateTile(TileIndex tile); |
|
54 void ClickTile(TileIndex tile); |
|
55 void GetTileDesc(TileIndex tile, TileDesc *td); |
|
56 |
|
57 void InitializeLandscape(); |
56 void InitializeLandscape(); |
58 void GenerateLandscape(byte mode); |
57 void GenerateLandscape(byte mode); |
59 |
|
60 void ConvertGroundTilesIntoWaterTiles(); |
|
61 |
58 |
62 TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); |
59 TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); |
63 |
60 |
64 #endif /* LANDSCAPE_H */ |
61 #endif /* LANDSCAPE_H */ |