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

Functions

void default_trigger_on_activate (Trigger *self)
 
void clear_trigger_data (void)
 
void init_trigger_list (void)
 
Triggercreate_trigger (TriggerBlueprint *bp)
 
void update_triggers (void)
 
void delete_trigger (Trigger *toDelete)
 
s32 is_another_trigger_bound (Trigger *trigger, EvtScript *script)
 
Triggerget_trigger_by_id (s32 triggerID)
 
s32 should_collider_allow_interact (s32 colliderID)
 

Variables

s16 gTriggerCount
 
BSS TriggerList wTriggerList
 
BSS TriggerList bTriggerList
 
BSS TriggerListgCurrentTriggerListPtr
 

Function Documentation

◆ clear_trigger_data()

◆ create_trigger()

Trigger * create_trigger ( TriggerBlueprint * bp)

◆ default_trigger_on_activate()

void default_trigger_on_activate ( Trigger * self)

Referenced by create_trigger().

◆ delete_trigger()

void delete_trigger ( Trigger * toDelete)

Referenced by evt_handle_unbind().

◆ get_trigger_by_id()

Trigger * get_trigger_by_id ( s32 triggerID)

Referenced by get_trigger_tattle().

◆ init_trigger_list()

void init_trigger_list ( void )

◆ is_another_trigger_bound()

s32 is_another_trigger_bound ( Trigger * trigger,
EvtScript * script )

◆ should_collider_allow_interact()

s32 should_collider_allow_interact ( s32 colliderID)
Returns
TRUE if colliderID is bound to an interaction trigger (press A) and the player can use it.

Referenced by check_for_interactables(), func_800E06D8(), and should_continue_inspect().

◆ update_triggers()

void update_triggers ( void )

Referenced by step_game_loop().

Variable Documentation

◆ bTriggerList

BSS TriggerList bTriggerList

◆ gCurrentTriggerListPtr

◆ gTriggerCount

s16 gTriggerCount

◆ wTriggerList

BSS TriggerList wTriggerList