OpenTTD Source 20241224-master-gee860a5c8e
BaseVehicle Struct Reference

Base vehicle class. More...

#include <vehicle_type.h>

Inheritance diagram for BaseVehicle:
Vehicle SpecializedVehicle< Aircraft, VEH_AIRCRAFT > SpecializedVehicle< DisasterVehicle, VEH_DISASTER > SpecializedVehicle< EffectVehicle, VEH_EFFECT > SpecializedVehicle< RoadVehicle, Type > SpecializedVehicle< Ship, VEH_SHIP > SpecializedVehicle< Train, Type > SpecializedVehicle< T, Type > Aircraft DisasterVehicle EffectVehicle Ship GroundVehicle< RoadVehicle, VEH_ROAD > GroundVehicle< Train, VEH_TRAIN > GroundVehicle< T, Type > RoadVehicle Train

Data Fields

VehicleType type
 Type of vehicle.
 

Detailed Description

Base vehicle class.

Definition at line 49 of file vehicle_type.h.

Field Documentation

◆ type

VehicleType BaseVehicle::type

Type of vehicle.

Definition at line 51 of file vehicle_type.h.

Referenced by AddArticulatedParts(), AddVehicleToGroup(), AfterLoadGame(), AgeVehicle(), Vehicle::BeginLoading(), BuildDepotVehicleListProc(), RefitWindow::BuildRefitList(), BuildReplacementVehicle(), CanBuildVehicleInfrastructure(), CanVehicleUseStation(), CheckOrders(), CmdAutoreplaceVehicle(), CmdBuildVehicle(), CmdChangeServiceInt(), CmdChangeTimetable(), CmdCloneOrder(), CmdCloneVehicle(), CmdInsertOrder(), CmdModifyOrder(), CmdMoveOrder(), CmdRefitVehicle(), CmdRenameVehicle(), CmdSellVehicle(), CmdSkipToOrder(), CmdStartStopVehicle(), CollectTrackbitsFromCrashedVehiclesEnum(), Vehicle::Crash(), DecloneOrder(), DeleteGroupHighlightOfVehicle(), DeleteOrder(), DisasterTick_Ufo(), DoDrawVehicle(), DrawOrderString(), TimetableWindow::DrawTimetablePanel(), VehicleDetailsWindow::DrawVehicleDetails(), DrawVehicleImage(), DepotWindow::DrawVehicleInDepot(), RefitWindow::DrawWidget(), VehicleDetailsWindow::DrawWidget(), VehicleViewWindow::DrawWidget(), EnsureNoMovingShipProc(), EnsureNoShipProc(), EnsureNoTrainOnTrackBits(), EnsureNoVehicleOnGround(), EnsureNoVehicleProcZ(), EnumCheckRoadVehCrashTrain(), FindTrainCollideEnum(), FindTrainOnTrackEnum(), FindVehiclesInRoadStop(), FloodVehicleProc(), FollowTrainReservation(), FormatString(), SpecializedVehicle< T, Type >::From(), SpecializedVehicle< T, Type >::From(), GenerateVehicleSortList(), GroupStatistics::Get(), GetAircraftFlightLevelBounds(), GroupStatistics::GetAllGroup(), Vehicle::GetGroundVehicleCache(), Vehicle::GetGroundVehicleCache(), Vehicle::GetGroundVehicleFlags(), Vehicle::GetGroundVehicleFlags(), GetIncompatibleRefitOrderIdForAutoreplace(), GetLoadAmount(), Order::GetLocation(), GetNewCargoTypeForReplace(), GetNewEngineType(), GetOrderCmdFromTile(), GetOrderDistance(), NIHVehicle::GetParent(), GetSingleVehicleWidth(), GetTargetAirportIfValid(), GetVehicleCannotUseStationReason(), GetVehicleSet(), GetVehicleTunnelBridgeProc(), GetVehicleWidth(), Vehicle::HandleBreakdown(), Vehicle::HandlePathfindingResult(), Vehicle::HasEngineType(), InsertOrder(), IsCompanyBuildableVehicleType(), Vehicle::IsEngineCountable(), Vehicle::IsGroundVehicle(), IterateVehicleParts(), Vehicle::LeaveStation(), LoadUnloadVehicle(), Vehicle::NeedsAutorenewing(), NormaliseTrainHead(), OrdersWindow::OnClick(), TimetableWindow::OnClick(), VehicleViewWindow::OnClick(), DepotWindow::OnDragDrop(), VehicleDetailsWindow::OnInvalidateData(), TimetableWindow::OnPaint(), VehicleDetailsWindow::OnPaint(), VehicleViewWindow::OnPaint(), OrdersWindow::OnQueryTextFinished(), TimetableWindow::OnQueryTextFinished(), DepotWindow::OnVehicleSelect(), OrderGoesToStation(), Vehicle::PreDestructor(), ProcessOrders(), RefitVehicle(), Vehicle::ReleaseUnitNumber(), Vehicle::RemoveFromShared(), RemoveRoadStop(), ReplaceChain(), RoadVehUpdateCache(), Vehicle::SendToDepot(), SetMouseCursorVehicle(), OrdersWindow::SetStringParameters(), ShowCompanyGroupForVehicle(), ShowVehicleDetailsWindow(), ShowVehicleViewWindow(), Vehicle::ShowVisualEffect(), SpawnAdvancedVisualEffect(), StartStopVehicle(), TrainApproachingCrossingEnum(), TrainOnTileEnum(), TrainOnTileEnum(), TransferCargo(), TunnelBridgeIsFree(), UpdateLoadUnloadTicks(), UpdateNumEngineGroup(), UpdateOldAircraft(), UpdateOrderDest(), UpdateRoadVehPowerProc(), UpdateTrainPowerProc(), VehicleDetailsWindow::UpdateWidgetSize(), VehicleViewWindow::UpdateWidgetSize(), UsesWagonOverride(), Vehicle::Vehicle(), VehicleDetailsWindow::VehicleDetailsWindow(), VehicleEnter_Track(), VehicleEnterDepot(), VehicleResolverObject::VehicleResolverObject(), VerifyAutoreplaceRefitForOrders(), WhoCanServiceIndustry(), and Vehicle::~Vehicle().


The documentation for this struct was generated from the following file: