Alchemy
Loading...
Searching...
No Matches

mapdata.h

Go to the documentation of this file.
1#ifndef ALCHEMY_UNIT_FIELD_MAPDATA_H
2#define ALCHEMY_UNIT_FIELD_MAPDATA_H
3
4#include "types.h"
5
6/// Height samples and pixel coordinates within a 16x16 terrain cell.
7typedef s32 (*TerrainHeightFn)(const u8 *heightBytes, s32 pixelX, s32 pixelY);
8
10extern const s8 gWorldMap_DirectionOffsets[8][2];
11extern const u32 gWorldMap_UnitScale[2];
12
13#endif
const TerrainHeightFn gMap_TerrainHeightFunctions[16]
Terrain height functions, chosen by the low four bits of a cell's first collision byte and called wit...
Definition mapdata.c:14
const u32 gWorldMap_UnitScale[2]
Two 1.0s (Q16).
Definition mapdata.c:53
const s8 gWorldMap_DirectionOffsets[8][2]
The eight compass directions as (x, y) offsets of radius 40.
Definition mapdata.c:46
s32(*) TerrainHeightFn(const u8 *heightBytes, s32 pixelX, s32 pixelY)
Height samples and pixel coordinates within a 16x16 terrain cell.
Definition mapdata.h:7
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned int u32
Definition types.h:15
signed char s8
Definition types.h:10
unsigned char u8
Definition types.h:11