OpenTTD Source
20240917-master-g9ab0a47812
|
Go to the documentation of this file.
10 #ifndef EFFECTVEHICLE_BASE_H
11 #define EFFECTVEHICLE_BASE_H
uint16_t animation_state
State primarily used to change the graphics/behaviour.
virtual ~EffectVehicle()=default
We want to 'destruct' the right class.
EffectVehicle()
We don't want GCC to zero our struct! It already is zeroed and has an index!
Class defining several overloaded accessors so we don't have to cast vehicle types that often.
bool Tick() override
Calls the tick handler of the vehicle.
TransparencyOption
Transparency option bits: which position in _transparency_opt stands for which transparency.
uint8_t animation_substate
Sub state to time the change of the graphics/behaviour.
A special vehicle is one of the following:
TransparencyOption GetTransparencyOption() const
Determines the transparency option affecting the effect.
void UpdateDeltaXY() override
Updates the x and y offsets and the size of the sprite used for this vehicle.