src/industry_map.h
branchgamebalance
changeset 9913 e79cd19772dd
parent 9912 1ac8aac92385
child 7814 fe643468ad64
equal deleted inserted replaced
9912:1ac8aac92385 9913:e79cd19772dd
   158 	SetTileType(t, MP_INDUSTRY);
   158 	SetTileType(t, MP_INDUSTRY);
   159 	_m[t].m1 = 0;
   159 	_m[t].m1 = 0;
   160 	_m[t].m2 = index;
   160 	_m[t].m2 = index;
   161 	_m[t].m3 = 0;
   161 	_m[t].m3 = 0;
   162 	_m[t].m4 = 0;
   162 	_m[t].m4 = 0;
   163 	_m[t].m5 = gfx;
   163 	SetIndustryGfx(t, gfx);
   164 }
   164 }
   165 
   165 
   166 /**
   166 /**
   167  * Returns this indutry tile's construction counter value
   167  * Returns this indutry tile's construction counter value
   168  * @param tile the tile to query
   168  * @param tile the tile to query
   244 {
   244 {
   245 	assert(IsTileType(tile, MP_INDUSTRY));
   245 	assert(IsTileType(tile, MP_INDUSTRY));
   246 	_m[tile].m3 = state;
   246 	_m[tile].m3 = state;
   247 }
   247 }
   248 
   248 
       
   249 /**
       
   250  * Get the random bits for this tile.
       
   251  * Used for grf callbacks
       
   252  * @param tile TileIndex of the tile to query
       
   253  * @pre IsTileType(tile, MP_INDUSTRY)
       
   254  * @return requested bits
       
   255  * @todo implement the storage in map array
       
   256  */
       
   257 static inline byte GetIndustryRandomBits(TileIndex tile)
       
   258 {
       
   259 	assert(IsTileType(tile, MP_INDUSTRY));
       
   260 	return 0;
       
   261 }
       
   262 
       
   263 /**
       
   264  * Get the activated triggers bits for this industry tile
       
   265  * Used for grf callbacks
       
   266  * @param tile TileIndex of the tile to query
       
   267  * @pre IsTileType(tile, MP_INDUSTRY)
       
   268  * @return requested triggers
       
   269  * @todo implement the storage in map array
       
   270  */
       
   271 static inline byte GetIndustryTriggers(TileIndex tile)
       
   272 {
       
   273 	assert(IsTileType(tile, MP_INDUSTRY));
       
   274 	return 0;
       
   275 }
       
   276 
       
   277 
       
   278 /**
       
   279  * Set the activated triggers bits for this industry tile
       
   280  * Used for grf callbacks
       
   281  * @param tile TileIndex of the tile to query
       
   282  * @pre IsTileType(tile, MP_INDUSTRY)
       
   283  * @todo implement the storage in map array
       
   284  */
       
   285 static inline void SetIndustryTriggers(TileIndex tile, byte triggers)
       
   286 {
       
   287 	assert(IsTileType(tile, MP_INDUSTRY));
       
   288 }
       
   289 
   249 #endif /* INDUSTRY_MAP_H */
   290 #endif /* INDUSTRY_MAP_H */