yapf.h

Go to the documentation of this file.
00001 /* $Id: yapf.h 18809 2010-01-15 16:41:15Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef  YAPF_H
00013 #define  YAPF_H
00014 
00015 #include "../../direction_type.h"
00016 #include "../../station_type.h"
00017 #include "../../track_type.h"
00018 #include "../../vehicle_type.h"
00019 #include "../pathfinder_type.h"
00020 
00029 Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks);
00030 
00039 Trackdir YapfRoadVehicleChooseTrack(const RoadVehicle *v, TileIndex tile, DiagDirection enterdir, TrackdirBits trackdirs);
00040 
00052 Track YapfTrainChooseTrack(const Train *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool *path_not_found, bool reserve_track, struct PBSTileInfo *target);
00053 
00062 FindDepotData YapfRoadVehicleFindNearestDepot(const RoadVehicle *v, int max_penalty);
00063 
00072 FindDepotData YapfTrainFindNearestDepot(const Train *v, int max_distance);
00073 
00079 bool YapfTrainCheckReverse(const Train *v);
00080 
00090 bool YapfTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir td, bool override_railtype);
00091 
00092 #endif /* YAPF_H */

Generated on Sat Jul 31 21:37:50 2010 for OpenTTD by  doxygen 1.6.1