diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 22:55:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 22:55:41 +0000 |
commit | da5661a0c8870c532c393ec3d330c3fbb44eb8ac (patch) | |
tree | 93b9332d7e83e012a46777e2baf91bf323ea9fe9 /src/vehicle_base.h | |
parent | c4b627af422075ce4a0e1026c52f871dd3f146c0 (diff) | |
download | openttd-da5661a0c8870c532c393ec3d330c3fbb44eb8ac.tar.xz |
(svn r16393) -Codechange: move VehicleRail to Train.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 6f2a1c91c..841acb5bb 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -7,7 +7,6 @@ #include "vehicle_type.h" #include "track_type.h" -#include "rail_type.h" #include "cargo_type.h" #include "direction_type.h" #include "gfx_type.h" @@ -44,39 +43,6 @@ enum VehicleFlags { VF_AUTOFILL_PRES_WAIT_TIME, ///< Whether non-destructive auto-fill should preserve waiting times }; -struct VehicleRail { - /* Cached wagon override spritegroup */ - const struct SpriteGroup *cached_override; - - uint16 last_speed; // NOSAVE: only used in UI - - /* cached values, recalculated on load and each time a vehicle is added to/removed from the consist. */ - uint32 cached_power; ///< total power of the consist. - uint16 cached_max_speed; ///< max speed of the consist. (minimum of the max speed of all vehicles in the consist) - uint16 cached_total_length; ///< Length of the whole train, valid only for first engine. - uint8 cached_veh_length; ///< length of this vehicle in units of 1/8 of normal length, cached because this can be set by a callback - bool cached_tilt; ///< train can tilt; feature provides a bonus in curves - - /* cached values, recalculated when the cargo on a train changes (in addition to the conditions above) */ - uint32 cached_weight; ///< total weight of the consist. - uint32 cached_veh_weight; ///< weight of the vehicle. - uint32 cached_max_te; ///< max tractive effort of consist - - /** - * Position/type of visual effect. - * bit 0 - 3 = position of effect relative to vehicle. (0 = front, 8 = centre, 15 = rear) - * bit 4 - 5 = type of effect. (0 = default for engine class, 1 = steam, 2 = diesel, 3 = electric) - * bit 6 = disable visual effect. - * bit 7 = disable powered wagons. - */ - byte cached_vis_effect; - byte user_def_data; - - /* NOSAVE: for wagon override - id of the first engine in train - * 0xffff == not in train */ - EngineID first_engine; -}; - typedef Pool<Vehicle, VehicleID, 512, 64000> VehiclePool; extern VehiclePool _vehicle_pool; @@ -204,10 +170,6 @@ public: byte subtype; ///< subtype (Filled with values from EffectVehicles/TrainSubTypes/AircraftSubTypes) - union { - VehicleRail rail; - } u; - /* cached oftenly queried NewGRF values */ uint8 cache_valid; ///< Whether the caches are valid uint32 cached_var40; ///< Cache for NewGRF var 40 |