diff options
author | rubidium <rubidium@openttd.org> | 2009-04-12 14:11:14 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-12 14:11:14 +0000 |
commit | 5790293af6404ab5eb941ba9f67141631ecf621d (patch) | |
tree | 3db95c099e2a5c153a8ac783d99515c243755588 /src/order_type.h | |
parent | e85e8ca4dbd6344630c934acd6b69c487aba0236 (diff) | |
download | openttd-5790293af6404ab5eb941ba9f67141631ecf621d.tar.xz |
(svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station.
Diffstat (limited to 'src/order_type.h')
-rw-r--r-- | src/order_type.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/order_type.h b/src/order_type.h index 0a43dc8f7..8823e8a41 100644 --- a/src/order_type.h +++ b/src/order_type.h @@ -72,6 +72,16 @@ enum OrderNonStopFlags { }; /** + * Where to stop the trains. + */ +enum OrderStopLocation { + OSL_PLATFORM_NEAR_END = 0, ///< Stop at the near end of the platform + OSL_PLATFORM_MIDDLE = 1, ///< Stop at the middle of the platform + OSL_PLATFORM_FAR_END = 2, ///< Stop at the far end of the platform + OSL_END +}; + +/** * Reasons that could cause us to go to the depot. */ enum OrderDepotTypeFlags { @@ -122,7 +132,8 @@ enum OrderConditionComparator { * Enumeration for the data to set in CmdModifyOrder. */ enum ModifyOrderFlags { - MOF_NON_STOP, ///< Passes a OrderNonStopFlags. + MOF_NON_STOP, ///< Passes an OrderNonStopFlags. + MOF_STOP_LOCATION, ///< Passes an OrderStopLocation. MOF_UNLOAD, ///< Passes an OrderUnloadType. MOF_LOAD, ///< Passes an OrderLoadType MOF_DEPOT_ACTION, ///< Selects the OrderDepotAction |