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