2017-09-16 15:13:06 -04:00
|
|
|
#ifndef GUARD_FIELD_PLAYER_AVATAR_H
|
|
|
|
#define GUARD_FIELD_PLAYER_AVATAR_H
|
2017-09-06 09:29:59 -04:00
|
|
|
|
2018-10-19 00:05:54 -05:00
|
|
|
enum {
|
|
|
|
PLAYER_AVATAR_STATE_NORMAL,
|
|
|
|
PLAYER_AVATAR_STATE_MACH_BIKE,
|
|
|
|
PLAYER_AVATAR_STATE_ACRO_BIKE,
|
|
|
|
PLAYER_AVATAR_STATE_SURFING,
|
|
|
|
PLAYER_AVATAR_STATE_UNDERWATER,
|
|
|
|
PLAYER_AVATAR_STATE_FIELD_MOVE,
|
|
|
|
PLAYER_AVATAR_STATE_FISHING,
|
|
|
|
PLAYER_AVATAR_STATE_WATERING,
|
|
|
|
};
|
|
|
|
|
2018-02-14 00:58:22 +01:00
|
|
|
void player_step(u8 a, u16 b, u16 c);
|
2017-09-06 09:29:59 -04:00
|
|
|
void ClearPlayerAvatarInfo(void);
|
2017-09-07 20:04:59 -04:00
|
|
|
void SetPlayerAvatarExtraStateTransition(u8, u8);
|
|
|
|
u8 GetPlayerAvatarGenderByGraphicsId(u8);
|
2017-09-13 19:13:44 -04:00
|
|
|
bool8 TestPlayerAvatarFlags(u8);
|
2018-02-14 17:24:31 +05:30
|
|
|
u8 GetPlayerAvatarObjectId(void);
|
2017-09-13 19:13:44 -04:00
|
|
|
void PlayerGetDestCoords(s16 *, s16 *);
|
2018-06-13 17:51:26 -05:00
|
|
|
u8 GetPlayerFacingDirection(void);
|
|
|
|
u8 GetPlayerMovementDirection(void);
|
|
|
|
u8 PlayerGetCopyableMovement(void);
|
2017-12-21 17:46:03 +01:00
|
|
|
void PlayerGoSpeed1(u8);
|
|
|
|
void PlayerGoSpeed2(u8);
|
2018-10-19 00:05:54 -05:00
|
|
|
void PlayerRideWaterCurrent(u8);
|
2017-12-21 17:46:03 +01:00
|
|
|
void PlayerGoSpeed4(u8);
|
|
|
|
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);
|
2018-06-11 19:11:48 -05:00
|
|
|
u8 CheckForEventObjectCollision(struct EventObject *a, s16 b, s16 c, u8 d, u8 e);
|
2017-12-21 17:46:03 +01:00
|
|
|
u8 PlayerGetZCoord(void);
|
|
|
|
void SetPlayerAvatarTransitionFlags(u16 a);
|
2017-12-18 23:26:44 +01:00
|
|
|
void sub_808BCE8(void);
|
2018-02-14 00:58:22 +01:00
|
|
|
void InitPlayerAvatar(s16 a, s16 b, u8 c, u8 d);
|
2018-02-08 21:00:28 -05:00
|
|
|
void sub_808B864(void);
|
|
|
|
void sub_808BCF4(void);
|
2017-10-12 02:06:19 -05:00
|
|
|
void sub_808D074(u8);
|
2017-10-23 19:29:16 -04:00
|
|
|
void GetXYCoordsOneStepInFrontOfPlayer(s16 *xPtr, s16 *yPtr);
|
2018-01-23 21:30:13 -06:00
|
|
|
u8 GetRivalAvatarGraphicsIdByStateIdAndGender(u8, u8);
|
2018-04-10 12:17:29 +05:30
|
|
|
void sub_808C114(void);
|
2018-05-10 18:36:57 -05:00
|
|
|
u8 GetPlayerAvatarGraphicsIdByCurrentState(void);
|
|
|
|
void SetPlayerAvatarStateMask(u8 a);
|
|
|
|
u8 GetPlayerAvatarGraphicsIdByStateId(u8 a);
|
2018-06-13 17:51:26 -05:00
|
|
|
u8 GetJumpSpecialMovementAction(u32);
|
2018-10-16 21:47:08 -05:00
|
|
|
bool8 PartyHasMonWithSurf(void);
|
|
|
|
bool8 IsPlayerFacingSurfableFishableWater(void);
|
|
|
|
bool8 IsPlayerSurfingNorth(void);
|
2017-10-12 02:06:19 -05:00
|
|
|
|
2018-02-14 01:12:17 +01:00
|
|
|
#endif // GUARD_FIELD_PLAYER_AVATAR_H
|