src/industry_map.h
branchgamebalance
changeset 9911 0b8b245a2391
parent 9908 0fa543611bbe
child 7245 f868248ecf83
equal deleted inserted replaced
9910:0b2aebc8283e 9911:0b8b245a2391
   205 struct IndustryTypeSolver {
   205 struct IndustryTypeSolver {
   206 	IndustryGfx MinGfx; ///< The first gfx index for the industry type
   206 	IndustryGfx MinGfx; ///< The first gfx index for the industry type
   207 	IndustryGfx MaxGfx; ///< The last gfx index for the industry type
   207 	IndustryGfx MaxGfx; ///< The last gfx index for the industry type
   208 };
   208 };
   209 
   209 
   210 /** Mapping of industry gfx to industry type */
       
   211 static const IndustryTypeSolver industry_gfx_Solver[IT_END] = {
       
   212 	{  0,   6}, ///< IT_COAL_MINE
       
   213 	{  7,  10}, ///< IT_POWER_STATION,
       
   214 	{ 11,  15}, ///< IT_SAWMILL,
       
   215 	{ 16,  17}, ///< IT_FOREST,
       
   216 	{ 18,  23}, ///< IT_OIL_REFINERY,
       
   217 	{ 24,  28}, ///< IT_OIL_RIG,
       
   218 	{ 29,  31}, ///< IT_OIL_WELL,
       
   219 	{ 32,  38}, ///< IT_FARM,
       
   220 	{ 39,  42}, ///< IT_FACTORY,
       
   221 	{ 43,  46}, ///< IT_PRINTING_WORKS,
       
   222 	{ 47,  51}, ///< IT_COPPER_MINE,
       
   223 	{ 52,  57}, ///< IT_STEEL_MILL,
       
   224 	{ 58,  59}, ///< IT_BANK_TEMP,
       
   225 	{ 60,  63}, ///< IT_FOOD_PROCESS,
       
   226 	{ 64,  71}, ///< IT_PAPER_MILL,
       
   227 	{ 72,  88}, ///< IT_GOLD_MINE,
       
   228 	{ 89,  90}, ///< IT_BANK_TROPIC_ARCTIC,
       
   229 	{ 91,  99}, ///< IT_DIAMOND_MINE,
       
   230 	{100, 115}, ///< IT_IRON_MINE,
       
   231 	{116, 116}, ///< IT_FRUIT_PLANTATION,
       
   232 	{117, 117}, ///< IT_RUBBER_PLANTATION,
       
   233 	{118, 119}, ///< IT_WATER_SUPPLY,
       
   234 	{120, 120}, ///< IT_WATER_TOWER,
       
   235 	{121, 124}, ///< IT_FACTORY_2,
       
   236 	{125, 128}, ///< IT_LUMBER_MILL,
       
   237 	{129, 130}, ///< IT_COTTON_CANDY,
       
   238 	{131, 134}, ///< IT_CANDY_FACTORY or sweet factory
       
   239 	{135, 136}, ///< IT_BATTERY_FARM,
       
   240 	{137, 137}, ///< IT_COLA_WELLS,
       
   241 	{138, 141}, ///< IT_TOY_SHOP,
       
   242 	{142, 147}, ///< IT_TOY_FACTORY,
       
   243 	{148, 155}, ///< IT_PLASTIC_FOUNTAINS,
       
   244 	{156, 159}, ///< IT_FIZZY_DRINK_FACTORY,
       
   245 	{160, 163}, ///< IT_BUBBLE_GENERATOR,
       
   246 	{164, 166}, ///< IT_TOFFEE_QUARRY,
       
   247 	{167, 174}  ///< IT_SUGAR_MINE,
       
   248 };
       
   249 
       
   250 /**
   210 /**
   251  * Get the animation loop number
   211  * Get the animation loop number
   252  * @param tile the tile to get the animation loop number of
   212  * @param tile the tile to get the animation loop number of
   253  * @pre IsTileType(tile, MP_INDUSTRY)
   213  * @pre IsTileType(tile, MP_INDUSTRY)
   254  */
   214  */