# industry_cmd.cpp File Reference

`#include "stdafx.h"`
`#include "openttd.h"`
`#include "clear_map.h"`
`#include "industry_map.h"`
`#include "station_map.h"`
`#include "train.h"`
`#include "landscape.h"`
`#include "viewport_func.h"`
`#include "command_func.h"`
`#include "industry.h"`
`#include "town.h"`
`#include "news.h"`
`#include "saveload.h"`
`#include "variables.h"`
`#include "genworld.h"`
`#include "water_map.h"`
`#include "tree_map.h"`
`#include "cargotype.h"`
`#include "newgrf.h"`
`#include "newgrf_commons.h"`
`#include "newgrf_industries.h"`
`#include "newgrf_industrytiles.h"`
`#include "newgrf_callbacks.h"`
`#include "autoslope.h"`
`#include "transparency.h"`
`#include "water.h"`
`#include "strings_func.h"`
`#include "tile_cmd.h"`
`#include "functions.h"`
`#include "window_func.h"`
`#include "date_func.h"`
`#include "vehicle_func.h"`
`#include "sound_func.h"`
`#include "table/strings.h"`
`#include "table/sprites.h"`
`#include "table/industry_land.h"`
`#include "table/build_industry.h"`

Go to the source code of this file.

## Data Structures
struct | ProbabilityHelper
| Simple helper that will collect data for the generation of industries. More...
## Typedefs
typedef void | IndustryDrawTileProc (const TileInfo *ti)
typedef bool | CheckNewIndustryProc (TileIndex tile)
## Enumerations
enum | ProductionLevels { PRODLEVEL_CLOSURE = 0x00, PRODLEVEL_MINIMUM = 0x04, PRODLEVEL_DEFAULT = 0x10, PRODLEVEL_MAXIMUM = 0x80 }
| Production level maximum, minimum and default values. More...
enum | { NB_NUMOFINDUSTRY = 11, NB_DIFFICULTY_LEVEL = 5 }
enum | { PERCENT_TRANSPORTED_60 = 153, PERCENT_TRANSPORTED_80 = 204 }
## Functions
void | ShowIndustryViewWindow (int industry)
void | BuildOilRig (TileIndex tile)
void | ResetIndustries ()
| This function initialize the spec arrays of both industry and industry tiles.
void | ResetIndustryCreationProbility (IndustryType type)
IndustryType | GetIndustryType (TileIndex tile)
| Retrieve the type for this industry.
const IndustrySpec * | GetIndustrySpec (IndustryType thistype)
| Accessor for array _industry_specs.
const IndustryTileSpec * | GetIndustryTileSpec (IndustryGfx gfx)
| Accessor for array _industry_tile_specs.
static void | IndustryDrawSugarMine (const TileInfo *ti)
static void | IndustryDrawToffeeQuarry (const TileInfo *ti)
static void | IndustryDrawBubbleGenerator (const TileInfo *ti)
static void | IndustryDrawToyFactory (const TileInfo *ti)
static void | IndustryDrawCoalPlantSparks (const TileInfo *ti)
static void | DrawTile_Industry (TileInfo *ti)
static uint | GetSlopeZ_Industry (TileIndex tile, uint x, uint y)
static Foundation | GetFoundation_Industry (TileIndex tile, Slope tileh)
static void | GetAcceptedCargo_Industry (TileIndex tile, AcceptedCargo ac)
static void | GetTileDesc_Industry (TileIndex tile, TileDesc *td)
static CommandCost | ClearTile_Industry (TileIndex tile, byte flags)
static void | TransportIndustryGoods (TileIndex tile)
static void | AnimateTile_Industry (TileIndex tile)
static void | CreateIndustryEffectSmoke (TileIndex tile)
static void | MakeIndustryTileBigger (TileIndex tile)
static void | TileLoopIndustry_BubbleGenerator (TileIndex tile)
static void | TileLoop_Industry (TileIndex tile)
static void | ClickTile_Industry (TileIndex tile)
static TrackStatus | GetTileTrackStatus_Industry (TileIndex tile, TransportType mode, uint sub_mode, DiagDirection side)
static void | GetProducedCargo_Industry (TileIndex tile, CargoID *b)
static void | ChangeTileOwner_Industry (TileIndex tile, PlayerID old_player, PlayerID new_player)
static bool | IsBadFarmFieldTile (TileIndex tile)
static bool | IsBadFarmFieldTile2 (TileIndex tile)
static void | SetupFarmFieldFence (TileIndex tile, int size, byte type, Axis direction)
static void | PlantFarmField (TileIndex tile, IndustryID industry)
void | PlantRandomFarmField (const Industry *i)
static bool | SearchLumberMillTrees (TileIndex tile, uint32 data)
| Search callback function for ChopLumberMillTrees.
static void | ChopLumberMillTrees (Industry *i)
| Perform a circular search around the Lumber Mill in order to find trees to cut.
static void | ProduceIndustryGoods (Industry *i)
void | OnTick_Industry ()
static bool | CheckNewIndustry_NULL (TileIndex tile)
static bool | CheckNewIndustry_Forest (TileIndex tile)
static bool | CheckNewIndustry_OilRefinery (TileIndex tile)
static bool | CheckNewIndustry_OilRig (TileIndex tile)
static bool | CheckNewIndustry_Farm (TileIndex tile)
static bool | CheckNewIndustry_Plantation (TileIndex tile)
static bool | CheckNewIndustry_Water (TileIndex tile)
static bool | CheckNewIndustry_Lumbermill (TileIndex tile)
static bool | CheckNewIndustry_BubbleGen (TileIndex tile)
static bool | CheckSuitableIndustryPos (TileIndex tile)
static const Town * | CheckMultipleIndustryInTown (TileIndex tile, int type)
bool | IsSlopeRefused (Slope current, Slope refused)
static bool | CheckIfIndustryTilesAreFree (TileIndex tile, const IndustryTileTable *it, uint itspec_index, int type, bool *custom_shape_check=NULL)
static bool | CheckIfIndustryIsAllowed (TileIndex tile, int type, const Town *t)
static bool | CheckCanTerraformSurroundingTiles (TileIndex tile, uint height, int internal)
static bool | CheckIfCanLevelIndustryPlatform (TileIndex tile, uint32 flags, const IndustryTileTable *it, int type)
| This function tries to flatten out the land below an industry, without damaging the surroundings too much.
static bool | CheckIfFarEnoughFromIndustry (TileIndex tile, int type)
static void | DoCreateNewIndustry (Industry *i, TileIndex tile, int type, const IndustryTileTable *it, byte layout, const Town *t, Owner owner)
static Industry * | CreateNewIndustryHelper (TileIndex tile, IndustryType type, uint32 flags, const IndustrySpec *indspec, uint itspec_index, uint32 seed)
| Helper function for Build/Fund an industry.
CommandCost | CmdBuildIndustry (TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
| Build/Fund an industry.
Industry * | CreateNewIndustry (TileIndex tile, IndustryType type)
static void | PlaceInitialIndustry (IndustryType type, int amount)
| This function is the one who really do the creation work of random industries during game creation.
void | GenerateIndustries ()
| This function will create ramdon industries during game creation.
static void | UpdateIndustryStatistics (Industry *i)
static void | MaybeNewIndustry (void)
| Try to create a random industry, during gameplay.
static bool | CheckIndustryCloseDownProtection (IndustryType type)
| Protects an industry from closure if the appropriate flags and conditions are met INDUSTRYBEH_CANCLOSE_LASTINSTANCE must be set (which, by default, it is not) and the count of industries of this type must one (or lower) in order to be protected against closure.
static void | CanCargoServiceIndustry (CargoID cargo, Industry *ind, bool *c_accepts, bool *c_produces)
| Can given cargo type be accepted or produced by the industry?
int | WhoCanServiceIndustry (Industry *ind)
| Compute who can service the industry.
static void | ReportNewsProductionChangeIndustry (Industry *ind, CargoID type, int percent)
| Report news that industry production has changed significantly.
static void | ChangeIndustryProduction (Industry *i, bool monthly)
| Change industry production or do closure.
void | IndustryMonthlyLoop ()
void | InitializeIndustries ()
static CommandCost | TerraformTile_Industry (TileIndex tile, uint32 flags, uint z_new, Slope tileh_new)
static void | Save_INDY ()
static void | Save_IIDS ()
static void | Save_TIDS ()
static void | Load_INDY ()
static void | Load_IIDS ()
static void | Load_TIDS ()
## Variables
static byte | _industry_sound_ctr
static TileIndex | _industry_sound_tile
int | _total_industries
uint16 | _industry_counts [NUM_INDUSTRYTYPES]
const Industry ** | _industry_sort
bool | _industry_sort_dirty
IndustrySpec | _industry_specs [NUM_INDUSTRYTYPES]
IndustryTileSpec | _industry_tile_specs [NUM_INDUSTRYTILES]
static IndustryDrawTileProc *const | _industry_draw_tile_procs [5]
static const byte | _plantfarmfield_type [] = {1, 1, 1, 1, 1, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6}
bool | _ignore_restrictions
static CheckNewIndustryProc *const | _check_new_industry_procs [CHECK_END]
static const byte | _numof_industry_table [NB_DIFFICULTY_LEVEL][NB_NUMOFINDUSTRY]
const TileTypeProcs | _tile_type_industry_procs
static const SaveLoad | _industry_desc []
static const SaveLoad | _industries_id_mapping_desc []
const ChunkHandler | _industry_chunk_handlers []

## Detailed Description

Definition in file industry_cmd.cpp.

## Enumeration Type Documentation

enum ProductionLevels

Production level maximum, minimum and default values.

It is not a value been really used in order to change, but rather an indicator of how the industry is behaving.

Enumerator:

  PRODLEVEL_CLOSURE | signal set to actually close the industry
  PRODLEVEL_MINIMUM | below this level, the industry is set to be closing
  PRODLEVEL_DEFAULT | default level set when the industry is created
  PRODLEVEL_MAXIMUM | the industry is running at full speed

Definition at line 1436 of file industry_cmd.cpp.

## Function Documentation

static void CanCargoServiceIndustry | ( | CargoID | cargo,
|  | Industry * | ind,
|  | bool * | c_accepts,
|  | bool * | c_produces |
| ) |  |  | `[static]`

Can given cargo type be accepted or produced by the industry?

Parameters:

  | cargo,: | Cargo type
  | ind,: | Industry
  | *c_accepts,: | Pointer to boolean for acceptance of cargo
  | *c_produces,: | Pointer to boolean for production of cargo

Returns:
  : `*c_accepts` is set when industry accepts the cargo type, `*c_produces` is set when the industry produces the cargo type

Definition at line 1909 of file industry_cmd.cpp.

References Industry::accepts_cargo, IndustrySpec::callback_flags, CBID_INDUSTRY_REFUSE_CARGO, CBM_IND_REFUSE_CARGO, GetIndustrySpec(), IndustrySpec::grf_prop, GRFFileProps::grffile, HasBit(), Industry::produced_cargo, Industry::type, and Industry::xy.

Referenced by WhoCanServiceIndustry().

static void ChangeIndustryProduction | ( | Industry * | i,
|  | bool | monthly |
| ) |  |  | `[static]`

Change industry production or do closure.

Parameters:

  | i | Industry for which changes are performed
  | monthly | true if it's the monthly call, false if it's the random call

Definition at line 2039 of file industry_cmd.cpp.

References abs(), AddNewsItem(), IndustrySpec::behaviour, CALLBACK_FAILED, IndustrySpec::callback_flags, CBID_INDUSTRY_MONTHLYPROD_CHANGE, CBID_INDUSTRY_PRODUCTION_CHANGE, CBM_IND_MONTHLYPROD_CHANGE, CBM_IND_PRODUCTION_256_TICKS, CBM_IND_PRODUCTION_CARGO_ARRIVAL, CBM_IND_PRODUCTION_CHANGE, Chance16(), Chance16I(), CheckIndustryCloseDownProtection(), Clamp(), ClampU(), IndustrySpec::closure_text, GB(), GetIndustrySpec(), GetRegister(), IndustrySpec::grf_prop, GRFFileProps::grffile, HasBit(), PoolItem< T, Tid, Tpool >::index, INDUSTRYBEH_DONT_INCR_PROD, INDUSTRYLIFE_BLACK_HOLE, INDUSTRYLIFE_EXTRACTIVE, INDUSTRYLIFE_ORGANIC, INDUSTRYLIFE_PROCESSING, Industry::last_month_pct_transported, Industry::last_prod_year, IndustrySpec::life_type, MapGRFStringID(), max(), min(), IndustrySpec::name, NEWS_FLAGS, NF_TILE, NF_VIEWPORT, NM_THIN, NT_INDUSTRY_NOBODY, NT_INDUSTRY_OTHER, NT_INDUSTRY_PLAYER, NT_OPENCLOSE, Industry::prod_level, PRODLEVEL_CLOSURE, PRODLEVEL_MAXIMUM, PRODLEVEL_MINIMUM, Industry::produced_cargo, IndustrySpec::production_down_text, Industry::production_rate, IndustrySpec::production_up_text, ReportNewsProductionChangeIndustry(), TileDiffXY(), Industry::town, Industry::type, WhoCanServiceIndustry(), and Industry::xy.

static bool CheckIndustryCloseDownProtection | ( | IndustryType | type | ) | `[static]`

Protects an industry from closure if the appropriate flags and conditions are met INDUSTRYBEH_CANCLOSE_LASTINSTANCE must be set (which, by default, it is not) and the count of industries of this type must one (or lower) in order to be protected against closure.

Parameters:

  | type | IndustryType been queried

Returns:
  true if protection is on, false otherwise (except for oil wells)

Definition at line 1891 of file industry_cmd.cpp.

References IndustrySpec::behaviour, GetIndustrySpec(), GetIndustryTypeCount(), INDUSTRYBEH_CANCLOSE_LASTINSTANCE, and INDUSTRYBEH_DONT_INCR_PROD.

Referenced by ChangeIndustryProduction().

static void ChopLumberMillTrees | ( | Industry * | i | ) | `[static]`

Perform a circular search around the Lumber Mill in order to find trees to cut.

Parameters:

  | i | industry

< Can't proceed if not completed

< 40x40 tiles to search

< Found a tree, add according value to waiting cargo

Definition at line 989 of file industry_cmd.cpp.

References CircularTileSearch(), IsIndustryCompleted(), min(), Industry::produced_cargo_waiting, SearchLumberMillTrees(), and Industry::xy.

CommandCost CmdBuildIndustry | ( | TileIndex | tile,
|  | uint32 | flags,
|  | uint32 | p1,
|  | uint32 | p2 |
| ) |  |  |

Build/Fund an industry.

Parameters:

  | tile | tile where industry is built
  | flags | of operations to conduct
  | p1 | various bitstuffed elements p1 = (bit 0 - 15) - industry type see build_industry.h and see industry.h p1 = (bit 16 - 31) - first layout to try
  | p2 | seed to use for variable 8F

Returns:
  index of the newly create industry, or CMD_ERROR if it failed

Definition at line 1625 of file industry_cmd.cpp.

References AddNewsItem(), Clamp(), CMD_ERROR, CreateNewIndustryHelper(), IndustrySpec::enabled, GB(), IndustrySpec::GetConstructionCost(), GetIndustrySpec(), IndustrySpec::IsRawIndustry(), IndustrySpec::name, IndustrySpec::new_industry_text, NEWS_FLAGS, NF_TILE, NF_VIEWPORT, NM_THIN, NT_OPENCLOSE, IndustrySpec::num_table, IndustrySpec::prospecting_chance, RandomTile, IndustrySpec::table, Industry::town, and Industry::xy.

static Industry* CreateNewIndustryHelper | ( | TileIndex | tile,
|  | IndustryType | type,
|  | uint32 | flags,
|  | const IndustrySpec * | indspec,
|  | uint | itspec_index,
|  | uint32 | seed |
| ) |  |  | `[static]`

Helper function for Build/Fund an industry.

Parameters:

  | tile | tile where industry is built
  | type | of industry to build
  | flags | of operations to conduct
  | indspec | pointer to industry specifications
  | itspec_index | the index of the itsepc to build/fund
  | seed | random seed (possibly) used by industries

Returns:
  the pointer of the newly created industry, or NULL if it failed

Definition at line 1579 of file industry_cmd.cpp.

References PoolItem< T, Tid, Tpool >::CanAllocateItem(), CBM_IND_LOCATION, IndustrySpec::check_proc, CheckIfCanLevelIndustryPlatform(), GetIndustrySpec(), HasBit(), LG_TERRAGENESIS, OWNER_NONE, and IndustrySpec::table.

Referenced by CmdBuildIndustry().

void GenerateIndustries | ( |  | ) |

This function will create ramdon industries during game creation.

It will scale the amount of industries by map size as well as difficulty level

Definition at line 1742 of file industry_cmd.cpp.

References IndustrySpec::appear_creation, IndustrySpec::check_proc, IndustrySpec::enabled, GetIndustrySpec(), GWP_INDUSTRY, IACT_MAPGENERATION, NUM_INDUSTRYTYPES, PlaceInitialIndustry(), ScaleByMapSize(), ScaleByMapSize1D(), and SetGeneratingWorldProgress().

Referenced by _GenerateWorld().

const IndustrySpec* GetIndustrySpec | ( | IndustryType | thistype | ) |

Accessor for array _industry_specs.

Array of industries data.

This will ensure at once : proper access and not allowing modifications of it.

Parameters:

  | thistype | of industry (which is the index in _industry_specs)

Precondition:
  thistype < NUM_INDUSTRYTYPES

Returns:
  a pointer to the corresponding industry spec

Definition at line 114 of file industry_cmd.cpp.

References NUM_INDUSTRYTYPES.

Referenced by BuildIndustriesLegend(), CanCargoServiceIndustry(), ChangeIndustryProduction(), CheckIndustryCloseDownProtection(), CmdBuildIndustry(), CMSAForest(), CMSAMine(), CreateNewIndustryHelper(), DeliverGoodsToIndustry(), Disaster_CoalMine_Init(), Disaster_Helicopter_Init(), DisasterTick_Airplane(), DisasterTick_Helicopter(), GenerateIndustries(), GetCountAndDistanceOfClosestInstance(), GetFloodingBehaviour(), GetIndustryIDAtOffset(), GetSmallMapIndustriesPixels(), IndustryGetVariable(), IndustryProductionCallback(), IsWateredTile(), MaybeNewIndustry(), and PlaceInitialIndustry().

const IndustryTileSpec* GetIndustryTileSpec | ( | IndustryGfx | gfx | ) |

Accessor for array _industry_tile_specs.

Array of industry tiles data.

This will ensure at once : proper access and not allowing modifications of it.

Parameters:

  | gfx | of industrytile (which is the index in _industry_tile_specs)

Precondition:
  gfx < INVALID_INDUSTRYTILE

Returns:
  a pointer to the corresponding industrytile spec

Definition at line 128 of file industry_cmd.cpp.

References INVALID_INDUSTRYTILE.

Referenced by GetIndustryIDAtOffset().

IndustryType GetIndustryType | ( | TileIndex | tile | ) |

Retrieve the type for this industry.

Although it is accessed by a tile, it will return the general type of industry, and not the sprite index as would do GetIndustryGfx.

Parameters:

  | tile | that is queried

Precondition:
  IsTileType(tile, MP_INDUSTRY)

Returns:
  general type for this industry, as defined in industry.h

Definition at line 98 of file industry_cmd.cpp.

References GetIndustryByTile(), IsTileType(), Industry::IsValid(), MP_INDUSTRY, and Industry::type.

Referenced by GetFloodingBehaviour(), and IsWateredTile().

static void PlaceInitialIndustry | ( | IndustryType | type,
|  | int | amount |
| ) |  |  | `[static]`

This function is the one who really do the creation work of random industries during game creation.

Parameters:

  | type | IndustryType of the desired industry
  | amount | of industries that need to be built

Definition at line 1711 of file industry_cmd.cpp.

References GetIndustrySpec(), GWP_INDUSTRY, IncreaseGeneratingWorldProgress(), OWNER_NONE, RandomTile, ScaleByMapSize(), and ScaleByMapSize1D().

Referenced by GenerateIndustries().

static void ReportNewsProductionChangeIndustry | ( | Industry * | ind,
|  | CargoID | type,
|  | int | percent |
| ) |  |  | `[static]`

Report news that industry production has changed significantly.

Parameters:

  | ind,: | Industry with changed production
  | type,: | Cargo type that has changed
  | percent,: | Percentage of change (>0 means increase, <0 means decrease)

Definition at line 2010 of file industry_cmd.cpp.

References abs(), AddNewsItem(), PoolItem< T, Tid, Tpool >::index, NEWS_FLAGS, NF_TILE, NF_VIEWPORT, NM_THIN, NT_INDUSTRY_NOBODY, NT_INDUSTRY_OTHER, NT_INDUSTRY_PLAYER, TileDiffXY(), WhoCanServiceIndustry(), and Industry::xy.

Referenced by ChangeIndustryProduction().

void ResetIndustries | ( |  | ) |

This function initialize the spec arrays of both industry and industry tiles.

It adjusts the enabling of the industry too, based on climate availability. This will allow for clearer testings

Definition at line 63 of file industry_cmd.cpp.

References IndustrySpec::enabled, HasBit(), NEW_INDUSTRYOFFSET, and NUM_INDUSTRYTYPES.

Referenced by ResetNewGRFData().

static bool SearchLumberMillTrees | ( | TileIndex | tile,
|  | uint32 | data |
| ) |  |  | `[static]`

Search callback function for ChopLumberMillTrees.

Parameters:

  | tile | to test
  | data | that is passed by the caller. In this case, nothing

Returns:
  the result of the test

< 3 and up means all fully grown trees

Definition at line 966 of file industry_cmd.cpp.

References CMD_LANDSCAPE_CLEAR, DoCommand(), GetTreeGrowth(), IsTileType(), MP_TREES, and OWNER_NONE.

Referenced by ChopLumberMillTrees().

int WhoCanServiceIndustry | ( | Industry * | ind | ) |

Compute who can service the industry.

Here, 'can service' means that he/she has trains and stations close enough to the industry with the right cargo type and the right orders (ie has the technical means).

Parameters:

  | ind,: | Industry being investigated.

Returns:
  : 0 if nobody can service the industry, 2 if the local player can service the industry, and 1 otherwise (only competitors can service the industry)

Definition at line 1951 of file industry_cmd.cpp.

References CanCargoServiceIndustry(), FindStationsAroundIndustryTile(), HasBit(), Industry::height, IsFrontEngine(), Industry::width, and Industry::xy.

Referenced by ChangeIndustryProduction(), and ReportNewsProductionChangeIndustry().

## Variable Documentation

CheckNewIndustryProc* const _check_new_industry_procs[CHECK_END]`[static]`

Initial value:

     {
      CheckNewIndustry_NULL,
      CheckNewIndustry_Forest,
      CheckNewIndustry_OilRefinery,
      CheckNewIndustry_Farm,
      CheckNewIndustry_Plantation,
      CheckNewIndustry_Water,
      CheckNewIndustry_Lumbermill,
      CheckNewIndustry_BubbleGen,
      CheckNewIndustry_OilRig
    }

Definition at line 1153 of file industry_cmd.cpp.

const SaveLoad _industries_id_mapping_desc[]`[static]`

Initial value:

     {
      SLE_VAR(EntityIDMapping, grfid,         SLE_UINT32),
      SLE_VAR(EntityIDMapping, entity_id,     SLE_UINT8),
      SLE_VAR(EntityIDMapping, substitute_id, SLE_UINT8),

    }

Definition at line 2391 of file industry_cmd.cpp.

const ChunkHandler _industry_chunk_handlers[]

Initial value:

     {
      { 'INDY', Save_INDY, Load_INDY, CH_ARRAY},
      { 'IIDS', Save_IIDS, Load_IIDS, CH_ARRAY},
      { 'TIDS', Save_TIDS, Load_TIDS, CH_ARRAY | CH_LAST},
    }

IndustryDrawTileProc* const _industry_draw_tile_procs[5]`[static]`

Initial value:

     {
      IndustryDrawSugarMine,
      IndustryDrawToffeeQuarry,
      IndustryDrawBubbleGenerator,
      IndustryDrawToyFactory,
      IndustryDrawCoalPlantSparks,
    }

Definition at line 252 of file industry_cmd.cpp.

const byte _numof_industry_table[NB_DIFFICULTY_LEVEL][NB_NUMOFINDUSTRY]`[static]`

Initial value:

     {

      {0, 0, 0, 0, 0, 0, 0, 0,  0,  0,  0},
      {0, 1, 1, 1, 1, 1, 1, 1,  1,  1,  1},
      {0, 1, 1, 1, 2, 2, 3, 3,  4,  4,  5},
      {0, 1, 2, 3, 4, 5, 6, 7,  8,  9, 10},
      {0, 2, 3, 4, 6, 7, 8, 9, 10, 10, 10},
    }

Definition at line 1698 of file industry_cmd.cpp.

const TileTypeProcs _tile_type_industry_procs

Initial value:

     {
      DrawTile_Industry,
      GetSlopeZ_Industry,
      ClearTile_Industry,
      GetAcceptedCargo_Industry,
      GetTileDesc_Industry,
      GetTileTrackStatus_Industry,
      ClickTile_Industry,
      AnimateTile_Industry,
      TileLoop_Industry,
      ChangeTileOwner_Industry,
      GetProducedCargo_Industry,
      NULL,
      GetFoundation_Industry,
      TerraformTile_Industry,
    }