OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x00 handler for aircraft. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_cargo.h"
#include "../newgrf_engine.h"
#include "../newgrf_sound.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal_vehicle.h"
#include "newgrf_internal.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static ChangeInfoResult | AircraftVehicleChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
Define properties for aircraft. | |
NewGRF Action 0x00 handler for aircraft.
Definition in file newgrf_act0_aircraft.cpp.
|
static |
Define properties for aircraft.
first | Local ID of the first vehicle. |
last | Local ID of the last vehicle. |
prop | The property to change. |
buf | The property value. |
Definition at line 29 of file newgrf_act0_aircraft.cpp.
References _gted, _loaded_newgrf_features, AlterVehicleListOrder(), AssignBit(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::base(), EngineInfo::base_intro, EngineInfo::callback_mask, EngineInfo::cargo_age_period, CIR_INVALID_ID, CIR_SUCCESS, CommonVehicleChangeInfo(), GetCargoTranslation(), GetNewEngine(), GetNewGRFSoundID(), GrfProcessingState::grffile, GRFLoadedFeatures::has_2CC, Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem< Tpool >::index, IsValidCargoType(), AircraftVehicleInfo::mail_capacity, AircraftVehicleInfo::max_range, AircraftVehicleInfo::max_speed, EngineInfo::misc_flags, AircraftVehicleInfo::passenger_capacity, PROP_AIRCRAFT_CARGO_AGE_PERIOD, PROP_AIRCRAFT_COST_FACTOR, PROP_AIRCRAFT_MAIL_CAPACITY, PROP_AIRCRAFT_PASSENGER_CAPACITY, PROP_AIRCRAFT_RANGE, PROP_AIRCRAFT_RUNNING_COST_FACTOR, PROP_AIRCRAFT_SPEED, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadExtendedByte(), ByteReader::ReadWord(), EngineInfo::retire_early, SB(), SetBit(), AircraftVehicleInfo::subtype, BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), TranslateRefitMask(), Uses2CC, EngineInfo::variant_id, and VEH_AIRCRAFT.