pathfinder_type.h

Go to the documentation of this file.
00001 /* $Id: pathfinder_type.h 18481 2009-12-13 10:48:44Z 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 PATHFINDER_TYPE_H
00013 #define PATHFINDER_TYPE_H
00014 
00016 static const int NPF_TILE_LENGTH = 100;
00017 
00024 static const int NPF_INFINITE_PENALTY = 1000 * NPF_TILE_LENGTH;
00025 
00026 
00028 static const int YAPF_TILE_LENGTH = 100;
00029 
00031 static const int YAPF_TILE_CORNER_LENGTH = 71;
00032 
00039 static const int YAPF_INFINITE_PENALTY = 1000 * YAPF_TILE_LENGTH;
00040 
00044 struct FindDepotData {
00045   TileIndex tile;   
00046   uint best_length; 
00047   bool reverse;     
00048 
00055   FindDepotData(TileIndex tile = INVALID_TILE, uint best_length = UINT_MAX, bool reverse = false) :
00056     tile(tile), best_length(best_length), reverse(reverse)
00057   {
00058   }
00059 };
00060 
00061 #endif /* PATHFINDER_TYPE_H */

Generated on Tue Jan 5 21:02:56 2010 for OpenTTD by  doxygen 1.5.6