diff options
| author | Behemoth <Luisscheurenbrand@gmail.com> | 2020-09-01 00:57:40 +0200 |
|---|---|---|
| committer | Behemoth <Luisscheurenbrand@gmail.com> | 2020-09-01 00:58:36 +0200 |
| commit | 662e221f89aaaed63e80c167822d5d51bf5e172e (patch) | |
| tree | 112d6f35534ea9b047af9b3c725627944825fe93 /include/entity.h | |
| parent | cc5bb0133b20733958f2c112917f26314c681d54 (diff) | |
label a bunch of stuff
Diffstat (limited to 'include/entity.h')
| -rw-r--r-- | include/entity.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/entity.h b/include/entity.h index fc09651d..7440c198 100644 --- a/include/entity.h +++ b/include/entity.h @@ -169,6 +169,13 @@ extern void CopyPosition(Entity*, Entity*); extern void DeleteEntity(Entity*); extern void PositionRelative(Entity*, Entity*, s32, s32); +#define DirectionRound(expr) ((expr) & 0x18) +#define DirectionRoundUp(expr) DirectionRound((expr) + 4) +#define DirectionIsHorizontal(expr) ((expr) & 0x08) +#define DirectionIsVertical(expr) ((expr) & 0x10) +#define DirectionTurnHorizontal(expr) (DirectionRoundUp(expr) ^ 0x08) +#define DirectionTurnVertical(expr) (DirectionRoundUp(expr) ^ 0x10) + extern Entity gUnk_03003DA0; #endif |
