Add feature: realistic train braking
Add setting to select train braking model.
This commit is contained in:
@@ -178,6 +178,15 @@ public:
|
||||
return IsType(OT_GOTO_WAYPOINT) || IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this an order with a BaseStation destination?
|
||||
* @return True if the type is either #OT_IMPLICIT, #OT_GOTO_STATION or #OT_GOTO_WAYPOINT.
|
||||
*/
|
||||
inline bool IsBaseStationOrder() const
|
||||
{
|
||||
return IsType(OT_IMPLICIT) || IsType(OT_GOTO_STATION) || IsType(OT_GOTO_WAYPOINT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the destination of this order.
|
||||
* @pre IsType(OT_GOTO_WAYPOINT) || IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION).
|
||||
|
Reference in New Issue
Block a user