(svn r21519) -Codechange: Allow direct access to the GroundVehicleCache from a Vehicle.

This commit is contained in:
terkhen
2010-12-14 21:31:00 +00:00
parent 74c061c29a
commit f7c4d35f67
3 changed files with 53 additions and 27 deletions

View File

@@ -98,6 +98,7 @@ extern VehiclePool _vehicle_pool;
/* Some declarations of functions, so we can make them friendly */
struct SaveLoad;
struct GroundVehicleCache;
extern const SaveLoad *GetVehicleDescription(VehicleType vt);
struct LoadgameState;
extern bool LoadOldVehicle(LoadgameState *ls, int num);
@@ -239,6 +240,9 @@ public:
void BeginLoading();
void LeaveStation();
GroundVehicleCache *GetGroundVehicleCache();
const GroundVehicleCache *GetGroundVehicleCache() const;
/**
* Handle the loading of the vehicle; when not it skips through dummy
* orders and does nothing in all other cases.