mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-18 13:07:27 -05:00
This documents the `unk_02054D00.c` file, which is in charge of managing height, collision and tile behavior between the terrain and the player/map objects. Signed-off-by: Kuruyia <github@kuruyia.net>
24 lines
777 B
C
24 lines
777 B
C
#ifndef POKEPLATINUM_CONSTANTS_QUADRANT_H
|
|
#define POKEPLATINUM_CONSTANTS_QUADRANT_H
|
|
|
|
#define QUADRANT_COUNT 4
|
|
|
|
#define QUADRANT_GO_TOP(quadrant) ((quadrant) - 2)
|
|
#define QUADRANT_GO_BOTTOM(quadrant) ((quadrant) + 2)
|
|
#define QUADRANT_GO_RIGHT(quadrant) ((quadrant) + 1)
|
|
#define QUADRANT_GO_LEFT(quadrant) ((quadrant) - 1)
|
|
#define QUADRANT_GO_BOTTOM_RIGHT(quadrant) ((quadrant) + 3)
|
|
#define QUADRANT_GO_TOP_LEFT(quadrant) ((quadrant) - 3)
|
|
#define QUADRANT_GO_BOTTOM_LEFT(quadrant) ((quadrant) + 1)
|
|
#define QUADRANT_GO_TOP_RIGHT(quadrant) ((quadrant) - 1)
|
|
|
|
enum Quadrant {
|
|
QUADRANT_TOP_LEFT,
|
|
QUADRANT_TOP_RIGHT,
|
|
QUADRANT_BOTTOM_LEFT,
|
|
QUADRANT_BOTTOM_RIGHT,
|
|
QUADRANT_INVALID
|
|
};
|
|
|
|
#endif // POKEPLATINUM_CONSTANTS_QUADRANT_H
|