Go to the source code of this file.
Macros | |
#define | ROM_CHUNK_SIZE 0x2000 |
Functions | |
void | dma_write_block (Addr dramAddr, u32 devAddr, s32 size) |
f32 | length2D (f32 x, f32 y) |
HeapNode * | _heap_create (HeapNode *addr, u32 size) |
void * | _heap_malloc (HeapNode *head, u32 size) |
void * | _heap_malloc_tail (HeapNode *head, u32 size) |
u32 | _heap_free (HeapNode *heapNodeList, void *addrToFree) |
void * | _heap_realloc (HeapNode *heapNodeList, void *addr, u32 newSize) |
f32 | cosine (s16 arg0) |
s32 | sign (s32 val) |
char * | int_to_string (s32 integer, char *dest, s32 base) |
void | mem_clear (void *data, s32 numBytes) |
void | transform_point (Matrix4f mtx, f32 inX, f32 inY, f32 inZ, f32 inS, f32 *outX, f32 *outY, f32 *outZ, f32 *outW) |
void | copy_matrix (Matrix4f src, Matrix4f dest) |
u32 | dma_copy (Addr romStart, Addr romEnd, void *vramDest) |
s32 | dma_write (Addr romStart, Addr romEnd, void *vramDest) |
u32 | advance_rng (void) |
f32 | rand_float (void) |
s32 | rand_int_internal (u32 max) |
s32 | rand_int (s32 max) |
f32 | signF (f32 val) |
s32 | round (f32 x) |
f32 | clamp_angle (f32 theta) |
f32 | get_clamped_angle_diff (f32 a, f32 b) |
f32 | atan2 (f32 startX, f32 startZ, f32 endX, f32 endZ) |
f32 | get_player_normal_yaw (void) |
f32 | get_player_normal_pitch (void) |
f32 | dist2D (f32 ax, f32 ay, f32 bx, f32 by) |
f32 | dist3D (f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz) |
void | add_vec2D_polar (f32 *x, f32 *y, f32 r, f32 theta) |
u16 | _wrap_trig_lookup_value (f32 theta) |
void | sin_cos_rad (f32 theta, f32 *outSinTheta, f32 *outCosTheta) |
f32 | sin_rad (f32 theta) |
f32 | cos_rad (f32 theta) |
void | sin_cos_deg (f32 theta, f32 *outSinTheta, f32 *outCosTheta) |
f32 | sin_deg (f32 theta) |
f32 | cos_deg (f32 theta) |
f32 | update_lerp (s32 easing, f32 start, f32 end, s32 elapsed, s32 duration) |
void | appendGfx_startup_prim_rect (u8 r, u8 g, u8 b, u8 a, u16 left, u16 top, u16 right, u16 bottom) |
void | startup_draw_prim_rect_COPY (s16 left, s16 top, s16 right, s16 bottom, u16 r, u16 g, u16 b, u16 a) |
void | startup_draw_prim_rect (s16 left, s16 top, s16 right, s16 bottom, u16 r, u16 g, u16 b, u16 a) |
Variables | |
u16 | heap_nextMallocID = 0 |
f32 | sCosineTable [] |
u8 | sIntegerDigits [] |
u32 | gRandSeed = 1 |
f32 | sAtanFactors [] |
Gfx | D_80074580 [] |
#define ROM_CHUNK_SIZE 0x2000 |
Definition at line 57 of file 43F0.c.
Referenced by dma_copy(), and dma_write().
void dma_write_block | ( | Addr | dramAddr, |
u32 | devAddr, | ||
s32 | size ) |
Definition at line 476 of file 43F0.c.
Referenced by dma_write().
f32 length2D | ( | f32 | x, |
f32 | y ) |
Definition at line 63 of file 43F0.c.
Referenced by battle_heap_create(), battle_heap_create_obfuscated(), collision_heap_create(), general_heap_create(), and spr_init_sprites().
void * _heap_malloc | ( | HeapNode * | head, |
u32 | size ) |
Definition at line 78 of file 43F0.c.
Referenced by _heap_realloc(), collision_heap_malloc(), general_heap_malloc(), heap_malloc(), imgfx_init(), spr_allocate_components(), spr_init_player_raster_cache(), spr_init_quad_cache(), and spr_load_sprite().
void * _heap_malloc_tail | ( | HeapNode * | head, |
u32 | size ) |
Definition at line 153 of file 43F0.c.
Referenced by general_heap_malloc_tail(), and spr_load_sprite().
u32 _heap_free | ( | HeapNode * | heapNodeList, |
void * | addrToFree ) |
Definition at line 221 of file 43F0.c.
Referenced by _heap_realloc(), collision_heap_free(), general_heap_free(), heap_free(), and spr_free_sprite().
void * _heap_realloc | ( | HeapNode * | heapNodeList, |
void * | addr, | ||
u32 | newSize ) |
Definition at line 286 of file 43F0.c.
Referenced by spr_load_npc_extra_anims().
f32 cosine | ( | s16 | arg0 | ) |
Definition at line 354 of file 43F0.c.
Referenced by appendGfx_message(), imgfx_appendGfx_mesh(), msg_draw_choice_pointer(), msg_draw_speech_arrow(), msg_update_rewind_arrow(), npc_update_decoration_charged(), part_glow_on(), and SentinelAI_Descend().
s32 sign | ( | s32 | val | ) |
Definition at line 376 of file 43F0.c.
Referenced by imgfx_mesh_make_wavy(), pause_interp_text_scroll(), pause_interp_vertical_scroll(), pause_partners_update(), pause_tabs_update(), show_immune_bonk(), sign(), and signF().
char * int_to_string | ( | s32 | integer, |
char * | dest, | ||
s32 | base ) |
Definition at line 386 of file 43F0.c.
Referenced by draw_number(), and set_message_int_var().
void mem_clear | ( | void * | data, |
s32 | numBytes ) |
void transform_point | ( | Matrix4f | mtx, |
f32 | inX, | ||
f32 | inY, | ||
f32 | inZ, | ||
f32 | inS, | ||
f32 * | outX, | ||
f32 * | outY, | ||
f32 * | outZ, | ||
f32 * | outW ) |
Definition at line 432 of file 43F0.c.
Definition at line 439 of file 43F0.c.
Referenced by animator_node_update_model_transform(), and update_collider_transform().
Definition at line 444 of file 43F0.c.
Referenced by create_partner_npc(), dma_load_msg(), get_asset_offset(), imgfx_load_anim(), imgfx_mesh_anim_update(), load_asset_by_name(), load_battle_section(), load_effect(), load_font_data(), load_map_by_IDs(), load_obfuscation_shims(), load_simple_entity_data(), load_split_entity_data(), load_texture_by_name(), load_texture_impl(), load_texture_variants(), msg_copy_to_print_buffer(), phys_peach_update(), phys_update_action_state(), reload_world_entity_data(), state_init_logos(), state_step_end_battle(), state_step_unpause(), and use_consumable().
Definition at line 461 of file 43F0.c.
u32 advance_rng | ( | void | ) |
Definition at line 495 of file 43F0.c.
Referenced by rand_float(), and rand_int_internal().
f32 rand_float | ( | void | ) |
s32 rand_int_internal | ( | u32 | max | ) |
Definition at line 509 of file 43F0.c.
Referenced by rand_int().
s32 rand_int | ( | s32 | max | ) |
Definition at line 532 of file 43F0.c.
f32 signF | ( | f32 | val | ) |
s32 round | ( | f32 | x | ) |
f32 clamp_angle | ( | f32 | theta | ) |
Definition at line 580 of file 43F0.c.
f32 get_clamped_angle_diff | ( | f32 | a, |
f32 | b ) |
Definition at line 606 of file 43F0.c.
Referenced by AvoidPlayerAI_ChaseInit(), basic_ai_chase_init(), check_conversation_trigger(), CleftAI_CanSeePlayer(), FlyingAI_LosePlayer(), FlyingNoAttackAI_12(), GuardAI_ChaseInit(), MagikoopaAI_CanShootSpell(), MeleeHitbox_CanSeePlayer(), npc_do_player_collision(), npc_follow_npc(), npc_get_render_yaw(), partner_flying_follow_player(), partner_force_player_flip_done(), partner_walking_follow_player(), PatrolAI_ChaseInit(), player_get_side_angle(), player_update_sprite(), ProjectileHitbox_GetUsableProjectileID(), SentinelAI_ChaseInit(), set_npc_yaw(), test_item_player_collision(), update_camera_unused_radial(), update_encounters_neutral(), and update_unused_lead_amt().
f32 atan2 | ( | f32 | startX, |
f32 | startZ, | ||
f32 | endX, | ||
f32 | endZ ) |
Definition at line 617 of file 43F0.c.
f32 get_player_normal_yaw | ( | void | ) |
Definition at line 658 of file 43F0.c.
Referenced by player_raycast_down(), and update_player_shadow().
f32 get_player_normal_pitch | ( | void | ) |
Definition at line 662 of file 43F0.c.
Referenced by phys_main_collision_below(), player_raycast_down(), and update_riding_physics().
f32 dist2D | ( | f32 | ax, |
f32 | ay, | ||
f32 | bx, | ||
f32 | by ) |
Definition at line 670 of file 43F0.c.
Referenced by _npc_jump_to(), action_update_use_spinning_flower(), action_update_use_tweester(), ai_check_fwd_collisions(), ai_check_player_dist(), AvoidPlayerAI_ChaseInit(), basic_ai_chase(), basic_ai_chase_init(), basic_ai_check_player_dist(), basic_ai_wander(), BooPatrolAI_Move(), CleftAI_ReturnHome(), CleftAI_RevUp(), ClubbaNappingAI_ReturnHome(), ClubbaNappingAI_Sleep(), entity_HiddenPanel_idle(), entity_Tweester_idle(), FlyingAI_Wander(), FlyingMagikoopaAI_15(), func_802BB0A0_E2D9D0(), func_802BB8D4_E2E204(), func_802BC0F0_E2EA20(), game_input_to_move_vector(), get_movement_from_input(), get_stick_input_radial(), get_xz_dist_to_player(), GuardAI_ReturnHome(), handle_jumping_land_on_switch(), is_point_outside_territory(), MagikoopaAI_10(), MeleeHitbox_CanSeePlayer(), msg_draw_speech_arrow(), npc_find_closest(), npc_find_closest_simple(), npc_follow_npc(), npc_update_npc_tracking(), ParatroopaAI_Windup(), partner_flying_follow_player(), partner_get_out(), partner_move_to_goal(), partner_put_away(), partner_walking_follow_player(), PatrolAI_Move(), PatrolAI_MoveInit(), PiranhaPlantAI_10(), player_input_to_move_vector(), player_jump(), render_entities(), SentinelAI_Chase(), SentinelAI_ReturnHome(), test_first_strike(), test_first_strike(), UnkDistFunc(), update_camera_unused_radial(), and update_player_shadow().
f32 dist3D | ( | f32 | ax, |
f32 | ay, | ||
f32 | az, | ||
f32 | bx, | ||
f32 | by, | ||
f32 | bz ) |
void add_vec2D_polar | ( | f32 * | x, |
f32 * | y, | ||
f32 | r, | ||
f32 | theta ) |
Definition at line 685 of file 43F0.c.
Referenced by action_update_use_munchlesia(), ai_check_player_dist(), basic_ai_check_player_dist(), btl_main_menu_draw(), btl_main_menu_update(), can_dismount(), check_for_treadmill_overlaps(), ClubbaNappingAI_Sleep(), collision_main_lateral(), draw_all_status_icons(), entity_StarBoxLauncher_check_launch(), FlyingMagikoopaAI_15(), FlyingMagikoopaAI_21(), func_802BB98C_E2E2BC(), func_802BC17C_E2EAAC(), handle_jumping_land_on_switch(), MagikoopaAI_21(), offset_player_from_camera(), partner_do_player_collision(), partner_flying_follow_player(), partner_get_out(), partner_move_to_goal(), partner_walking_follow_player(), PiranhaPlantAI_10(), pre_battle(), sync_player_position(), test_item_player_collision(), update_encounters_neutral(), and update_riding_physics().
u16 _wrap_trig_lookup_value | ( | f32 | theta | ) |
Definition at line 695 of file 43F0.c.
Referenced by cos_deg(), cos_rad(), sin_cos_deg(), sin_cos_rad(), sin_deg(), and sin_rad().
void sin_cos_rad | ( | f32 | theta, |
f32 * | outSinTheta, | ||
f32 * | outCosTheta ) |
Definition at line 706 of file 43F0.c.
Referenced by action_hammer_end_swing(), action_hammer_test_swing_collision(), action_update_hit_fire(), action_update_hit_lava(), action_update_knockback(), action_update_sliding(), action_update_state_23(), action_update_step_up(), action_update_use_spinning_flower(), action_update_use_tweester(), add_vec2D_polar(), collision_main_lateral(), entity_GiantChest_open(), entity_PinkFlowerLight_setupGfx(), entity_shattering_idle(), npc_surface_spawn_basic_fx(), npc_surface_spawn_cloud_fx(), npc_surface_spawn_flower_fx(), npc_surface_spawn_hedges_fx(), npc_surface_spawn_snow_fx(), npc_surface_spawn_water_fx(), npc_test_move_with_slipping(), npc_test_move_without_slipping(), peach_disguise_check_overlaps(), player_raycast_below(), player_surface_spawn_basic_fx(), player_surface_spawn_cloud_fx(), player_surface_spawn_flower_fx(), player_surface_spawn_hedges_fx(), player_surface_spawn_snow_fx(), player_surface_spawn_water_fx(), player_test_lateral_overlap(), player_test_move_with_slipping(), player_test_move_without_slipping(), test_ray_collider_horizontal(), test_ray_to_wall_center(), update_riding_physics(), and update_riding_physics().
f32 sin_rad | ( | f32 | theta | ) |
Definition at line 713 of file 43F0.c.
Referenced by action_hammer_play_hit_fx(), action_update_hit_lava(), action_update_parasol(), action_update_spin(), action_update_use_spinning_flower(), action_update_use_tweester(), add_part_decor_steam(), add_xz_vec3f(), add_xz_vec3f_copy1(), add_xz_vec3f_copy2(), appendGfx_background_texture(), apply_constraints_to_lead_amount(), btl_state_update_9(), btl_state_update_end_player_turn(), btl_state_update_end_turn(), btl_state_update_partner_menu(), btl_state_update_peach_menu(), btl_state_update_player_menu(), btl_state_update_twink_menu(), btl_state_update_victory(), ChompChainAddPolarPos(), ChompChainGetPolarX(), create_camera_leadplayer_matrix(), Entity_BoardedFloor_update_fragments(), entity_BombableRock_update_fragments(), entity_Chest_close(), entity_Chest_open(), entity_GiantChest_give_equipment(), entity_GiantChest_open(), entity_HeartBlockContent__anim_heal(), entity_HiddenPanel_flip_over(), entity_inactive_block_hit_anim(), entity_inactive_block_recoil_anim(), entity_Padlock_push_player(), entity_StarBoxLauncher_launch(), entity_TrumpetPlant_create_effect(), entity_TrumpetPlant_spawn_coin(), entity_Tweester_move(), entity_WoodenCrate_update_fragments(), func_802BC3E4_E2ED14(), interp_lookat_pos(), npc_do_other_npc_collision(), npc_do_player_collision(), npc_move_heading(), npc_raycast_down_around(), npc_raycast_down_sides(), npc_raycast_up_corners(), play_movement_dust_effects(), player_raycast_up_corners(), sfx_compute_spatialized_sound_params_ignore_depth(), sync_held_position(), unkVtxFunc001(), update_camera_interp_pos(), update_camera_no_interp(), update_camera_unused_ahead(), update_camera_unused_confined(), update_camera_unused_radial(), update_item_entity_collectable(), update_lerp(), update_lerp_battle(), and virtual_entity_move_polar().
f32 cos_rad | ( | f32 | theta | ) |
Definition at line 717 of file 43F0.c.
Referenced by action_hammer_play_hit_fx(), action_update_hit_lava(), action_update_parasol(), action_update_spin(), add_part_decor_steam(), add_xz_vec3f(), add_xz_vec3f_copy1(), add_xz_vec3f_copy2(), apply_constraints_to_lead_amount(), ChompChainAddPolarPos(), ChompChainGetPolarX(), create_camera_leadplayer_matrix(), Entity_BoardedFloor_update_fragments(), entity_BombableRock_update_fragments(), entity_GiantChest_give_equipment(), entity_GiantChest_open(), entity_HeartBlockContent__anim_heal(), entity_Padlock_push_player(), entity_StarBoxLauncher_launch(), entity_TrumpetPlant_create_effect(), entity_TrumpetPlant_spawn_coin(), entity_Tweester_move(), entity_WoodenCrate_update_fragments(), interp_lookat_pos(), npc_do_other_npc_collision(), npc_do_player_collision(), npc_move_heading(), npc_raycast_down_around(), npc_raycast_down_sides(), npc_raycast_up_corners(), play_movement_dust_effects(), player_raycast_up_corners(), sync_held_position(), unkVtxFunc001(), update_camera_interp_pos(), update_camera_no_interp(), update_camera_unused_ahead(), update_camera_unused_confined(), update_camera_unused_radial(), update_camera_zone_interp(), update_item_entity_collectable(), update_lerp(), update_lerp_battle(), and virtual_entity_move_polar().
void sin_cos_deg | ( | f32 | theta, |
f32 * | outSinTheta, | ||
f32 * | outCosTheta ) |
f32 sin_deg | ( | f32 | theta | ) |
f32 cos_deg | ( | f32 | theta | ) |
f32 update_lerp | ( | s32 | easing, |
f32 | start, | ||
f32 | end, | ||
s32 | elapsed, | ||
s32 | duration ) |
Definition at line 735 of file 43F0.c.
Referenced by appendGfx_message(), FlyingMagikoopaAI_17(), msg_update_rewind_arrow(), sfx_compute_spatialized_sound_params_full(), and update_riding_physics().
void appendGfx_startup_prim_rect | ( | u8 | r, |
u8 | g, | ||
u8 | b, | ||
u8 | a, | ||
u16 | left, | ||
u16 | top, | ||
u16 | right, | ||
u16 | bottom ) |
Definition at line 785 of file 43F0.c.
Referenced by startup_draw_prim_rect(), and startup_draw_prim_rect_COPY().
void startup_draw_prim_rect_COPY | ( | s16 | left, |
s16 | top, | ||
s16 | right, | ||
s16 | bottom, | ||
u16 | r, | ||
u16 | g, | ||
u16 | b, | ||
u16 | a ) |
Definition at line 805 of file 43F0.c.
Referenced by draw_mash_meter().
void startup_draw_prim_rect | ( | s16 | left, |
s16 | top, | ||
s16 | right, | ||
s16 | bottom, | ||
u16 | r, | ||
u16 | g, | ||
u16 | b, | ||
u16 | a ) |
Definition at line 823 of file 43F0.c.
Referenced by state_drawUI_startup().
u16 heap_nextMallocID = 0 |
Definition at line 6 of file 43F0.c.
Referenced by _heap_malloc().
f32 sCosineTable[] |
Definition at line 8 of file 43F0.c.
Referenced by cosine().
u8 sIntegerDigits[] |
Definition at line 21 of file 43F0.c.
Referenced by int_to_string().
u32 gRandSeed = 1 |
Definition at line 28 of file 43F0.c.
Referenced by advance_rng(), and boot_main().
f32 sAtanFactors[] |
Definition at line 30 of file 43F0.c.
Referenced by atan2().
Gfx D_80074580[] |
Definition at line 42 of file 43F0.c.
Referenced by appendGfx_startup_prim_rect().