src/player.c file

Player entity.

Typedefs

using PlayerEntityAction = void()(PlayerEntity*)

Functions

static void DoJump(PlayerEntity*)
static void sub_080717F8(PlayerEntity*)
static void reset_priority(void)
static void break_out(PlayerEntity* this)
static void sub_08073AD4(PlayerEntity* this)
static void sub_08073B60(PlayerEntity*)
static void sub_08074244(PlayerEntity*, u32, u32)
static void hide(PlayerEntity*)
static void conveyer_push(PlayerEntity*)
static void sub_08074D34(PlayerEntity*, ScriptExecutionContext*)
static void sub_08070BEC(PlayerEntity*, u32)
static void sub_08074808(PlayerEntity* this)
void SurfaceAction_Water(PlayerEntity*)
void SurfaceAction_Ladder(PlayerEntity*)
void SurfaceAction_AutoLadder(PlayerEntity*)
void InitPauseMenu(void)
auto UpdatePlayerCollision(void) -> u32
auto CheckInitPauseMenu(void) -> bool32
void DoPlayerAction(PlayerEntity* this)
static void PlayerInit(PlayerEntity* this)
static void PlayerNormal(PlayerEntity* this)
static void PlayerFall(PlayerEntity* this)
static void PlayerFallInit(PlayerEntity* this)
static void PlayerFallUpdate(PlayerEntity* this)
static void PlayerBounce(PlayerEntity* this)
static void PlayerBounceInit(PlayerEntity* this)
static void PlayerBounceUpdate(PlayerEntity* this)
static void sub_08070E7C(PlayerEntity* this)
static void sub_08070E9C(PlayerEntity* this)
static void sub_08070EDC(PlayerEntity* this)
static void sub_08070f24(PlayerEntity* this)
static void PlayerItemGet(PlayerEntity* this)
static void PlayerItemGetInit(PlayerEntity* this)
static void PlayerItemGetUpdate(PlayerEntity* this)
static void sub_08071038(PlayerEntity* this)
static void PlayerJump(PlayerEntity* this)
static void PlayerJumpInit(PlayerEntity* this)
static void sub_08071130(PlayerEntity* this)
static void sub_08071208(PlayerEntity* this)
static void PlayerDrown(PlayerEntity* this)
static void PlayerDrownInit(PlayerEntity* this)
static void sub_080712F0(PlayerEntity* this)
static void PlayerUsePortal(PlayerEntity* this)
static void PortalJumpOnUpdate(PlayerEntity* this)
static void PortalStandUpdate(PlayerEntity* this)
static void PortalActivateInit(PlayerEntity* this)
static void PortalActivateUpdate(PlayerEntity* this)
static void PortalShrinkInit(PlayerEntity* this)
static void PortalShrinkUpdate(PlayerEntity* this)
static void PortalEnterUpdate(PlayerEntity* this)
static void PortalUnknownUpdate(PlayerEntity* this)
static void PlayerTalkEzlo(PlayerEntity* this)
static void PlayerTalkEzlo_Init(PlayerEntity* this)
static void PlayerTalkEzlo_CreateMessage(PlayerEntity* this)
static void PlayerTalkEzlo_MessageIdle(PlayerEntity* this)
static void PlayerTalkEzlo_Leave(PlayerEntity* this)
static void PlayerPush(PlayerEntity* this)
static void PlayerPushInit(PlayerEntity* this)
static void PlayerPushUpdate(PlayerEntity* this)
static void PlayerPushEnd(PlayerEntity* this)
static void PlayerMinishDie(PlayerEntity* this)
static void PlayerMinishDieInit(PlayerEntity* this)
static void sub_08071CAC(PlayerEntity* this)
static void sub_08071D04(PlayerEntity* this)
static void sub_08071D80(PlayerEntity* this)
static void sub_08071DB8(PlayerEntity* this)
static void sub_08071DD0(PlayerEntity* this)
static void sub_08071E04(PlayerEntity* this)
static void sub_08071E74(PlayerEntity* this)
static void PlayerEmptyBottle(PlayerEntity* this)
static void PlayerEmptyBottleInit(PlayerEntity* this)
static void PlayerEmptyBottleUpdate(PlayerEntity* this)
static void PlayerFrozen(PlayerEntity* this)
static void PlayerFrozenInit(PlayerEntity* this)
static void PlayerFrozenUpdate(PlayerEntity* this)
static void sub_0807204C(PlayerEntity* this)
static void sub_08072064(PlayerEntity* this)
static void sub_08072098(PlayerEntity* this)
static void PlayerRoomExit(PlayerEntity* this)
static void sub_08072100(PlayerEntity* this)
static void sub_08072168(PlayerEntity* this)
static void PlayerPull(PlayerEntity* this)
static void sub_08072214(PlayerEntity* this)
static void sub_08072260(PlayerEntity* this)
static void PlayerLava(PlayerEntity* this)
static void PlayerLavaInit(PlayerEntity* this)
static void sub_08072354(PlayerEntity* this)
static void sub_080723D0(PlayerEntity* this)
static void sub_0807240C(PlayerEntity* this)
static void sub_08072454(PlayerEntity* this)
static void sub_0807246C(PlayerEntity* this)
static void sub_08072490(PlayerEntity* this)
static void PlayerRoomTransition(PlayerEntity* this)
static void sub_080724DC(PlayerEntity* this)
static void sub_0807258C(PlayerEntity* this)
static void PlayerRoll(PlayerEntity* this)
static void PlayerRollInit(PlayerEntity* this)
static void PlayerRollUpdate(PlayerEntity* this)
static void PlayerWaitForScroll(PlayerEntity* this)
static void PlayerInHole(PlayerEntity* this)
static void PlayerInHoleInit(PlayerEntity* this)
static void PlayerInHoleUpdate(PlayerEntity* this)
static void sub_08072ACC(PlayerEntity* this)
static void sub_08072B5C(PlayerEntity* this)
static void sub_08072C48(PlayerEntity* this)
static void sub_08072C9C(PlayerEntity* this)
static void sub_08072CC0(PlayerEntity* this)
static void sub_08072CFC(PlayerEntity* this)
static void sub_08072D54(PlayerEntity* this)
static void sub_08072F14(PlayerEntity* this)
static void PlayerClimb(PlayerEntity* this)
static void sub_08072F94(PlayerEntity* this)
static void sub_08073094(PlayerEntity* this)
static void PlayerUseEntrance(PlayerEntity* this)
static void PlayerUseStairs(PlayerEntity* this)
static void sub_080732D0(PlayerEntity* this)
static void sub_0807332C(PlayerEntity* this)
static void sub_080733BC(PlayerEntity* this)
static void PlayerParachute(PlayerEntity* this)
static void sub_08073468(PlayerEntity* this)
static void sub_080734D4(PlayerEntity* this)
static void sub_08073504(PlayerEntity* this)
static void sub_08073584(PlayerEntity* this)
static void sub_0807379C(PlayerEntity* this)
static void sub_080737BC(PlayerEntity* this)
static void sub_0807380C(PlayerEntity* this)
void sub_08073884(PlayerEntity* this)
static void sub_08073924(PlayerEntity* this)
static void sub_08073968(PlayerEntity* this)
static void sub_080739EC(PlayerEntity* this)
void sub_08073A94(PlayerEntity* this)
void sub_08073B8C(PlayerEntity* this)
void sub_08073C30(PlayerEntity* this)
static void PlayerMinish(PlayerEntity* this)
static void sub_08073C80(PlayerEntity* this)
static void sub_08073D20(PlayerEntity* this)
static void sub_08073F04(PlayerEntity* this)
static void sub_08073F4C(PlayerEntity* this)
static void sub_08073FD0(PlayerEntity* this)
static void sub_08074018(PlayerEntity* this)
static void sub_08074060(PlayerEntity* this)
void sub_080740D8(PlayerEntity* this)
auto sub_080741C4(void) -> u32
void SurfaceAction_DoNothing(PlayerEntity* this)
void SurfaceAction_Pit(PlayerEntity* this)
void SurfaceAction_SlopeGndGndVertical(PlayerEntity* this)
void SurfaceAction_SlopeGndGndHorizontal(PlayerEntity* this)
void SurfaceAction_6(PlayerEntity* this)
void SurfaceAction_7(PlayerEntity* this)
void SurfaceAction_MinishDoorFront(PlayerEntity* this)
void SurfaceAction_MinishDoorBack(PlayerEntity* this)
void SurfaceAction_A(PlayerEntity* this)
void SurfaceAction_B(PlayerEntity* this)
void SurfaceAction_14(PlayerEntity* this)
void SurfaceAction_CloneTile(PlayerEntity* this)
void SurfaceAction_16(PlayerEntity* this)
void SurfaceAction_Ice(PlayerEntity* this)
void SurfaceAction_ShallowWater(PlayerEntity* this)
void SurfaceAction_SlopeGndWater(PlayerEntity* this)
void SurfaceAction_Swamp(PlayerEntity* this)
void SurfaceAction_Button(PlayerEntity* this)
void sub_080748D4(void)
void SurfaceAction_1B(PlayerEntity* this)
void SurfaceAction_1C(PlayerEntity* this)
void SurfaceAction_ClimbWall(PlayerEntity* this)
void SurfaceAction_2C(PlayerEntity* this)
void SurfaceAction_20(PlayerEntity* this)
void SurfaceAction_22(PlayerEntity* this)
void SurfaceAction_Dust(PlayerEntity* this)
void SurfaceAction_26(PlayerEntity* this)
void SurfaceAction_Hole(PlayerEntity* this)
void SurfaceAction_ConveyerNorth(PlayerEntity* this)
void SurfaceAction_ConveyerSouth(PlayerEntity* this)
void SurfaceAction_ConveyerWest(PlayerEntity* this)
void SurfaceAction_ConveyerEast(PlayerEntity* this)
static void PlayerSleep(PlayerEntity* this)
static void sub_08074C68(PlayerEntity* this)
static void sub_08074CF8(PlayerEntity* this)
static void sub_08074F00(PlayerEntity* this)
void sub_08074F1C(PlayerEntity* this)
void sub_08074F2C(PlayerEntity* this)
void sub_08074F44(PlayerEntity* this)
void sub_08074F8C(PlayerEntity* this)
void sub_08074FEC(PlayerEntity* this)
void sub_0807501C(PlayerEntity* this)
void sub_0807508C(PlayerEntity* this)
void sub_080750F4(PlayerEntity* this)
void sub_08075110(PlayerEntity* this)
void sub_0807513C(PlayerEntity* this)
void sub_0807518C(PlayerEntity* this)
void sub_080751B4(PlayerEntity* this)
void sub_080751E8(u32 a1, u32 a2, void* script)
void sub_0807529C(PlayerEntity* this)
void sub_080752AC(PlayerEntity* this, ScriptExecutionContext* ctx)

