39 _animated_tile_count--;
56 if (tile == *ti)
return;
66 _animated_tile_count++;
87 if (*ti == curr) ++ti;
uint _animated_tile_allocated
The number of slots for animated tiles allocated currently.
void AddAnimatedTile(TileIndex tile)
Add the given tile to the animated tile table (if it does not exist on that table yet)...
Functions related to (drawing on) viewports.
TileIndex * _animated_tile_list
The table/list with animated tiles.
uint _animated_tile_count
The number of animated tiles in the current state.
Functions related to the allocation of memory.
void DeleteAnimatedTile(TileIndex tile)
Removes the given tile from the animated tile table.
Definition of base types and functions in a cross-platform compatible way.
A number of safeguards to prevent using unsafe methods.
void MarkTileDirtyByTile(TileIndex tile, int bridge_level_offset)
Mark a tile given by its index dirty for repaint.
uint32 TileIndex
The index/ID of a Tile.
void InitializeAnimatedTiles()
Initialize all animated tile variables to some known begin point.
void AnimateAnimatedTiles()
Animate all tiles in the animated tile list, i.e. call AnimateTile on them.
Generic 'commands' that can be performed on all tiles.