sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

mario_step.h (1213B)


      1 #ifndef MARIO_STEP_H
      2 #define MARIO_STEP_H
      3 
      4 #include <PR/ultratypes.h>
      5 
      6 #include "types.h"
      7 
      8 struct BullyCollisionData {
      9   /*0x00*/ f32 conversionRatio;
     10   /*0x04*/ f32 radius;
     11   /*0x08*/ f32 posX;
     12   /*0x0C*/ f32 posZ;
     13   /*0x10*/ f32 velX;
     14   /*0x14*/ f32 velZ;
     15 };
     16 
     17 extern struct Surface gWaterSurfacePseudoFloor;
     18 
     19 f32 get_additive_y_vel_for_jumps(void);
     20 void stub_mario_step_1(struct MarioState *);
     21 void stub_mario_step_2(void);
     22 
     23 void mario_bonk_reflection(struct MarioState *, u32);
     24 void transfer_bully_speed(struct BullyCollisionData *obj1, struct BullyCollisionData *obj2);
     25 BAD_RETURN(s32) init_bully_collision_data(struct BullyCollisionData *data, f32 posX, f32 posZ,
     26                                           f32 forwardVel, s16 yaw, f32 conversionRatio, f32 radius);
     27 u32 mario_update_quicksand(struct MarioState *, f32);
     28 u32 mario_push_off_steep_floor(struct MarioState *, u32, u32);
     29 u32 mario_update_moving_sand(struct MarioState *);
     30 u32 mario_update_windy_ground(struct MarioState *);
     31 void stop_and_set_height_to_floor(struct MarioState *);
     32 s32 stationary_ground_step(struct MarioState *);
     33 s32 perform_ground_step(struct MarioState *);
     34 s32 perform_air_step(struct MarioState *, u32);
     35 
     36 #endif // MARIO_STEP_H