|
OpenTTD Source 20251104-master-g3befbdd52f
|
Maps accessors for animated tiles. More...
Go to the source code of this file.
Enumerations | |
| enum class | AnimatedTileState : uint8_t { None = 0 , Deleted = 1 , Animated = 3 } |
| Animation state of a possibly-animated tile. More... | |
Functions | |
| AnimatedTileState | GetAnimatedTileState (Tile t) |
| Get the animated state of a tile. | |
| void | SetAnimatedTileState (Tile t, AnimatedTileState state) |
| Set the animated state of a tile. | |
Maps accessors for animated tiles.
Definition in file animated_tile_map.h.
|
strong |
Animation state of a possibly-animated tile.
| Enumerator | |
|---|---|
| None | Tile is not animated. |
| Deleted | Tile was animated but should be removed. |
| Animated | Tile is animated. |
Definition at line 19 of file animated_tile_map.h.
|
inline |
Get the animated state of a tile.
| t | The tile. |
Definition at line 30 of file animated_tile_map.h.
References GB(), and Tile::m6().
Referenced by AddAnimatedTile(), AnimateAnimatedTiles(), and DeleteAnimatedTile().
|
inline |
Set the animated state of a tile.
| t | The tile. |
Definition at line 39 of file animated_tile_map.h.
References Tile::m6(), SB(), and to_underlying().
Referenced by AddAnimatedTile(), AfterLoadGame(), AnimateAnimatedTiles(), and DeleteAnimatedTile().