Skip to Content
The Alchemy Project

struct MAP_GRID_METATILE

One metatile of a map layer: its metatile tiles and flags, its metatile behavior and its shape, an index into the shape table.

Declared in map_grid.h.

Fields

NameDescription
Uint16metatileTilesAndFlagsbits: 15..14 the priority an actor standing on it takes, if not 0 (also read by fdMapGridGetMetatileHighFlags) | 13..12 the layer such an actor takes, + 1, if not 0 | 11..0 metatile tiles (ACTOR_CAMERA_TILE)
Uint8behavioran METATILE_BEHAVIOR
Uint8shapeIndexes the 4-byte shape table (MapGridShapes): the shape's kind in the first byte's low four bits, then its height samples.

Description

One metatile of a map layer: its metatile tiles and flags, its metatile behavior and its shape, an index into the shape table.

struct MAP_GRID_METATILE

Referenced by fdActorMoveByKeys(), fdActorResetForLeader(), fdEngineRun(), fdMapGridCheckCollision(), fdMapGridGetMetatileBehaviorAt(), fdMapGridGetMetatileHighFlags(), fdMapGridGetTerrainHeight(), fdMapGridGetTerrainKindAt(), fdMapGridIsWallAt(), fdMapGridLoadMap(), fdMapGridSetMetatileBehaviorAt(), fdUpdateWalking(), scCrossboneIsleSteppingStonesReadMapGridMetatile(), scKolimaForestFloodgateCheckLogFits(), scKolimaForestFloodgateMarkLogMetatiles(), scMapGridFillCollisionRectangle(), scMercuryLighthouseHopAcrossPool() and scMercuryLighthouseRestoreLights().

Definition at line 60 of file map_grid.h.

Fields in detail

metatileTilesAndFlags

Uint16 metatileTilesAndFlags

bits: 15..14 the priority an actor standing on it takes, if not 0 (also read by fdMapGridGetMetatileHighFlags) | 13..12 the layer such an actor takes, + 1, if not 0 | 11..0 metatile tiles (ACTOR_CAMERA_TILE)

behavior

Uint8 behavior

an METATILE_BEHAVIOR

shape

Uint8 shape

Indexes the 4-byte shape table (MapGridShapes): the shape's kind in the first byte's low four bits, then its height samples.