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_base.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_base.h')
-rw-r--r-- | src/order_base.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/order_base.h b/src/order_base.h index 44e8d9c15..7b0f0ab13 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -166,8 +166,10 @@ public: inline OrderLoadFlags GetLoadType() const { return (OrderLoadFlags)GB(this->flags, 4, 4); } /** How must the consist be unloaded? */ inline OrderUnloadFlags GetUnloadType() const { return (OrderUnloadFlags)GB(this->flags, 0, 4); } - /** Where must we stop? */ + /** At which stations must we stop? */ inline OrderNonStopFlags GetNonStopType() const { return (OrderNonStopFlags)GB(this->type, 6, 2); } + /** Where must we stop at the platform? */ + inline OrderStopLocation GetStopLocation() const { return (OrderStopLocation)GB(this->type, 4, 2); } /** What caused us going to the depot? */ inline OrderDepotTypeFlags GetDepotOrderType() const { return (OrderDepotTypeFlags)GB(this->flags, 0, 4); } /** What are we going to do when in the depot. */ @@ -187,6 +189,8 @@ public: inline void SetUnloadType(OrderUnloadFlags unload_type) { SB(this->flags, 0, 4, unload_type); } /** Set whether we must stop at stations or not. */ inline void SetNonStopType(OrderNonStopFlags non_stop_type) { SB(this->type, 6, 2, non_stop_type); } + /** Set where we must stop at the platform. */ + inline void SetStopLocation(OrderStopLocation stop_location) { SB(this->type, 4, 2, stop_location); } /** Set the cause to go to the depot. */ inline void SetDepotOrderType(OrderDepotTypeFlags depot_order_type) { SB(this->flags, 0, 4, depot_order_type); } /** Set what we are going to do in the depot. */ |