Variables

static PlayerEntityAction PlayerInit
static PlayerEntityAction PlayerNormal
static PlayerEntityAction PlayerFall
static PlayerEntityAction PlayerJump
static PlayerEntityAction PlayerPush
static PlayerEntityAction PlayerBounce
static PlayerEntityAction sub_08070E9C
static PlayerEntityAction PlayerItemGet
static PlayerEntityAction PlayerMinish
static PlayerEntityAction PlayerMinishDie
static PlayerEntityAction sub_08071DB8
static PlayerEntityAction PlayerEmptyBottle
static PlayerEntityAction PlayerFrozen
static PlayerEntityAction sub_0807204C
static PlayerEntityAction PlayerRoomExit
static PlayerEntityAction PlayerPull
static PlayerEntityAction PlayerLava
PlayerEntityAction PlayerWarp
static PlayerEntityAction sub_08072454
static PlayerEntityAction PlayerDrown
static PlayerEntityAction PlayerUsePortal
static PlayerEntityAction PlayerTalkEzlo
static PlayerEntityAction PlayerRoomTransition
static PlayerEntityAction PlayerRoll
static PlayerEntityAction PlayerWaitForScroll
static PlayerEntityAction PlayerInHole
static PlayerEntityAction sub_08072C9C
static PlayerEntityAction PlayerSleep
static PlayerEntityAction PlayerClimb
static PlayerEntityAction PlayerUseEntrance
static PlayerEntityAction PlayerParachute
static PlayerEntityAction PlayerFallInit
static PlayerEntityAction PlayerFallUpdate
static PlayerEntityAction PlayerBounceInit
static PlayerEntityAction PlayerBounceUpdate
static PlayerEntityAction sub_08070E7C
static PlayerEntityAction sub_08070EDC
static PlayerEntityAction sub_08070f24
static PlayerEntityAction PlayerItemGetInit
static PlayerEntityAction PlayerItemGetUpdate
static PlayerEntityAction sub_08071038
static PlayerEntityAction PlayerJumpInit
static PlayerEntityAction sub_08071130
static PlayerEntityAction sub_08071208
static PlayerEntityAction PlayerDrownInit
static PlayerEntityAction sub_080712F0
static PlayerEntityAction PortalJumpOnUpdate
static PlayerEntityAction PortalStandUpdate
static PlayerEntityAction PortalActivateInit
static PlayerEntityAction PortalActivateUpdate
static PlayerEntityAction PortalShrinkInit
static PlayerEntityAction PortalShrinkUpdate
static PlayerEntityAction PortalEnterUpdate
static PlayerEntityAction PortalUnknownUpdate
static PlayerEntityAction PlayerTalkEzlo_Init
static PlayerEntityAction PlayerTalkEzlo_CreateMessage
static PlayerEntityAction PlayerTalkEzlo_MessageIdle
static PlayerEntityAction PlayerTalkEzlo_Leave
static PlayerEntityAction PlayerPushInit
static PlayerEntityAction PlayerPushUpdate
static PlayerEntityAction PlayerPushEnd
static PlayerEntityAction PlayerMinishDieInit
static PlayerEntityAction sub_08071CAC
static PlayerEntityAction sub_08071D04
static PlayerEntityAction sub_08071D80
static PlayerEntityAction sub_08071DD0
static PlayerEntityAction sub_08071E04
static PlayerEntityAction sub_08071E74
static PlayerEntityAction PlayerEmptyBottleInit
static PlayerEntityAction PlayerEmptyBottleUpdate
static PlayerEntityAction PlayerFrozenInit
static PlayerEntityAction PlayerFrozenUpdate
static PlayerEntityAction sub_08072064
static PlayerEntityAction sub_08072098
static PlayerEntityAction sub_08072100
static PlayerEntityAction sub_08072168
static PlayerEntityAction sub_08072214
static PlayerEntityAction sub_08072260
static PlayerEntityAction PlayerLavaInit
static PlayerEntityAction sub_08072354
static PlayerEntityAction sub_080723D0
static PlayerEntityAction sub_0807240C
static PlayerEntityAction sub_0807246C
static PlayerEntityAction sub_08072490
static PlayerEntityAction sub_080724DC
static PlayerEntityAction sub_0807258C
static PlayerEntityAction PlayerRollInit
static PlayerEntityAction PlayerRollUpdate
static PlayerEntityAction PlayerInHoleInit
static PlayerEntityAction PlayerInHoleUpdate
static PlayerEntityAction sub_08072ACC
static PlayerEntityAction sub_08072B5C
static PlayerEntityAction sub_08072C48
static PlayerEntityAction sub_08072CC0
static PlayerEntityAction sub_08072CFC
static PlayerEntityAction sub_08072D54
static PlayerEntityAction sub_08072F14
static PlayerEntityAction sub_08072F94
static PlayerEntityAction sub_08073094
static PlayerEntityAction PlayerUseStairs
static PlayerEntityAction sub_080732D0
static PlayerEntityAction sub_0807332C
static PlayerEntityAction sub_080733BC
static PlayerEntityAction sub_08073468
static PlayerEntityAction sub_080734D4
static PlayerEntityAction sub_08073504
static PlayerEntityAction sub_08073584
static PlayerEntityAction sub_0807379C
static PlayerEntityAction sub_080737BC
static PlayerEntityAction sub_0807380C
static PlayerEntityAction sub_08073884
static PlayerEntityAction sub_08073924
static PlayerEntityAction sub_08073968
static PlayerEntityAction sub_080739EC
static PlayerEntityAction sub_08073A94
static PlayerEntityAction sub_08073B8C
static PlayerEntityAction sub_08073C30
static PlayerEntityAction sub_08073C80
static PlayerEntityAction sub_08073D20
static PlayerEntityAction sub_08073F04
static PlayerEntityAction sub_08073F4C
static PlayerEntityAction sub_08073FD0
static PlayerEntityAction sub_08074018
static PlayerEntityAction sub_08074060
static PlayerEntityAction sub_080740D8
static PlayerEntityAction sub_08074C68
static PlayerEntityAction sub_08074CF8
static PlayerEntityAction sub_08074F00
static PlayerEntityAction sub_080750F4
static PlayerEntityAction sub_08074F1C
static PlayerEntityAction sub_08074F2C
static PlayerEntityAction sub_08074F44
static PlayerEntityAction sub_08074F8C
static PlayerEntityAction sub_08074FEC
static PlayerEntityAction sub_0807501C
static PlayerEntityAction sub_0807508C
static PlayerEntityAction sub_08075110
static PlayerEntityAction sub_0807513C
static PlayerEntityAction sub_0807518C
static PlayerEntityAction sub_080751B4
u8 gUnk_080082DC
u16 script_BedInLinksRoom
u16 script_BedAtSimons
ScriptExecutionContext gPlayerScriptExecutionContext
static const KeyValuePair sTiles0
static const u16 sTiles0End
static const KeyValuePair sTiles1
static const u16 sTiles1End
static const KeyValuePair sTiles2
static const u16 sTiles2End
static const KeyValuePair sTiles3
static const u16 sTiles3End
static const KeyValuePair*const sTileTable

Defines

#define kGravityRate
#define kWalkSpeedSlopeSubtractor
#define kWalkSpeed
#define kWalkSpeedRolling
#define kWalkSpeedGustJar
#define kWalkSpeedShield
#define kWalkSpeedSwordCharge
#define kWalkSpeedBurning
#define kJumpSpeedForward
#define kJumpSpeedHoleForward
#define kJumpSpeedHoleZ
#define kBounceSpeedForward
#define kBounceSpeedZ
#define kPullSpeed
#define kPushSpeed
#define kFallDamage

Function documentation

void SurfaceAction_CloneTile(PlayerEntity* this)