From d428da5a356a3d9036b21b502bc90488270cdca9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 3 Jan 2009 13:20:32 +0000 Subject: (svn r14801) -Codechange: don't reference Vehicle::num_orders directly but through a method GetNumOrders() (PhilSophus) --- src/vehicle_base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vehicle_base.h') diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 15f2df1aa..e49219ddb 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -512,6 +512,12 @@ public: */ inline bool IsOrderListShared() const { return this->previous_shared != NULL || this->next_shared != NULL; }; + /** + * Get the number of orders this vehicle has. + * @return the number of orders this vehicle has. + */ + inline VehicleOrderID GetNumOrders() const { return this->num_orders; } + /** * Copy certain configurations and statistics of a vehicle after successful autoreplace/renew * The function shall copy everything that cannot be copied by a command (like orders / group etc), -- cgit v1.2.3-70-g09d2