# pathfinder_type.h

Go to the documentation of this file.

    00001 /* $Id: pathfinder_type.h 24900 2013-01-08 22:46:42Z planetmaker $ */
    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
    00015 #include "../tile_type.h"
    00016
    00018 static const int NPF_TILE_LENGTH = 100;
    00019
    00026 static const int NPF_INFINITE_PENALTY = 1000 * NPF_TILE_LENGTH;
    00027
    00028
    00030 static const int YAPF_TILE_LENGTH = 100;
    00031
    00033 static const int YAPF_TILE_CORNER_LENGTH = 71;
    00034
    00041 static const int YAPF_INFINITE_PENALTY = 1000 * YAPF_TILE_LENGTH;
    00042
    00046 struct FindDepotData {
    00047   TileIndex tile;
    00048   uint best_length;
    00049   bool reverse;
    00050
    00057   FindDepotData(TileIndex tile = INVALID_TILE, uint best_length = UINT_MAX, bool reverse = false) :
    00058     tile(tile), best_length(best_length), reverse(reverse)
    00059   {
    00060   }
    00061 };
    00062
    00063 #endif /* PATHFINDER_TYPE_H */