Skip to Content
The Alchemy Project

struct WORLD_MAP_METATILE

One 32-pixel metatile of the World Map: its tile and its encounter region; RamMapBlocks holds WORLD_MAP_VIEW_METATILES by WORLD_MAP_VIEW_METATILES of them.

Declared in field.h.

Fields

NameDescription
Uint32tile : 24Low halfword: the metatile tiles.
Uint32region : 6Passed to fdWorldMapUpdateRegionTint; region / 10 picks the graphics set.
Uint32unused : 1No code names it.
Uint32beach : 1A beach: fdWorldMapGetBattleEnvironment fights on it from WorldMapTerrainBehaviorTable's beach bank.

Description

One 32-pixel metatile of the World Map: its tile and its encounter region; RamMapBlocks holds WORLD_MAP_VIEW_METATILES by WORLD_MAP_VIEW_METATILES of them.

struct WORLD_MAP_METATILE

Referenced by fdWorldMapDrawMetatileColumn(), fdWorldMapDrawMetatileRow(), fdWorldMapGetBattleEnvironment(), fdWorldMapLoadGraphics(), fdWorldMapPreloadCurrentTileBlock() and fdWorldMapWriteLayerMetatileTile().

Definition at line 254 of file field.h.

Fields in detail

tile

Uint32 tile : 24

Low halfword: the metatile tiles.

region

Uint32 region : 6

Passed to fdWorldMapUpdateRegionTint; region / 10 picks the graphics set.

unused

Uint32 unused : 1

No code names it.

beach

Uint32 beach : 1

A beach: fdWorldMapGetBattleEnvironment fights on it from WorldMapTerrainBehaviorTable's beach bank.