Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
actions.c
Go to the documentation of this file.
1#include "common.h"
2#include "actions.h"
3#include "ld_addrs.h"
4
5void action_update_idle(void);
6void action_update_walk(void);
7void action_update_run(void);
8void action_update_land(void);
9void action_update_jump(void);
11void action_update_falling(void);
16void action_update_talk(void);
17void action_update_sliding(void);
18void action_update_hammer(void);
19void action_update_launch(void);
21void action_update_hit_fire(void);
23void action_update_hit_lava(void);
24void action_update_parasol(void);
25void action_update_spin(void);
27void action_update_ride(void);
28void action_update_step_up(void);
34void action_update_state_23(void);
35
36#if VERSION_JP // TODO remove once segments are split
37extern Addr world_action_idle_ROM_START;
38extern Addr world_action_idle_ROM_END;
39extern Addr world_action_walk_ROM_START;
40extern Addr world_action_walk_ROM_END;
41extern Addr world_action_jump_ROM_START;
42extern Addr world_action_jump_ROM_END;
43extern Addr world_action_land_ROM_START;
44extern Addr world_action_land_ROM_END;
45extern Addr world_action_misc_ROM_START;
46extern Addr world_action_misc_ROM_END;
47extern Addr world_action_spin_jump_ROM_START;
48extern Addr world_action_spin_jump_ROM_END;
49extern Addr world_action_tornado_jump_ROM_START;
50extern Addr world_action_tornado_jump_ROM_END;
51extern Addr world_action_slide_ROM_START;
52extern Addr world_action_slide_ROM_END;
53extern Addr world_action_hammer_ROM_START;
54extern Addr world_action_hammer_ROM_END;
55extern Addr world_action_hit_fire_ROM_START;
56extern Addr world_action_hit_fire_ROM_END;
57extern Addr world_action_knockback_ROM_START;
58extern Addr world_action_knockback_ROM_END;
59extern Addr world_action_hit_lava_ROM_START;
60extern Addr world_action_hit_lava_ROM_END;
61extern Addr world_action_step_up_ROM_START;
62extern Addr world_action_step_up_ROM_END;
63extern Addr world_action_sneaky_parasol_ROM_START;
64extern Addr world_action_sneaky_parasol_ROM_END;
65extern Addr world_action_spin_ROM_START;
66extern Addr world_action_spin_ROM_END;
67extern Addr world_action_use_spinning_flower_ROM_START;
68extern Addr world_action_use_spinning_flower_ROM_END;
69extern Addr world_action_use_munchlesia_ROM_START;
70extern Addr world_action_use_munchlesia_ROM_END;
71extern Addr world_action_use_tweester_ROM_START;
72extern Addr world_action_use_tweester_ROM_END;
73#endif
74
75#define ACTION_FILE(name) world_action_##name##_ROM_START, world_action_##name##_ROM_END
76
115 //@bug function does not exist in world_action_walk, causes jump to middle of action_update_run and crashes
118};
void action_update_pushing_block(void)
Definition misc.c:182
void action_update_talk(void)
Definition misc.c:214
#define ACTION_FILE(name)
Definition actions.c:75
void action_update_step_down(void)
Definition jump.c:141
void action_update_knockback(void)
Definition knockback.c:9
void action_update_use_tweester(void)
void action_update_jump(void)
Definition jump.c:41
void action_update_sliding(void)
Definition slide.c:38
void action_update_step_up_peach(void)
Definition step_up.c:85
void action_update_idle(void)
Definition idle.c:36
void action_update_use_spinning_flower(void)
void action_update_raise_arms(void)
Definition misc.c:163
void action_update_first_strike(void)
Definition misc.c:142
void action_update_spin_jump(void)
Definition spin_jump.c:18
void action_update_hit_lava(void)
Definition hit_lava.c:19
void action_update_launch(void)
Definition misc.c:118
void action_update_use_munchlesia(void)
void action_update_state_23(void)
Definition misc.c:32
void action_update_run(void)
Definition walk.c:111
void action_update_walk(void)
Definition walk.c:30
void action_update_hit_fire(void)
Definition hit_fire.c:9
void action_update_landing_on_switch(void)
Definition jump.c:76
void action_update_hammer(void)
Definition hammer.c:230
void action_update_land(void)
Definition land.c:12
void action_update_spin(void)
Definition spin.c:27
void action_update_parasol(void)
void action_update_falling(void)
Definition jump.c:114
void action_update_tornado_jump(void)
void action_update_step_up(void)
Definition step_up.c:29
void action_update_ride(void)
Definition misc.c:9
void action_update_step_down_land(void)
Definition land.c:77
Action PlayerActionsTable[]
Definition actions.c:77
@ ACTION_STATE_PUSHING_BLOCK
Definition enums.h:2448
@ ACTION_STATE_RIDE
Definition enums.h:2461
@ ACTION_STATE_24
Definition enums.h:2464
@ ACTION_STATE_HIT_LAVA
Definition enums.h:2451
@ ACTION_STATE_JUMP
Definition enums.h:2430
@ ACTION_STATE_STEP_DOWN_LAND
Definition enums.h:2438
@ ACTION_STATE_USE_MUNCHLESIA
Set by the jan_09 squishy flower entity; throws the player in the air.
Definition enums.h:2458
@ ACTION_STATE_SPIN_POUND
Definition enums.h:2442
@ ACTION_STATE_LANDING_ON_SWITCH
Small red/blue ! switches.
Definition enums.h:2434
@ ACTION_STATE_SPIN_JUMP
Definition enums.h:2441
@ ACTION_STATE_LAUNCH
Shy Guy Toybox jack-in-the-boxes.
Definition enums.h:2433
@ ACTION_STATE_IDLE
Definition enums.h:2426
@ ACTION_STATE_TALK
Reading signs doesn't count.
Definition enums.h:2440
@ ACTION_STATE_23
Definition enums.h:2463
@ ACTION_STATE_USE_TWEESTER
Definition enums.h:2459
@ ACTION_STATE_USE_SPRING
Definition enums.h:2466
@ ACTION_STATE_USE_SNEAKY_PARASOL
Definition enums.h:2453
@ ACTION_STATE_BOUNCE_OFF_SWITCH
Small red/blue ! switches.
Definition enums.h:2460
@ ACTION_STATE_STEP_UP_PEACH
Definition enums.h:2452
@ ACTION_STATE_TORNADO_POUND
Definition enums.h:2444
@ ACTION_STATE_USE_SPINNING_FLOWER
Definition enums.h:2457
@ ACTION_STATE_FALLING
Definition enums.h:2435
@ ACTION_STATE_INVALID_25
Definition enums.h:2465
@ ACTION_STATE_LAND
Definition enums.h:2437
@ ACTION_STATE_SLIDING
Definition enums.h:2445
@ ACTION_STATE_HOP
Released A before apex of jump.
Definition enums.h:2432
@ ACTION_STATE_KNOCKBACK
Definition enums.h:2450
@ ACTION_STATE_ENEMY_FIRST_STRIKE
Definition enums.h:2455
@ ACTION_STATE_RAISE_ARMS
Definition enums.h:2456
@ ACTION_STATE_13
Definition enums.h:2447
@ ACTION_STATE_WALK
Definition enums.h:2427
@ ACTION_STATE_BOUNCE
Used with Kooper.
Definition enums.h:2431
@ ACTION_STATE_STEP_DOWN
Definition enums.h:2436
@ ACTION_STATE_HAMMER
Definition enums.h:2446
@ ACTION_STATE_HIT_FIRE
Causes Mario to fly up and take damage. Used for fire bars.
Definition enums.h:2449
@ ACTION_STATE_TORNADO_JUMP
Definition enums.h:2443
@ ACTION_STATE_STEP_UP
Definition enums.h:2462
@ ACTION_STATE_SPIN
Definition enums.h:2454
@ ACTION_STATE_RUN
Definition enums.h:2428
u8 Addr[]
Linker symbol address, as in ld_addrs.h.
Definition types.h:16