OpenTTD Source  20240917-master-g9ab0a47812
animated_tile.cpp File Reference
#include "stdafx.h"
#include "core/container_func.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, bool mark_dirty)
 Add the given tile to the animated tile table (if it does not exist 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

std::vector< TileIndex_animated_tiles
 The table/list with animated tiles.
 

Detailed Description

Everything related to animated tiles.

Definition in file animated_tile.cpp.

Function Documentation

◆ AddAnimatedTile()

void AddAnimatedTile ( TileIndex  tile,
bool  mark_dirty 
)

Add the given tile to the animated tile table (if it does not exist yet).

Parameters
tilethe tile to make animated
mark_dirtywhether to also mark the tile dirty.

Definition at line 39 of file animated_tile.cpp.

References _animated_tiles, include(), and MarkTileDirtyByTile().

◆ DeleteAnimatedTile()

void DeleteAnimatedTile ( TileIndex  tile)

Removes the given tile from the animated tile table.

Parameters
tilethe tile to remove

Definition at line 25 of file animated_tile.cpp.

References _animated_tiles.