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 */ |