MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetIndustryTileSpec

Function GetIndustryTileSpec

src/industry_cmd.cpp:140–144  ·  view source on GitHub ↗

* Accessor for array _industry_tile_specs. * This will ensure at once : proper access and * not allowing modifications of it. * @param gfx of industrytile (which is the index in _industry_tile_specs) * @pre gfx < INVALID_INDUSTRYTILE * @return a pointer to the corresponding industrytile spec */

Source from the content-addressed store, hash-verified

138 * @return a pointer to the corresponding industrytile spec
139 */
140const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx)
141{
142 assert(gfx < NUM_INDUSTRYTILES);
143 return &_industry_tile_specs[gfx];
144}
145
146Industry::~Industry()
147{

Callers 15

DrawTile_IndustryFunction · 0.85
GetFoundation_IndustryFunction · 0.85
ClearTile_IndustryFunction · 0.85
AnimateTile_IndustryFunction · 0.85
TileLoop_IndustryFunction · 0.85
DoCreateNewIndustryFunction · 0.85
TerraformTile_IndustryFunction · 0.85
GetVariableMethod · 0.85
GetIndTileGrffileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected