67 if (*ti == curr) ++ti;
void AddAnimatedTile(TileIndex tile)
Add the given tile to the animated tile table (if it does not exist on that table yet)...
Simple vector class that allows allocating an item without the need to copy this->data needlessly...
Types for recording game performance data.
Functions related to (drawing on) viewports.
std::vector< TileIndex > _animated_tiles
The table/list with animated tiles.
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, int tile_height_override)
Mark a tile given by its index dirty for repaint.
Time spent processing other world features.
uint32 TileIndex
The index/ID of a Tile.
bool include(std::vector< T > &vec, const T &item)
Helper function to append an item to a vector if it is not already contained Consider using std::set...
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.