OpenTTD Source
20241108-master-g80f628063a
|
Tile animation! More...
#include "tile_type.h"
Go to the source code of this file.
Functions | |
void | AddAnimatedTile (TileIndex tile, bool mark_dirty=true) |
Add the given tile to the animated tile table (if it does not exist yet). More... | |
void | DeleteAnimatedTile (TileIndex tile) |
Removes the given tile from the animated tile table. More... | |
void | AnimateAnimatedTiles () |
Animate all tiles in the animated tile list, i.e. call AnimateTile on them. | |
void | InitializeAnimatedTiles () |
Initialize all animated tile variables to some known begin point. | |
Tile animation!
Definition in file animated_tile_func.h.
void AddAnimatedTile | ( | TileIndex | tile, |
bool | mark_dirty | ||
) |
Add the given tile to the animated tile table (if it does not exist yet).
tile | the tile to make animated |
mark_dirty | whether to also mark the tile dirty. |
Definition at line 39 of file animated_tile.cpp.
References _animated_tiles, include(), and MarkTileDirtyByTile().
void DeleteAnimatedTile | ( | TileIndex | tile | ) |
Removes the given tile from the animated tile table.
tile | the tile to remove |
Definition at line 25 of file animated_tile.cpp.
References _animated_tiles.