Map terrain: the height curve of each cell kind and the world map's terrain behaviour. More...
Go to the source code of this file.
Variables | |
| const TerrainHeightFn | gMap_TerrainHeightFunctions [16] |
| Terrain height functions, chosen by the low four bits of a cell's first collision byte and called with (the remaining samples, x within the cell, y within the cell). | |
| const u8 | gWorldMap_TerrainBehaviorTable [48] |
| World map terrain behaviour, indexed by the collision value plus 0x10 when the block word's top bit is set, or plus 0x20 (whatever that bit) for terrain kind 21. | |
| const s8 | gWorldMap_DirectionOffsets [8][2] |
| The eight compass directions as (x, y) offsets of radius 40. | |
| const u32 | gWorldMap_UnitScale [2] |
| Two 1.0s (Q16). | |
Map terrain: the height curve of each cell kind and the world map's terrain behaviour.
Definition in file mapdata.c.
| const TerrainHeightFn gMap_TerrainHeightFunctions[16] |
Terrain height functions, chosen by the low four bits of a cell's first collision byte and called with (the remaining samples, x within the cell, y within the cell).
Each reads only the arguments it needs. Read by Map_GetTerrainHeight and Map_CheckObjectStep (terrain.c).
Definition at line 14 of file mapdata.c.
Referenced by Map_CheckObjectStep(), and Map_GetTerrainHeight().
| const u8 gWorldMap_TerrainBehaviorTable[48] |
World map terrain behaviour, indexed by the collision value plus 0x10 when the block word's top bit is set, or plus 0x20 (whatever that bit) for terrain kind 21.
Read only by GetWorldMapTerrainBehavior.
Definition at line 37 of file mapdata.c.
Referenced by GetWorldMapTerrainBehavior().
| const s8 gWorldMap_DirectionOffsets[8][2] |