Merge branch 'order_occupancy-sx' into jgrpp
Conflicts: src/lang/english.txt src/saveload/extended_ver_sl.cpp src/saveload/extended_ver_sl.h src/settings_gui.cpp
This commit is contained in:
@@ -43,6 +43,8 @@ private:
|
||||
|
||||
CargoID refit_cargo; ///< Refit CargoID
|
||||
|
||||
uint8 occupancy; ///< Estimate of vehicle occupancy on departure, for the current order, 0 indicates invalid, 1 - 101 indicate 0 - 100%
|
||||
|
||||
uint16 wait_time; ///< How long in ticks to wait at the destination.
|
||||
uint16 travel_time; ///< How long in ticks the journey to this destination should take.
|
||||
uint16 max_speed; ///< How fast the vehicle may go on the way to the destination.
|
||||
@@ -218,6 +220,18 @@ public:
|
||||
*/
|
||||
inline void SetMaxSpeed(uint16 speed) { this->max_speed = speed; }
|
||||
|
||||
/**
|
||||
* Get the occupancy value
|
||||
* @return occupancy
|
||||
*/
|
||||
inline uint8 GetOccupancy() const { return this->occupancy; }
|
||||
|
||||
/**
|
||||
* Set the occupancy value
|
||||
* @param occupancy The occupancy to set
|
||||
*/
|
||||
inline void SetOccupancy(uint8 occupancy) { this->occupancy = occupancy; }
|
||||
|
||||
bool ShouldStopAtStation(const Vehicle *v, StationID station) const;
|
||||
bool CanLoadOrUnload() const;
|
||||
bool CanLeaveWithCargo(bool has_cargo) const;
|
||||
|
Reference in New Issue
Block a user