Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef YAPF_H
00013 #define YAPF_H
00014
00015 #include "../../direction_type.h"
00016 #include "../../track_type.h"
00017 #include "../../vehicle_type.h"
00018 #include "../pathfinder_type.h"
00019
00029 Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found);
00030
00036 bool YapfShipCheckReverse(const Ship *v);
00037
00047 Trackdir YapfRoadVehicleChooseTrack(const RoadVehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs, bool &path_found);
00048
00060 Track YapfTrainChooseTrack(const Train *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found, bool reserve_track, struct PBSTileInfo *target);
00061
00070 FindDepotData YapfRoadVehicleFindNearestDepot(const RoadVehicle *v, int max_penalty);
00071
00080 FindDepotData YapfTrainFindNearestDepot(const Train *v, int max_distance);
00081
00087 bool YapfTrainCheckReverse(const Train *v);
00088
00098 bool YapfTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir td, bool override_railtype);
00099
00100 #endif