Alchemy
Loading...
Searching...
No Matches

map.h File Reference

Maps: their cells, layers, animations and blend scripts, and the map state. More...

Go to the source code of this file.

Data Structures

struct  MapCell
 One cell of a map layer: its metatile and flags, its collision code and an attribute indexing the collision table. More...
struct  MapLayer
 A map layer's scroll record, seen from its cells. More...
struct  BlendScriptState
 The map's running blend script, which sets the blend registers over time. More...
struct  MapAnimation
 One of the 16 tile animation channels, which copy tiles into VRAM by script. More...
struct  MapState
 The map work in heap slot 8 (struct MapScrollWork), seen as its tile animation channels, blend script and layers' cells. More...
struct  WorldPosition
 A position on the world map, as its walkability check reads it. More...

Functions

 STATIC_ASSERT (sizeof(struct MapAnimation)==12)
 STATIC_ASSERT (offsetof(struct MapState, flags)==0x14)
 STATIC_ASSERT (offsetof(struct MapState, wideTiles)==0x16)
 STATIC_ASSERT (offsetof(struct MapState, anim)==0x18)
 STATIC_ASSERT (offsetof(struct MapState, blend)==0xd8)
 STATIC_ASSERT (offsetof(struct MapState, layers)==0x130)

Variables

u32 gMapBlocks []
u8 gMapLayerData []
u8 gMapCollision []
u8 gBgTileBuffer []
u8 * gMapAnimationPages

Detailed Description

Maps: their cells, layers, animations and blend scripts, and the map state.

Definition in file map.h.

Function Documentation

◆ STATIC_ASSERT() [1/6]

STATIC_ASSERT ( sizeof(struct MapAnimation) = =12)

◆ STATIC_ASSERT() [2/6]

STATIC_ASSERT ( offsetof(struct MapState, flags) = =0x14)

◆ STATIC_ASSERT() [3/6]

STATIC_ASSERT ( offsetof(struct MapState, wideTiles) = =0x16)

◆ STATIC_ASSERT() [4/6]

STATIC_ASSERT ( offsetof(struct MapState, anim) = =0x18)

◆ STATIC_ASSERT() [5/6]

STATIC_ASSERT ( offsetof(struct MapState, blend) = =0xd8)

◆ STATIC_ASSERT() [6/6]

STATIC_ASSERT ( offsetof(struct MapState, layers) = =0x130)

Variable Documentation

◆ gMapBlocks

◆ gMapLayerData

u8 gMapLayerData[]
extern

◆ gMapCollision

u8 gMapCollision[]
extern

◆ gBgTileBuffer

◆ gMapAnimationPages

u8* gMapAnimationPages
extern