2017-09-16 20:13:06 +01:00
|
|
|
#ifndef GUARD_FIELD_PLAYER_AVATAR_H
|
|
|
|
#define GUARD_FIELD_PLAYER_AVATAR_H
|
2017-09-06 14:29:59 +01:00
|
|
|
|
2020-06-24 21:27:00 +01:00
|
|
|
void PlayerStep(u8 direction, u16 newKeys, u16 heldKeys);
|
2017-09-06 14:29:59 +01:00
|
|
|
void ClearPlayerAvatarInfo(void);
|
2023-01-08 01:35:36 +00:00
|
|
|
void SetPlayerAvatarExtraStateTransition(u16, u8);
|
2023-06-18 04:45:44 +01:00
|
|
|
u8 GetPlayerAvatarGenderByGraphicsId(u16);
|
2017-09-14 00:13:44 +01:00
|
|
|
bool8 TestPlayerAvatarFlags(u8);
|
2021-04-06 10:05:33 +01:00
|
|
|
u8 GetPlayerAvatarSpriteId(void);
|
2017-09-14 00:13:44 +01:00
|
|
|
void PlayerGetDestCoords(s16 *, s16 *);
|
2018-06-13 23:51:26 +01:00
|
|
|
u8 GetPlayerFacingDirection(void);
|
|
|
|
u8 GetPlayerMovementDirection(void);
|
|
|
|
u8 PlayerGetCopyableMovement(void);
|
2022-06-01 17:41:57 +01:00
|
|
|
void PlayerWalkNormal(u8 direction);
|
|
|
|
void PlayerWalkFast(u8 direction);
|
|
|
|
void PlayerRideWaterCurrent(u8 direction);
|
|
|
|
void PlayerWalkFaster(u8 direction);
|
|
|
|
void PlayerOnBikeCollide(u8 direction);
|
|
|
|
void PlayerFaceDirection(u8 direction);
|
|
|
|
void PlayerTurnInPlace(u8 direction);
|
|
|
|
void PlayerJumpLedge(u8 direction);
|
|
|
|
void PlayerIdleWheelie(u8 direction);
|
|
|
|
void PlayerStartWheelie(u8 direction);
|
|
|
|
void PlayerEndWheelie(u8 direction);
|
|
|
|
void PlayerStandingHoppingWheelie(u8 direction);
|
|
|
|
void PlayerMovingHoppingWheelie(u8 direction);
|
|
|
|
void PlayerLedgeHoppingWheelie(u8 direction);
|
|
|
|
void PlayerAcroTurnJump(u8 direction);
|
|
|
|
void PlayerSetAnimId(u8 movementActionId, u8 copyableMovement);
|
2017-12-21 16:46:03 +00:00
|
|
|
bool8 IsPlayerCollidingWithFarawayIslandMew(u8 direction);
|
|
|
|
void PlayerOnBikeCollideWithFarawayIslandMew(u8 direction);
|
2022-06-01 17:41:57 +01:00
|
|
|
u8 CheckForObjectEventCollision(struct ObjectEvent *objectEvent, s16 x, s16 y, u8 direction, u8 metatileBehavior);
|
2022-01-21 17:48:19 +00:00
|
|
|
u8 PlayerGetElevation(void);
|
2022-06-01 17:41:57 +01:00
|
|
|
void SetPlayerAvatarTransitionFlags(u16 transitionFlags);
|
2021-10-26 18:27:20 +01:00
|
|
|
void CancelPlayerForcedMovement(void);
|
2022-06-01 17:41:57 +01:00
|
|
|
void InitPlayerAvatar(s16 x, s16 y, u8 direction, u8 gender);
|
2021-01-26 09:41:13 +00:00
|
|
|
void PlayerFreeze(void);
|
2021-10-26 18:27:20 +01:00
|
|
|
void StopPlayerAvatar(void);
|
2021-01-01 20:34:21 +00:00
|
|
|
void SetSpinStartFacingDir(u8);
|
2017-10-24 00:29:16 +01:00
|
|
|
void GetXYCoordsOneStepInFrontOfPlayer(s16 *xPtr, s16 *yPtr);
|
2023-01-08 01:35:36 +00:00
|
|
|
u16 GetRivalAvatarGraphicsIdByStateIdAndGender(u8 state, u8 gender);
|
2020-06-20 00:58:56 +01:00
|
|
|
void SetPlayerAvatarFieldMove(void);
|
2023-01-08 01:35:36 +00:00
|
|
|
u16 GetPlayerAvatarGraphicsIdByCurrentState(void);
|
2022-06-01 17:41:57 +01:00
|
|
|
void SetPlayerAvatarStateMask(u8 flags);
|
2023-01-08 01:35:36 +00:00
|
|
|
u16 GetPlayerAvatarGraphicsIdByStateId(u8 state);
|
2018-06-13 23:51:26 +01:00
|
|
|
u8 GetJumpSpecialMovementAction(u32);
|
2018-10-17 03:47:08 +01:00
|
|
|
bool8 PartyHasMonWithSurf(void);
|
|
|
|
bool8 IsPlayerFacingSurfableFishableWater(void);
|
|
|
|
bool8 IsPlayerSurfingNorth(void);
|
2020-06-20 00:58:56 +01:00
|
|
|
void SetPlayerAvatarWatering(u8 direction);
|
2020-04-01 07:54:26 +01:00
|
|
|
u8 GetPlayerAvatarFlags(void);
|
2020-06-24 21:27:00 +01:00
|
|
|
void UpdatePlayerAvatarTransitionState(void);
|
2023-01-08 01:35:36 +00:00
|
|
|
u16 GetFRLGAvatarGraphicsIdByGender(u8);
|
|
|
|
u16 GetRSAvatarGraphicsIdByGender(u8);
|
2020-04-12 13:38:18 +01:00
|
|
|
void PlayerWheelieInPlace(u8 direction);
|
2020-04-12 14:31:11 +01:00
|
|
|
void PlayerWheelieMove(u8 direction);
|
2020-04-12 14:35:38 +01:00
|
|
|
void PlayerPopWheelieWhileMoving(u8 direction);
|
2020-04-12 15:22:03 +01:00
|
|
|
void PlayerUseAcroBikeOnBumpySlope(u8 direction);
|
2020-04-12 14:43:45 +01:00
|
|
|
void PlayerEndWheelieWhileMoving(u8 direction);
|
2021-01-01 20:34:21 +00:00
|
|
|
void DoPlayerSpinEntrance(void);
|
|
|
|
void DoPlayerSpinExit(void);
|
|
|
|
bool32 IsPlayerSpinEntranceActive(void);
|
|
|
|
bool32 IsPlayerSpinExitActive(void);
|
2019-12-17 08:24:44 +00:00
|
|
|
void SetPlayerInvisibility(bool8 invisible);
|
2019-04-01 17:05:58 +01:00
|
|
|
u8 player_get_pos_including_state_based_drift(s16 *x, s16 *y);
|
2020-02-03 23:21:28 +00:00
|
|
|
void StartFishing(u8 rod);
|
2020-07-14 21:28:02 +01:00
|
|
|
bool8 ObjectMovingOnRockStairs(struct ObjectEvent *objectEvent, u8 direction);
|
2020-06-03 21:23:28 +01:00
|
|
|
//sideways stairs
|
2020-06-05 03:30:27 +01:00
|
|
|
u8 GetRightSideStairsDirection(u8 direction);
|
|
|
|
u8 GetLeftSideStairsDirection(u8 direction);
|
2017-10-12 08:06:19 +01:00
|
|
|
|
2018-02-14 00:12:17 +00:00
|
|
|
#endif // GUARD_FIELD_PLAYER_AVATAR_H
|