(svn r19215) -Codechange: Add Order::GetLocation() to deduplicate code.

This commit is contained in:
frosch
2010-02-22 20:36:20 +00:00
parent d23b9fb964
commit b7bfae70a8
3 changed files with 20 additions and 27 deletions

View File

@@ -209,6 +209,7 @@ public:
inline void SetConditionValue(uint16 value) { SB(this->dest, 0, 11, value); }
bool ShouldStopAtStation(const Vehicle *v, StationID station) const;
TileIndex GetLocation(const Vehicle *v) const;
/** Checks if this order has travel_time and if needed wait_time set. */
inline bool IsCompletelyTimetabled() const