equal
deleted
inserted
replaced
3 /** @file pathfind.h */ |
3 /** @file pathfind.h */ |
4 |
4 |
5 #ifndef PATHFIND_H |
5 #ifndef PATHFIND_H |
6 #define PATHFIND_H |
6 #define PATHFIND_H |
7 |
7 |
8 #include "direction.h" |
8 #include "direction_type.h" |
9 #include "openttd.h" |
|
10 |
9 |
11 enum { |
10 enum { |
12 STR_FACTOR = 2, |
11 STR_FACTOR = 2, |
13 DIAG_FACTOR = 3 |
12 DIAG_FACTOR = 3 |
14 }; |
13 }; |
54 |
53 |
55 RememberData rd; |
54 RememberData rd; |
56 |
55 |
57 TrackdirByte the_dir; |
56 TrackdirByte the_dir; |
58 |
57 |
59 TransportTypeByte tracktype; |
58 TransportType tracktype; |
60 uint sub_type; |
59 uint sub_type; |
61 |
60 |
62 byte var2; |
61 byte var2; |
63 bool disable_tile_hash; |
62 bool disable_tile_hash; |
64 bool hasbit_13; |
63 bool hasbit_13; |
75 TileIndex tile; |
74 TileIndex tile; |
76 int length; |
75 int length; |
77 }; |
76 }; |
78 FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, DiagDirection direction); |
77 FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, DiagDirection direction); |
79 |
78 |
80 void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypeMask railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data); |
79 void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data); |
81 |
80 |
82 #endif /* PATHFIND_H */ |
81 #endif /* PATHFIND_H */ |