summaryrefslogtreecommitdiff
path: root/src/pathfinder/npf/npf.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-02 17:56:02 +0000
committerrubidium <rubidium@openttd.org>2009-12-02 17:56:02 +0000
commit4ec4fdff36e96321773a2a087784e9fd4ec4105d (patch)
treec220ca47a65d32335c7b013425341a0e4f6762a5 /src/pathfinder/npf/npf.h
parent59f9163e37a7da7e8ef1cf52de8aa5e349ead5c1 (diff)
downloadopenttd-4ec4fdff36e96321773a2a087784e9fd4ec4105d.tar.xz
(svn r18382) -Codechange: make road vehicles behave more like trains 'around' stations and use pathfinder penalties to determine to which 'part' to go. Note that the pathfinder penalties for drive through stops are currently only looking at the occupation of the first in a row, but this is to change later on.
Diffstat (limited to 'src/pathfinder/npf/npf.h')
-rw-r--r--src/pathfinder/npf/npf.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pathfinder/npf/npf.h b/src/pathfinder/npf/npf.h
index 61a4409a1..bdffa164a 100644
--- a/src/pathfinder/npf/npf.h
+++ b/src/pathfinder/npf/npf.h
@@ -33,10 +33,12 @@ enum {
/* Meant to be stored in AyStar.targetdata */
struct NPFFindStationOrTileData {
- TileIndex dest_coords; ///< An indication of where the station is, for heuristic purposes, or the target tile
- StationID station_index; ///< station index we're heading for, or INVALID_STATION when we're heading for a tile
- bool reserve_path; ///< Indicates whether the found path should be reserved
- const Vehicle *v; ///< The vehicle we are pathfinding for
+ TileIndex dest_coords; ///< An indication of where the station is, for heuristic purposes, or the target tile
+ StationID station_index; ///< station index we're heading for, or INVALID_STATION when we're heading for a tile
+ bool reserve_path; ///< Indicates whether the found path should be reserved
+ StationType station_type; ///< The type of station we're heading for
+ bool not_articulated; ///< The (road) vehicle is not articulated
+ const Vehicle *v; ///< The vehicle we are pathfinding for
};
/* Indices into AyStar.userdata[] */