src/pathfind.h
branchcpp_gui
changeset 6303 84c215fc8eb8
parent 6298 c30fe89622df
child 6719 4cc327ad39d5
equal deleted inserted replaced
6302:bd80897189ba 6303:84c215fc8eb8
     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 {