Jazz2::Tiles::LayerTile struct

Represents a single tile placed in a tile map layer.

One entry of a layer's layout grid. It references a tile in the tile set (or an animated tile) together with its packed parameters, flags, transparency and the suspend and destruct behavior; for destructible tiles it also tracks the associated animation and the currently active frame (reused as collapse delay or trigger ID).

Public variables

std::uint16_t TileID
Tile ID.
std::uint16_t TileParams
Tile parameters.
std::int16_t DestructAnimation
Animation ID for destructible tile (-1 = none).
std::int16_t DestructFrameIndex
Denotes the specific frame from the above animation that is currently active — Collapsible: Delay ("wait" parameter); Trigger: Trigger ID.
LayerTileFlags Flags
Tile flags.
std::uint8_t Alpha
Tile transparency.
SuspendType HasSuspendType
Suspend type of tile.
TileDestructType DestructType
Destruct type of tile.