(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.

This commit is contained in:
fonsinchen
2013-10-22 18:34:10 +00:00
parent 479bdf65ed
commit fb281ce23c
9 changed files with 32 additions and 205 deletions

View File

@@ -150,9 +150,6 @@ private:
Vehicle *next_shared; ///< pointer to the next vehicle that shares the order
Vehicle *previous_shared; ///< NOSAVE: pointer to the previous vehicle in the shared order chain
uint RefreshNextHopsStats(CapacitiesMap &capacities,
RefitList &refit_capacities, const Order *first, const Order *cur,
const Order *next, uint hops, bool was_refit, bool has_cargo);
public:
friend const SaveLoad *GetVehicleDescription(VehicleType vt); ///< So we can use private/protected variables in the saveload code
friend void FixOldVehicles();
@@ -635,8 +632,6 @@ public:
void ResetRefitCaps();
void RefreshNextHopsStats();
/**
* 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),