yapf.h
Go to the documentation of this file.00001
00002
00005 #ifndef YAPF_H
00006 #define YAPF_H
00007
00008 #include "../debug.h"
00009
00017 Trackdir YapfChooseShipTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks);
00018
00025 Trackdir YapfChooseRoadTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir);
00026
00035 Trackdir YapfChooseRailTrack(Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool *path_not_found);
00036
00042 uint YapfRoadVehDistanceToTile(const Vehicle* v, TileIndex tile);
00043
00047 Depot* YapfFindNearestRoadDepot(const Vehicle *v);
00048
00059 bool YapfFindNearestRailDepotTwoWay(Vehicle *v, int max_distance, int reverse_penalty, TileIndex* depot_tile, bool* reversed);
00060
00062 bool YapfCheckReverseTrain(Vehicle* v);
00063
00065 void YapfNotifyTrackLayoutChange(TileIndex tile, Track track);
00066
00068 void* NpfBeginInterval();
00069 int NpfEndInterval(void* perf);
00070
00071
00072 extern int _aystar_stats_open_size;
00073 extern int _aystar_stats_closed_size;
00074
00075
00077 enum {
00078 YAPF_TILE_LENGTH = 100,
00079 YAPF_TILE_CORNER_LENGTH = 71
00080 };
00081
00082 #endif