equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
|
2 |
|
3 /** @file pathfind.h */ |
2 |
4 |
3 #ifndef PATHFIND_H |
5 #ifndef PATHFIND_H |
4 #define PATHFIND_H |
6 #define PATHFIND_H |
5 |
7 |
6 #include "direction.h" |
8 #include "direction.h" |
58 byte var2; |
60 byte var2; |
59 bool disable_tile_hash; |
61 bool disable_tile_hash; |
60 bool hasbit_13; |
62 bool hasbit_13; |
61 |
63 |
62 uint16 hash_head[0x400]; |
64 uint16 hash_head[0x400]; |
63 TileIndex hash_tile[0x400]; /* stores the link index when multi link. */ |
65 TileIndex hash_tile[0x400]; ///< stores the link index when multi link. |
64 |
66 |
65 TrackPathFinderLink links[0x400]; /* hopefully, this is enough. */ |
67 TrackPathFinderLink links[0x400]; ///< hopefully, this is enough. |
66 }; |
68 }; |
67 |
69 |
68 void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data); |
70 void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data); |
69 |
71 |
70 struct FindLengthOfTunnelResult { |
72 struct FindLengthOfTunnelResult { |