OpenTTD Source 20241224-master-gf74b0cf984
|
Cache for vehicle sprites and values relating to whether they should be updated before drawing, or calculating the viewport. More...
#include <vehicle_base.h>
Data Fields | |
Direction | last_direction |
Last direction we obtained sprites for. | |
bool | revalidate_before_draw |
We need to do a GetImage() and check bounds before drawing this sprite. | |
bool | is_viewport_candidate |
This vehicle can potentially be drawn on a viewport. | |
Rect | old_coord |
Co-ordinates from the last valid bounding box. | |
VehicleSpriteSeq | sprite_seq |
Vehicle appearance. | |
Cache for vehicle sprites and values relating to whether they should be updated before drawing, or calculating the viewport.
Definition at line 195 of file vehicle_base.h.
bool MutableSpriteCache::is_viewport_candidate |
This vehicle can potentially be drawn on a viewport.
Definition at line 198 of file vehicle_base.h.
Referenced by Vehicle::UpdateViewport().
Direction MutableSpriteCache::last_direction |
Last direction we obtained sprites for.
Definition at line 196 of file vehicle_base.h.
Referenced by SpecializedVehicle< T, Type >::UpdateViewport().
Rect MutableSpriteCache::old_coord |
Co-ordinates from the last valid bounding box.
Definition at line 199 of file vehicle_base.h.
Referenced by Vehicle::UpdateBoundingBoxCoordinates(), Vehicle::UpdateViewport(), Vehicle::Vehicle(), and Vehicle::~Vehicle().
bool MutableSpriteCache::revalidate_before_draw |
We need to do a GetImage() and check bounds before drawing this sprite.
Definition at line 197 of file vehicle_base.h.
Referenced by SpecializedVehicle< T, Type >::UpdateViewport(), and ViewportAddVehicles().
VehicleSpriteSeq MutableSpriteCache::sprite_seq |
Vehicle appearance.
Definition at line 200 of file vehicle_base.h.
Referenced by AddArticulatedParts(), AfterLoadVehiclesPhase2(), CmdBuildAircraft(), CmdBuildRailVehicle(), CmdBuildRailWagon(), CmdBuildRoadVehicle(), CmdBuildShip(), DisasterTick_Helicopter_Rotors(), DoDrawVehicle(), IncrementSprite(), Aircraft::MarkDirty(), SetAircraftPosition(), SpecializedVehicle< T, Type >::SpecializedVehicle(), Vehicle::UpdateBoundingBoxCoordinates(), SpecializedVehicle< T, Type >::UpdateViewport(), and ViewportAddVehicles().