Merge branch 'more_cond_orders-sx' into jgrpp
Conflicts: src/order_base.h src/order_gui.cpp src/saveload/extended_ver_sl.cpp src/saveload/extended_ver_sl.h
This commit is contained in:
@@ -44,6 +44,7 @@ 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%
|
||||
int8 jump_counter; ///< Counter for the 'jump xx% of times' option
|
||||
|
||||
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.
|
||||
@@ -128,6 +129,14 @@ public:
|
||||
|
||||
void SetRefit(CargoID cargo);
|
||||
|
||||
/**
|
||||
* Update the jump_counter of this order.
|
||||
* @param the jump chance in %.
|
||||
* @return whether to jump or not.
|
||||
* @pre IsType(OT_CONDITIONAL) && this->GetConditionVariable() == OCV_PERCENT.
|
||||
*/
|
||||
bool UpdateJumpCounter(uint8 percent);
|
||||
|
||||
/** How must the consist be loaded? */
|
||||
inline OrderLoadFlags GetLoadType() const { return (OrderLoadFlags)GB(this->flags, 4, 3); }
|
||||
/** How must the consist be unloaded? */
|
||||
|
||||
Reference in New Issue
Block a user