(svn r23505) -Add: Indication in the order list if the next destination of an order is out of range.

This commit is contained in:
michi_cc
2011-12-13 00:43:48 +00:00
parent 957b643ae6
commit 708b58b484
52 changed files with 78 additions and 49 deletions

View File

@@ -79,6 +79,15 @@ public:
void MakeConditional(VehicleOrderID order);
void MakeImplicit(StationID destination);
/**
* Is this a 'goto' order with a real destination?
* @return True if the type sis either #OT_GOTO_WAYPOINT, #OT_GOTO_DEPOT or #OT_GOTO_STATION.
*/
inline bool IsGotoOrder() const
{
return IsType(OT_GOTO_WAYPOINT) || IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION);
}
/**
* Gets the destination of this order.
* @pre IsType(OT_GOTO_WAYPOINT) || IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION).