equal
deleted
inserted
replaced
135 * bit 4 - 5 = type of effect. (0 = default for engine class, 1 = steam, 2 = diesel, 3 = electric) |
135 * bit 4 - 5 = type of effect. (0 = default for engine class, 1 = steam, 2 = diesel, 3 = electric) |
136 * bit 6 = disable visual effect. |
136 * bit 6 = disable visual effect. |
137 * bit 7 = disable powered wagons. |
137 * bit 7 = disable powered wagons. |
138 */ |
138 */ |
139 byte cached_vis_effect; |
139 byte cached_vis_effect; |
|
140 byte user_def_data; |
140 |
141 |
141 /* NOSAVE: for wagon override - id of the first engine in train |
142 /* NOSAVE: for wagon override - id of the first engine in train |
142 * 0xffff == not in train */ |
143 * 0xffff == not in train */ |
143 EngineID first_engine; |
144 EngineID first_engine; |
144 |
145 |
339 GroupID group_id; ///< Index of group Pool array |
340 GroupID group_id; ///< Index of group Pool array |
340 |
341 |
341 /* Used for timetabling. */ |
342 /* Used for timetabling. */ |
342 uint32 current_order_time; ///< How many ticks have passed since this order started. |
343 uint32 current_order_time; ///< How many ticks have passed since this order started. |
343 int32 lateness_counter; ///< How many ticks late (or early if negative) this vehicle is. |
344 int32 lateness_counter; ///< How many ticks late (or early if negative) this vehicle is. |
|
345 |
|
346 SpriteID colormap; // NOSAVE: cached color mapping |
344 |
347 |
345 union { |
348 union { |
346 VehicleRail rail; |
349 VehicleRail rail; |
347 VehicleAir air; |
350 VehicleAir air; |
348 VehicleRoad road; |
351 VehicleRoad road; |
588 uint8 CalcPercentVehicleFilled(Vehicle *v, StringID *color); |
591 uint8 CalcPercentVehicleFilled(Vehicle *v, StringID *color); |
589 |
592 |
590 void InitializeTrains(); |
593 void InitializeTrains(); |
591 byte VehicleRandomBits(); |
594 byte VehicleRandomBits(); |
592 void ResetVehiclePosHash(); |
595 void ResetVehiclePosHash(); |
|
596 void ResetVehicleColorMap(); |
|
597 void CheckVehicle32Day(Vehicle *v); |
593 |
598 |
594 bool CanRefitTo(EngineID engine_type, CargoID cid_to); |
599 bool CanRefitTo(EngineID engine_type, CargoID cid_to); |
595 CargoID FindFirstRefittableCargo(EngineID engine_type); |
600 CargoID FindFirstRefittableCargo(EngineID engine_type); |
596 CommandCost GetRefitCost(EngineID engine_type); |
601 CommandCost GetRefitCost(EngineID engine_type); |
597 |
602 |