sm64pc/src/game/obj_behaviors.h

170 lines
6.2 KiB
C
Raw Normal View History

2019-08-25 04:46:40 +00:00
#ifndef _OBJ_BEHAVIORS_H
#define _OBJ_BEHAVIORS_H
#include "types.h"
2020-04-03 18:57:26 +00:00
#include "object_helpers.h"
2019-08-25 04:46:40 +00:00
#include "engine/surface_collision.h"
extern u8 bob_seg7_metal_ball_path0[];
extern u8 ttm_seg7_trajectory_070170A0[];
extern u8 bob_seg7_metal_ball_path1[];
2019-12-02 02:52:53 +00:00
void set_yoshi_as_not_dead(void);
2020-03-02 03:42:52 +00:00
s32 coin_step(s16 *collisionFlagsPtr);
void moving_coin_flicker(void);
void coin_collected(void);
2019-08-25 04:46:40 +00:00
void bhv_moving_yellow_coin_init(void);
void bhv_moving_yellow_coin_loop(void);
void bhv_moving_blue_coin_init(void);
void bhv_moving_blue_coin_loop(void);
void bhv_blue_coin_sliding_jumping_init(void);
2020-03-02 03:42:52 +00:00
void blue_coin_sliding_away_from_mario(void); /* likely unused */
void blue_coin_sliding_slow_down(void); /* likely unused */
2019-08-25 04:46:40 +00:00
void bhv_blue_coin_sliding_loop(void); /* likely unused */
void bhv_blue_coin_jumping_loop(void); /* likely unused */
void bhv_seaweed_init(void);
void bhv_seaweed_bundle_init(void);
void bhv_bobomb_init(void);
2020-03-02 03:42:52 +00:00
void bobomb_spawn_coin(void);
void bobomb_act_explode(void);
void bobomb_check_interactions(void);
void bobomb_act_patrol(void);
void bobomb_act_chase_mario(void);
void bobomb_act_launched(void);
void generic_bobomb_free_loop(void);
void stationary_bobomb_free_loop(void);
void bobomb_free_loop(void);
void bobomb_held_loop(void);
void bobomb_dropped_loop(void);
void bobomb_thrown_loop(void);
void curr_obj_random_blink(s32 *blinkTimer);
2019-08-25 04:46:40 +00:00
void bhv_bobomb_loop(void);
void bhv_bobomb_fuse_smoke_init(void);
void bhv_bobomb_buddy_init(void);
2020-03-02 03:42:52 +00:00
void bobomb_buddy_act_idle(void);
void bobomb_buddy_cannon_dialog(s16 arg0, s16 arg1);
void bobomb_buddy_act_talk(void);
void bobomb_buddy_act_turn_to_talk(void);
void bobomb_buddy_actions(void);
2019-08-25 04:46:40 +00:00
void bhv_bobomb_buddy_loop(void);
void bhv_cannon_closed_init(void);
2020-03-02 03:42:52 +00:00
void cannon_door_act_opening(void);
2019-08-25 04:46:40 +00:00
void bhv_cannon_closed_loop(void);
void bhv_whirlpool_init(void);
2020-03-02 03:42:52 +00:00
void whirlpool_set_hitbox(void);
2019-08-25 04:46:40 +00:00
void WhirlpoolOrientGraph(void);
void bhv_whirlpool_loop(void);
void bhv_jet_stream_loop(void);
void bhv_homing_amp_init(void);
void bhv_homing_amp_loop(void);
void bhv_circling_amp_init(void);
void bhv_circling_amp_loop(void);
void bhv_butterfly_init(void);
2020-03-02 03:42:52 +00:00
void butterfly_step(s32 speed);
void butterfly_calculate_angle(void);
void butterfly_act_rest(void);
void butterfly_act_follow_mario(void);
void butterfly_act_return_home(void);
2019-08-25 04:46:40 +00:00
void bhv_butterfly_loop(void);
void bhv_hoot_init(void);
2020-03-02 03:42:52 +00:00
f32 hoot_find_next_floor(struct FloorGeometry **arg0, f32 arg1);
void hoot_floor_bounce(void);
void hoot_free_step(s16 arg0, s32 arg1);
void hoot_player_set_yaw(void);
void hoot_carry_step(s32 arg0, UNUSED f32 arg1, UNUSED f32 arg2);
void hoot_surface_collision(f32 arg0, UNUSED f32 arg1, f32 arg2);
void hoot_act_ascent(f32 arg0, f32 arg1);
void hoot_action_loop(void);
void hoot_turn_to_home(void);
void hoot_awake_loop(void);
2019-08-25 04:46:40 +00:00
void bhv_hoot_loop(void);
void bhv_beta_holdable_object_init(void); /* unused */
void bhv_beta_holdable_object_loop(void); /* unused */
void bhv_object_bubble_init(void);
void bhv_object_bubble_loop(void);
void bhv_object_water_wave_init(void);
void bhv_object_water_wave_loop(void);
void bhv_explosion_init(void);
void bhv_explosion_loop(void);
void bhv_bobomb_bully_death_smoke_init(void);
void bhv_bobomb_explosion_bubble_init(void);
void bhv_bobomb_explosion_bubble_loop(void);
void bhv_respawner_loop(void);
2019-11-03 19:36:27 +00:00
void create_respawner(s32 arg0, const BehaviorScript *behToSpawn, s32 minSpawnDist);
2019-08-25 04:46:40 +00:00
void bhv_small_bully_init(void);
void bhv_big_bully_init(void);
2020-03-02 03:42:52 +00:00
void bully_check_mario_collision(void);
void bully_act_chase_mario(void);
void bully_act_knockback(void);
void bully_act_back_up(void);
void bully_backup_check(s16 arg0);
void bully_play_stomping_sound(void);
void bully_step(void);
void bully_spawn_coin(void);
void bully_act_level_death(void);
2019-08-25 04:46:40 +00:00
void bhv_bully_loop(void);
2020-03-02 03:42:52 +00:00
void big_bully_spawn_minion(s32 arg0, s32 arg1, s32 arg2, s16 arg3);
2019-08-25 04:46:40 +00:00
void bhv_big_bully_with_minions_init(void);
2020-03-02 03:42:52 +00:00
void big_bully_spawn_star(void);
2019-08-25 04:46:40 +00:00
void bhv_big_bully_with_minions_loop(void);
2020-03-02 03:42:52 +00:00
f32 water_ring_calc_mario_dist(void);
void water_ring_init(void);
2019-08-25 04:46:40 +00:00
void bhv_jet_stream_water_ring_init(void);
2020-03-02 03:42:52 +00:00
void water_ring_check_collection(f32 avgScale, struct Object* ringManager);
void water_ring_set_scale(f32 avgScale);
void water_ring_act_collected(void);
void water_ring_act_not_collected(void);
2019-08-25 04:46:40 +00:00
void bhv_jet_stream_water_ring_loop(void);
2020-03-02 03:42:52 +00:00
void spawn_manta_ray_ring_manager(void); /* unused */
void water_ring_spawner_act_inactive(void);
2019-08-25 04:46:40 +00:00
void bhv_jet_stream_ring_spawner_loop(void);
void bhv_manta_ray_water_ring_init(void);
2020-03-02 03:42:52 +00:00
void manta_water_ring_act_not_collected(void);
2019-08-25 04:46:40 +00:00
void bhv_manta_ray_water_ring_loop(void);
void bhv_bowser_bomb_loop(void);
void bhv_bowser_bomb_explosion_loop(void);
void bhv_bowser_bomb_smoke_loop(void);
void bhv_celebration_star_init(void);
2020-03-02 03:42:52 +00:00
void celeb_star_act_spin_around_mario(void);
void celeb_star_act_face_camera(void);
2019-08-25 04:46:40 +00:00
void bhv_celebration_star_loop(void);
void bhv_celebration_star_sparkle_loop(void);
void bhv_star_key_collection_puff_spawner_loop(void);
void bhv_lll_drawbridge_spawner_loop(void);
void bhv_lll_drawbridge_loop(void);
void bhv_small_bomp_init(void);
void bhv_small_bomp_loop(void);
void bhv_large_bomp_init(void);
void bhv_large_bomp_loop(void);
void bhv_wf_sliding_platform_init(void);
void bhv_wf_sliding_platform_loop(void);
void bhv_moneybag_init(void);
2020-03-02 03:42:52 +00:00
void moneybag_check_mario_collision(void);
void moneybag_jump(s8 collisionFlags);
void moneybag_act_move_around(void);
void moneybag_act_return_home(void);
void moneybag_act_disappear(void);
void moneybag_act_death(void);
2019-08-25 04:46:40 +00:00
void bhv_moneybag_loop(void);
void bhv_moneybag_hidden_loop(void);
void bhv_bowling_ball_init(void);
2020-03-02 03:42:52 +00:00
void bowling_ball_set_hitbox(void);
void bowling_ball_set_waypoints(void);
2019-08-25 04:46:40 +00:00
void bhv_bowling_ball_roll_loop(void);
void bhv_bowling_ball_initializeLoop(void);
void bhv_bowling_ball_loop(void);
void bhv_generic_bowling_ball_spawner_init(void);
void bhv_generic_bowling_ball_spawner_loop(void);
void bhv_thi_bowling_ball_spawner_loop(void);
void bhv_bob_pit_bowling_ball_init(void);
void bhv_bob_pit_bowling_ball_loop(void);
void bhv_free_bowling_ball_init(void); /* likely unused */
void bhv_free_bowling_ball_roll_loop(void); /* likely unused */
void bhv_free_bowling_ball_loop(void); /* likely unused */
void bhv_rr_cruiser_wing_init(void);
void bhv_rr_cruiser_wing_loop(void);
2020-03-02 03:42:52 +00:00
extern void spawn_default_star(f32, f32, f32);
2019-08-25 04:46:40 +00:00
#endif /* _OBJ_BEHAVIORS_H */