Changeset - r6874:8123ba7f0719
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-06-12 14:22:28
belugas@openttd.org
(svn r10115) -Codechange: Create accessors to triggers and random bits for industries.
Implementation will follow soon.
1 file changed with 42 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_map.h
Show inline comments
 
@@ -160,7 +160,7 @@ static inline void MakeIndustry(TileInde
 
	_m[t].m2 = index;
 
	_m[t].m3 = 0;
 
	_m[t].m4 = 0;
 
	_m[t].m5 = gfx;
 
	SetIndustryGfx(t, gfx);
 
}
 

	
 
/**
 
@@ -246,4 +246,45 @@ static inline void SetIndustryAnimationS
 
	_m[tile].m3 = state;
 
}
 

	
 
/**
 
 * Get the random bits for this tile.
 
 * Used for grf callbacks
 
 * @param tile TileIndex of the tile to query
 
 * @pre IsTileType(tile, MP_INDUSTRY)
 
 * @return requested bits
 
 * @todo implement the storage in map array
 
 */
 
static inline byte GetIndustryRandomBits(TileIndex tile)
 
{
 
	assert(IsTileType(tile, MP_INDUSTRY));
 
	return 0;
 
}
 

	
 
/**
 
 * Get the activated triggers bits for this industry tile
 
 * Used for grf callbacks
 
 * @param tile TileIndex of the tile to query
 
 * @pre IsTileType(tile, MP_INDUSTRY)
 
 * @return requested triggers
 
 * @todo implement the storage in map array
 
 */
 
static inline byte GetIndustryTriggers(TileIndex tile)
 
{
 
	assert(IsTileType(tile, MP_INDUSTRY));
 
	return 0;
 
}
 

	
 

	
 
/**
 
 * Set the activated triggers bits for this industry tile
 
 * Used for grf callbacks
 
 * @param tile TileIndex of the tile to query
 
 * @pre IsTileType(tile, MP_INDUSTRY)
 
 * @todo implement the storage in map array
 
 */
 
static inline void SetIndustryTriggers(TileIndex tile, byte triggers)
 
{
 
	assert(IsTileType(tile, MP_INDUSTRY));
 
}
 

	
 
#endif /* INDUSTRY_MAP_H */
0 comments (0 inline, 0 general)