OpenTTD
|
Everything related to animated tiles. More...
#include "stdafx.h"
#include "core/alloc_func.hpp"
#include "core/smallvec_type.hpp"
#include "tile_cmd.h"
#include "viewport_func.h"
#include "framerate_type.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
void | DeleteAnimatedTile (TileIndex tile) |
Removes the given tile from the animated tile table. More... | |
void | AddAnimatedTile (TileIndex tile) |
Add the given tile to the animated tile table (if it does not exist on that table yet). 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. | |
Variables | |
SmallVector< TileIndex, 256 > | _animated_tiles |
The table/list with animated tiles. More... | |
Everything related to animated tiles.
Definition in file animated_tile.cpp.
void AddAnimatedTile | ( | TileIndex | tile | ) |
Add the given tile to the animated tile table (if it does not exist on that table yet).
Also increases the size of the table if necessary.
tile | the tile to make animated |
Definition at line 43 of file animated_tile.cpp.
References SmallVector< T, S >::Include(), and MarkTileDirtyByTile().
Referenced by AnimationBase< IndustryAnimationBase, IndustryTileSpec, Industry, int, GetSimpleIndustryCallback >::ChangeAnimationFrame().
void DeleteAnimatedTile | ( | TileIndex | tile | ) |
Removes the given tile from the animated tile table.
tile | the tile to remove |
Definition at line 28 of file animated_tile.cpp.
References SmallVector< T, S >::End(), SmallVector< T, S >::ErasePreservingOrder(), SmallVector< T, S >::Find(), and MarkTileDirtyByTile().
Referenced by AnimationBase< IndustryAnimationBase, IndustryTileSpec, Industry, int, GetSimpleIndustryCallback >::ChangeAnimationFrame().
SmallVector<TileIndex, 256> _animated_tiles |
The table/list with animated tiles.
Definition at line 22 of file animated_tile.cpp.