src/industry_map.h
branchgamebalance
changeset 9912 1ac8aac92385
parent 9911 0b8b245a2391
child 7370 a03b5c70eb63
equal deleted inserted replaced
9911:0b8b245a2391 9912:1ac8aac92385
    46 	GFX_PLASTIC_FOUNTAIN_ANIMATED_8    = 155,
    46 	GFX_PLASTIC_FOUNTAIN_ANIMATED_8    = 155,
    47 	GFX_BUBBLE_GENERATOR               = 161,
    47 	GFX_BUBBLE_GENERATOR               = 161,
    48 	GFX_BUBBLE_CATCHER                 = 162,
    48 	GFX_BUBBLE_CATCHER                 = 162,
    49 	GFX_TOFFEE_QUARY                   = 165,
    49 	GFX_TOFFEE_QUARY                   = 165,
    50 	GFX_SUGAR_MINE_SIEVE               = 174,
    50 	GFX_SUGAR_MINE_SIEVE               = 174,
    51 	NUM_INDUSTRY_GFXES                 = 175,
       
    52 };
    51 };
    53 
    52 
    54 /**
    53 /**
    55  * Get the industry ID of the given tile
    54  * Get the industry ID of the given tile
    56  * @param t the tile to get the industry ID from
    55  * @param t the tile to get the industry ID from
   199 {
   198 {
   200 	assert(IsTileType(tile, MP_INDUSTRY));
   199 	assert(IsTileType(tile, MP_INDUSTRY));
   201 	_m[tile].m1 = 0;
   200 	_m[tile].m1 = 0;
   202 }
   201 }
   203 
   202 
   204 /** Structure used to make a mapping from industry gfx to industry type */
       
   205 struct IndustryTypeSolver {
       
   206 	IndustryGfx MinGfx; ///< The first gfx index for the industry type
       
   207 	IndustryGfx MaxGfx; ///< The last gfx index for the industry type
       
   208 };
       
   209 
       
   210 /**
   203 /**
   211  * Get the animation loop number
   204  * Get the animation loop number
   212  * @param tile the tile to get the animation loop number of
   205  * @param tile the tile to get the animation loop number of
   213  * @pre IsTileType(tile, MP_INDUSTRY)
   206  * @pre IsTileType(tile, MP_INDUSTRY)
   214  */
   207  */