papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
sushie.c File Reference

Macros

#define NAMESPACE   world_sushie
 
#define USE_STATE   functionTemp[0]
 

Enumerations

enum  { DIVE_STATE_NONE = 0 , DIVE_STATE_DELAY = 1 , DIVE_STATE_DIVING = 2 , DIVE_STATE_SURFACING = 3 }
 

Functions

void N get_movement_from_input (f32 *outAngle, f32 *outSpeed)
 
void N test_for_water_level (s32 ignoreFlags, f32 posX, f32 posY, f32 posZ, f32 yaw, f32 radius)
 
void N update_riding_physics (Npc *sushie)
 
HitIDtest_ray_to_wall_center (s32 unused, f32 *x, f32 *y, f32 *z, f32 length, f32 radius, f32 *yaw)
 
void N init (Npc *sushie)
 
void N try_cancel_tweester (Npc *sushie)
 
void N pre_battle (Npc *sushie)
 
void N post_battle (Npc *sushie)
 

Variables

EvtScript EVS_WorldSushie_UseAbility
 
EvtScript EVS_WorldSushie_TakeOut
 
EvtScript EVS_WorldSushie_Update
 
EvtScript EVS_WorldSushie_PutAway
 
EvtScript EVS_WorldSushie_EnterMap
 

Macro Definition Documentation

◆ NAMESPACE

#define NAMESPACE   world_sushie

◆ USE_STATE

#define USE_STATE   functionTemp[0]

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DIVE_STATE_NONE 
DIVE_STATE_DELAY 
DIVE_STATE_DIVING 
DIVE_STATE_SURFACING 

Function Documentation

◆ get_movement_from_input()

void N get_movement_from_input ( f32 * outAngle,
f32 * outSpeed )

Referenced by update_riding_physics().

◆ init()

void N init ( Npc * sushie)

◆ post_battle()

void N post_battle ( Npc * sushie)

◆ pre_battle()

void N pre_battle ( Npc * sushie)

◆ test_for_water_level()

void N test_for_water_level ( s32 ignoreFlags,
f32 posX,
f32 posY,
f32 posZ,
f32 yaw,
f32 radius )

Referenced by update_riding_physics().

◆ test_ray_to_wall_center()

HitID N test_ray_to_wall_center ( s32 unused,
f32 * x,
f32 * y,
f32 * z,
f32 length,
f32 radius,
f32 * yaw )

◆ try_cancel_tweester()

void N try_cancel_tweester ( Npc * sushie)

◆ update_riding_physics()

void N update_riding_physics ( Npc * sushie)

Variable Documentation

◆ EVS_WorldSushie_EnterMap

EvtScript EVS_WorldSushie_EnterMap
Initial value:
= {
Call(N(EnterMap))
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:225
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:588
#define Return
Kills the current EVT thread.
Definition macros.h:229

◆ EVS_WorldSushie_PutAway

EvtScript EVS_WorldSushie_PutAway
Initial value:
= {
Call(N(PutAway))
}

◆ EVS_WorldSushie_TakeOut

EvtScript EVS_WorldSushie_TakeOut
Initial value:
= {
Call(N(TakeOut))
}

◆ EVS_WorldSushie_Update

EvtScript EVS_WorldSushie_Update
Initial value:
= {
Call(N(Update))
}

◆ EVS_WorldSushie_UseAbility

EvtScript EVS_WorldSushie_UseAbility
Initial value:
= {
Call(N(UseAbility))
}