MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetAnimationFrame

Function SetAnimationFrame

src/tile_map.h:262–266  ·  view source on GitHub ↗

* Set a new animation frame * @param t the tile * @param frame the new frame number * @pre IsTileType(t, MP_HOUSE) || IsTileType(t, MP_OBJECT) || IsTileType(t, MP_INDUSTRY) || IsTileType(t, MP_STATION) */

Source from the content-addressed store, hash-verified

260 * @pre IsTileType(t, MP_HOUSE) || IsTileType(t, MP_OBJECT) || IsTileType(t, MP_INDUSTRY) || IsTileType(t, MP_STATION)
261 */
262inline void SetAnimationFrame(Tile t, uint8_t frame)
263{
264 assert(IsTileType(t, MP_HOUSE) || IsTileType(t, MP_OBJECT) || IsTileType(t, MP_INDUSTRY) || IsTileType(t, MP_STATION));
265 t.m7() = frame;
266}
267
268std::tuple<Slope, int> GetTileSlopeZ(TileIndex tile);
269int GetTileZ(TileIndex tile);

Callers 14

AnimateSugarSieveFunction · 0.85
AnimateToffeeQuarryFunction · 0.85
AnimateBubbleCatcherFunction · 0.85
AnimatePowerPlantSparksFunction · 0.85
AnimateToyFactoryFunction · 0.85
AnimateOilWellFunction · 0.85
AnimateMineTowerFunction · 0.85
MakeIndustryTileBiggerFunction · 0.85
TileLoop_IndustryFunction · 0.85
MakeHouseTileFunction · 0.85
SetMethod · 0.85
IncreaseCompanyHQSizeFunction · 0.85

Calls 1

IsTileTypeFunction · 0.85

Tested by

no test coverage detected