OpenTTD Source 20241224-master-gf74b0cf984
|
Functions related to depots. More...
Go to the source code of this file.
Functions | |
void | ShowDepotWindow (TileIndex tile, VehicleType type) |
Opens a depot window. | |
void | InitDepotWindowBlockSizes () |
Set the size of the blocks in the window so we can be sure that they are big enough for the vehicle sprites in the current game. | |
void | DeleteDepotHighlightOfVehicle (const Vehicle *v) |
Removes the highlight of a vehicle in a depot window. | |
bool | CanBuildDepotByTileh (DiagDirection direction, Slope tileh) |
Find out if the slope of the tile is suitable to build a depot of given direction. | |
Functions related to depots.
Definition in file depot_func.h.
|
inline |
Find out if the slope of the tile is suitable to build a depot of given direction.
direction | The direction in which the depot's exit points |
tileh | The slope of the tile in question |
Definition at line 27 of file depot_func.h.
References InclinedSlope(), IsSteepSlope(), and SLOPE_FLAT.
Referenced by AutoslopeCheckForEntranceEdge(), CheckBuildableTile(), CmdBuildRoadDepot(), and CmdBuildTrainDepot().
void DeleteDepotHighlightOfVehicle | ( | const Vehicle * | v | ) |
Removes the highlight of a vehicle in a depot window.
*v | Vehicle to remove all highlights from |
Definition at line 1181 of file depot_gui.cpp.
References _special_mouse_mode, FindWindowById(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, ResetObjectToPlace(), Vehicle::tile, WC_VEHICLE_DEPOT, and WSM_DRAGDROP.
Referenced by Vehicle::PreDestructor().
void InitDepotWindowBlockSizes | ( | ) |
Set the size of the blocks in the window so we can be sure that they are big enough for the vehicle sprites in the current game.
Definition at line 218 of file depot_gui.cpp.
References _consistent_train_width, EIT_IN_DEPOT, EIT_PURCHASE, Engine::IterateType(), VEH_COMPANY_END, and VEH_TRAIN.
Referenced by InitWindowSystem(), and ReInitAllWindows().
void ShowDepotWindow | ( | TileIndex | tile, |
VehicleType | type | ||
) |
Opens a depot window.
tile | The tile where the depot/hangar is located |
type | The type of vehicles in the depot |
Definition at line 1164 of file depot_gui.cpp.
References BringWindowToFrontById(), VEH_AIRCRAFT, VEH_ROAD, VEH_SHIP, VEH_TRAIN, and WC_VEHICLE_DEPOT.