Go to the source code of this file.
Macros | |
#define | WORLD_ENTITY_HEAP_BOTTOM 0x80250000 |
#define | WORLD_ENTITY_HEAP_BASE 0x80267FF0 |
#define | entity_jan_iwa_VRAM (void*) 0x802BAE00 |
#define | entity_sbk_omo_VRAM (void*) 0x802BAE00 |
#define | entity_default_VRAM (void*) 0x802BAE00 |
#define WORLD_ENTITY_HEAP_BOTTOM 0x80250000 |
Definition at line 17 of file entity.c.
Referenced by clear_entity_data(), and init_entity_data().
#define WORLD_ENTITY_HEAP_BASE 0x80267FF0 |
Definition at line 18 of file entity.c.
Referenced by clear_entity_data(), and init_entity_data().
void update_shadows | ( | void | ) |
Definition at line 203 of file entity.c.
Referenced by update_entities().
s32 step_entity_commandlist | ( | Entity * | entity | ) |
Definition at line 241 of file entity.c.
Referenced by exec_entity_commandlist(), and update_entities().
void entity_swizzle_anim_pointers | ( | EntityBlueprint * | entityData, |
void * | baseAnim, | ||
void * | baseGfx ) |
Definition at line 909 of file entity.c.
Referenced by load_split_entity_data(), and reload_world_entity_data().
void render_shadows | ( | void | ) |
Definition at line 424 of file entity.c.
Referenced by render_entities().
void update_entity_transform_matrix | ( | Entity * | entity | ) |
Definition at line 470 of file entity.c.
Referenced by create_entity(), and update_entities().
void update_shadow_transform_matrix | ( | Shadow * | shadow | ) |
Definition at line 496 of file entity.c.
Referenced by create_shadow_from_data(), and update_shadows().
void update_entity_inverse_rotation_matrix | ( | Entity * | entity | ) |
void delete_entity | ( | s32 | entityIndex | ) |
Definition at line 578 of file entity.c.
Referenced by update_entities().
void delete_entity_and_unload_data | ( | s32 | entityIndex | ) |
Definition at line 601 of file entity.c.
Referenced by update_entities().
void reload_world_entity_data | ( | void | ) |
Definition at line 860 of file entity.c.
Referenced by init_entity_data().
s32 entity_get_collision_flags | ( | Entity * | entity | ) |
Definition at line 634 of file entity.c.
Referenced by update_entities().
void entity_free_static_data | ( | EntityBlueprint * | data | ) |
Definition at line 1161 of file entity.c.
Referenced by delete_entity_and_unload_data().
s32 create_entity_shadow | ( | Entity * | entity, |
f32 | x, | ||
f32 | y, | ||
f32 | z ) |
Definition at line 1509 of file entity.c.
Referenced by create_entity().
void update_entity_shadow_position | ( | Entity * | entity | ) |
Definition at line 1560 of file entity.c.
Referenced by update_entities().
void update_entities | ( | void | ) |
Definition at line 82 of file entity.c.
Referenced by step_game_loop().
void set_entity_commandlist | ( | Entity * | entity, |
s32 * | entityScript ) |
Definition at line 235 of file entity.c.
Referenced by entity_block_handle_collision(), entity_Chest_check_opened(), entity_ItemBlock_check_if_inactive(), entity_MulticoinBlock_spawn_coin(), and entity_SaveBlock_wait_for_close_choice().
void exec_entity_commandlist | ( | Entity * | entity | ) |
Definition at line 313 of file entity.c.
Referenced by action_update_use_spinning_flower(), entity_base_switch_animate_scale(), entity_BellbellPlant_idle(), entity_block_handle_collision(), entity_BlueWarpPipe_check_if_active(), entity_BlueWarpPipe_enter_pipe_update(), entity_BlueWarpPipe_idle(), entity_BlueWarpPipe_rise_up(), entity_BlueWarpPipe_wait_for_player_to_get_off(), entity_BlueWarpPipe_wait_player_move_to_center(), Entity_BoardedFloor_idle(), Entity_BoardedFloor_update_fragments(), entity_BombableRock_idle(), entity_BombableRock_update_fragments(), entity_Chest_idle(), entity_Chest_open(), entity_GiantChest_await_got_item(), entity_GiantChest_open(), entity_GreenStompSwitch_extend(), entity_GreenStompSwitch_idle(), entity_GreenStompSwitch_retract(), entity_HeartBlock_show_tutorial_message(), entity_HeartBlock_wait_for_close_tutorial(), entity_HeartBlockContent__anim_heal(), entity_HeartBlockContent_anim_idle(), entity_HiddenPanel_flip_over(), entity_HiddenPanel_idle(), entity_HugeBlueSwitch_idle(), entity_inactive_block_hit_anim(), entity_inactive_block_recoil_anim(), entity_ItemBlock_check_if_inactive(), entity_MulticoinBlock_idle(), entity_Padlock_idle(), entity_PinkFlower_idle(), entity_RedSwitch_animate_scale(), entity_RedSwitch_wait_and_reset(), entity_SaveBlock_show_tutorial_message(), entity_SaveBlock_wait_for_close_choice(), entity_SaveBlock_wait_for_close_result(), entity_SaveBlock_wait_for_close_tutorial(), entity_ScriptSpring_idle(), entity_shattering_idle(), entity_SimpleSpring_idle(), entity_small_switch_idle(), entity_StarBoxLauncher_check_launch(), entity_StarBoxLauncher_launch(), entity_TrumpetPlant_idle(), entity_WoodenCrate_idle(), entity_WoodenCrate_update_fragments(), func_802BB0A0_E2D9D0(), func_802BC050_E2E980(), and func_802BC99C_E312EC().
void func_8010FD98 | ( | void * | arg0, |
s32 | alpha ) |
Definition at line 317 of file entity.c.
Referenced by func_8010FE44().
void func_8010FE44 | ( | void * | arg0 | ) |
void entity_model_set_shadow_color | ( | void * | data | ) |
Definition at line 331 of file entity.c.
Referenced by render_shadows().
void render_entities | ( | void | ) |
Definition at line 338 of file entity.c.
Referenced by render_frame().
Entity * get_entity_by_index | ( | s32 | index | ) |
Definition at line 530 of file entity.c.
Referenced by action_hammer_end_swing(), action_update_landing_on_switch(), action_update_spin_jump(), action_update_tornado_jump(), action_update_use_spinning_flower(), check_for_interactables(), check_input_jump(), delete_entity(), delete_entity_and_unload_data(), entity_ArrowSign_setupGfx(), entity_base_block_setupGfx(), entity_BlueWarpPipe_setupGfx(), Entity_BoardedFloor_setupGfx(), entity_BombableRock_setupGfx(), entity_Chest_setupGfx(), entity_HeartBlock_create_child_entity(), entity_HeartBlockContent__reset(), entity_HeartBlockContent__setupGfx(), entity_HeartBlockContent_anim_idle(), entity_HeartBlockContent_set_initial_pos(), entity_HiddenPanel_setupGfx(), entity_HitItemBlock_show_inactive(), entity_ItemBlock_replace_with_inactive(), entity_ItemBlock_setupGfx(), entity_MulticoinBlock_spawn_coin(), entity_Padlock_setupGfx(), entity_PinkFlower_idle(), entity_PinkFlower_init(), entity_PinkFlowerLight_idle(), entity_PinkFlowerLight_setupGfx(), entity_SaveBlock_setupGfx(), entity_shattering_setupGfx(), entity_SpinningFlower_setupGfx(), entity_StarBoxLauncher_setupGfx(), entity_SuperBlockContent_attach_to_parent(), entity_SuperBlockContent_setupGfx(), entity_try_partner_interaction_trigger(), entity_Tweester_render_face(), entity_Tweester_render_inner_whirl(), entity_Tweester_render_outer_whirl(), entity_Tweester_setupGfx(), entity_upgrade_block_check_if_inactive(), entity_upgrade_block_hide_content(), entity_WoodenCrate_setupGfx(), func_802BC050_E2E980(), get_entity_type(), interact_inspect_update(), npc_find_standing_on_entity(), phys_player_land(), player_raycast_down(), player_raycast_general(), player_raycast_up_corner(), render_entities(), test_ray_entities(), and update_entities().
Shadow * get_shadow_by_index | ( | s32 | index | ) |
Definition at line 534 of file entity.c.
Referenced by calculate_camera_yinterp_rate(), create_entity_shadow(), create_shadow_type(), delete_entity(), delete_entity_and_unload_data(), delete_shadow(), disable_npc_shadow(), disable_player_shadow(), enable_npc_shadow(), enable_player_shadow(), end_outta_sight_cleanup(), entity_base_block_update_slow_sinking(), entity_HitItemBlock_hide(), entity_HitItemBlock_show_inactive(), entity_ItemBlock_replace_with_inactive(), hide_item_entity(), make_item_entity(), make_item_entity_at_player(), npc_get_collider_below(), phys_is_on_sloped_ground(), render_shadows(), reveal_item_entity(), spawn_drops(), update_entity_shadow_position(), update_item_entities(), update_nonplayer_actor_shadow(), update_npcs(), update_player_actor_shadow(), update_player_shadow(), and update_shadows().
EntityList * get_entity_list | ( | void | ) |
Definition at line 538 of file entity.c.
Referenced by clear_entity_data(), and init_entity_data().
ShadowList * get_shadow_list | ( | void | ) |
Definition at line 549 of file entity.c.
Referenced by clear_entity_data(), and init_entity_data().
s32 entity_start_script | ( | Entity * | entity | ) |
Definition at line 560 of file entity.c.
Referenced by action_update_use_tweester(), entity_ArrowSign_handle_collision(), entity_base_switch_start_bound_script(), entity_block_handle_collision(), entity_BlueWarpPipe_start_bound_script(), Entity_BoardedFloor_idle(), entity_BombableRock_idle(), entity_Chest_start_bound_script(), entity_GreenStompSwitch_retract(), entity_Padlock_idle(), entity_ScriptSpring_idle(), entity_Signpost_idle(), entity_SimpleSpring_idle(), entity_StarBoxLauncher_start_script(), entity_TriggerBlock_start_bound_script_2(), and entity_WoodenCrate_idle().
u32 get_entity_type | ( | s32 | index | ) |
Definition at line 568 of file entity.c.
Referenced by action_hammer_test_swing_collision(), action_update_spin_jump(), action_update_tornado_jump(), can_dismount(), check_for_interactables(), collision_main_above(), entity_block_handle_collision(), entity_block_hit_animate_scale(), entity_block_hit_init_scale(), entity_breakable_block_create_shattering_entity(), entity_HitItemBlock_play_anim(), entity_ItemBlock_check_if_inactive(), entity_ItemBlock_replace_with_inactive(), entity_raycast_down(), entity_shattering_block_init(), entity_StarBoxLauncher_check_launch(), entity_try_partner_interaction_trigger(), func_800E06D8(), func_800EA4B0(), load_simple_entity_data(), load_split_entity_data(), phys_main_collision_below(), phys_player_land(), and should_continue_inspect().
void delete_shadow | ( | s32 | shadowIndex | ) |
Definition at line 626 of file entity.c.
Referenced by btl_delete_actor(), btl_delete_player_actor(), free_npc(), free_npc_by_index(), remove_item_entity_by_index(), remove_item_entity_by_reference(), remove_part_shadow(), and update_shadows().
s32 entity_try_partner_interaction_trigger | ( | s32 | entityIdx | ) |
Definition at line 677 of file entity.c.
Referenced by blast_affect_entities(), lateral_hit_interactable_entity(), and vertical_hit_interactable_entity().
s32 test_player_entity_aabb | ( | Entity * | entity | ) |
void entity_set_render_script | ( | Entity * | entity, |
EntityModelScript * | cmdList ) |
Definition at line 761 of file entity.c.
Referenced by Entity_BoardedFloor_shatter(), entity_HeartBlock_change_render_script(), entity_HeartBlockContent__anim_heal(), entity_HeartBlockContent_reset(), entity_HiddenPanel_init(), and entity_WoodenCrate_idle().
void entity_reset_collision | ( | Entity * | entity | ) |
void load_area_specific_entity_data | ( | void | ) |
Definition at line 772 of file entity.c.
Referenced by create_entity().
void clear_entity_data | ( | b32 | arg0 | ) |
Definition at line 787 of file entity.c.
Referenced by load_demo_battle(), load_engine_data(), load_map_by_IDs(), state_init_logos(), state_init_title_screen(), state_step_battle(), state_step_demo(), state_step_intro(), state_step_pause(), state_step_startup(), and state_step_title_screen().
void init_entity_data | ( | void | ) |
Definition at line 840 of file entity.c.
Referenced by state_step_end_battle(), and state_step_unpause().
s32 is_entity_data_loaded | ( | Entity * | entity, |
EntityBlueprint * | blueprint, | ||
s32 * | loadedStart, | ||
s32 * | loadedEnd ) |
Definition at line 947 of file entity.c.
Referenced by load_simple_entity_data(), and load_split_entity_data().
void load_simple_entity_data | ( | Entity * | entity, |
EntityBlueprint * | bp, | ||
s32 | listIndex ) |
Definition at line 1008 of file entity.c.
Referenced by create_entity().
void load_split_entity_data | ( | Entity * | entity, |
EntityBlueprint * | entityData, | ||
s32 | listIndex ) |
Definition at line 1045 of file entity.c.
Referenced by create_entity().
s32 func_80111790 | ( | EntityBlueprint * | data | ) |
Definition at line 1146 of file entity.c.
Referenced by entity_free_static_data().
s32 create_entity | ( | EntityBlueprint * | bp, |
... ) |
Definition at line 1195 of file entity.c.
Referenced by entity_breakable_block_create_shattering_entity(), entity_HeartBlock_create_child_entity(), entity_ItemBlock_check_if_inactive(), entity_ItemBlock_replace_with_inactive(), entity_MulticoinBlock_check_if_inactive(), entity_MulticoinBlock_idle(), entity_MulticoinBlock_spawn_coin(), entity_Munchlesia_create_child(), entity_PinkFlower_init(), and entity_upgrade_block_check_if_inactive().
s32 create_shadow_from_data | ( | ShadowBlueprint * | bp, |
f32 | x, | ||
f32 | y, | ||
f32 | z ) |
Definition at line 1310 of file entity.c.
Referenced by create_shadow_type().
s32 create_shadow_type | ( | s32 | type, |
f32 | x, | ||
f32 | y, | ||
f32 | z ) |
Definition at line 1528 of file entity.c.
Referenced by create_actor(), create_entity_shadow(), create_npc_impl(), create_part_shadow(), create_part_shadow_by_ref(), load_partner_actor(), load_player_actor(), make_item_entity(), make_item_entity_at_player(), and player_reset_data().
b32 entity_raycast_down | ( | f32 * | x, |
f32 * | y, | ||
f32 * | z, | ||
f32 * | hitYaw, | ||
f32 * | hitPitch, | ||
f32 * | hitLength ) |
Mostly used for shadows.
Definition at line 1637 of file entity.c.
Referenced by entity_switch_fall_down(), is_block_on_ground(), update_entity_shadow_position(), and update_npcs().
void set_standard_shadow_scale | ( | Shadow * | shadow, |
f32 | height ) |
Definition at line 1674 of file entity.c.
Referenced by make_item_entity(), make_item_entity_at_player(), update_item_entities(), update_nonplayer_actor_shadow(), update_player_actor_shadow(), and update_player_shadow().
void set_npc_shadow_scale | ( | Shadow * | shadow, |
f32 | height, | ||
f32 | npcRadius ) |
Definition at line 1687 of file entity.c.
Referenced by update_npcs().
void set_peach_shadow_scale | ( | Shadow * | shadow, |
f32 | scale ) |
Definition at line 1705 of file entity.c.
Referenced by update_player_shadow().
s32 is_block_on_ground | ( | Entity * | block | ) |
Definition at line 1736 of file entity.c.
Referenced by entity_base_block_idle(), entity_ItemBlock_replace_with_inactive(), and entity_shattering_init_pieces().
s32 D_8014AFB0 = 255 |
Definition at line 33 of file entity.c.
Referenced by clear_entity_data(), func_8010FE44(), and render_entities().
s32 CreateEntityVarArgBuffer[4] |
Definition at line 35 of file entity.c.
Referenced by create_entity(), entity_ArrowSign_init(), entity_BlueSwitch_init(), entity_Chest_readargs(), entity_HeartBlock_create_child_entity(), entity_HiddenPanel_init(), entity_init_BlueWarpPipe(), entity_ItemBlock_init(), entity_SimpleSpring_init(), entity_SpinningFlower_init(), entity_Tweester_init(), and entity_WoodenCrate_init().
HiddenPanelsData gCurrentHiddenPanels |
Definition at line 36 of file entity.c.
Referenced by action_hammer_end_swing(), action_update_spin_jump(), action_update_tornado_jump(), check_for_ispy(), clear_entity_data(), entity_HiddenPanel_idle(), entity_HiddenPanel_init(), entity_HiddenPanel_set_ispy_notification(), ispy_notification_update(), and update_entities().
s32 gEntityHideMode |
Definition at line 37 of file entity.c.
Referenced by clear_entity_data(), and render_entities().
s32 D_801512BC |
Definition at line 39 of file entity.c.
Referenced by update_entities().
s32 D_80151304 |
Definition at line 40 of file entity.c.
Referenced by clear_entity_data().
s32 D_80151344 |
Definition at line 41 of file entity.c.
Referenced by clear_entity_data().
s32 entity_numEntities |
Definition at line 42 of file entity.c.
Referenced by clear_entity_data(), init_entity_data(), and update_entities().
s32 gEntityHeapBase |
Definition at line 43 of file entity.c.
Referenced by clear_entity_data(), init_entity_data(), load_simple_entity_data(), load_split_entity_data(), and reload_world_entity_data().
s32 gEntityHeapBottom |
Definition at line 46 of file entity.c.
Referenced by clear_entity_data(), init_entity_data(), load_split_entity_data(), and reload_world_entity_data().
s32 entity_numShadows |
Definition at line 47 of file entity.c.
Referenced by clear_entity_data(), init_entity_data(), and update_shadows().
s32 isAreaSpecificEntityDataLoaded |
Definition at line 48 of file entity.c.
Referenced by clear_entity_data(), and load_area_specific_entity_data().
s32 entity_updateCounter |
Definition at line 49 of file entity.c.
Referenced by clear_entity_data(), and update_entities().
BSS EntityList gWorldEntityList |
Definition at line 51 of file entity.c.
Referenced by get_entity_list().
BSS EntityList gBattleEntityList |
Definition at line 52 of file entity.c.
Referenced by get_entity_list().
BSS EntityList* gCurrentEntityListPtr |
Definition at line 53 of file entity.c.
Referenced by clear_entity_data(), create_entity(), delete_entity(), delete_entity_and_unload_data(), func_80111790(), get_entity_by_index(), and init_entity_data().
BSS ShadowList gWorldShadowList |
Definition at line 54 of file entity.c.
Referenced by get_shadow_list().
BSS ShadowList gBattleShadowList |
Definition at line 55 of file entity.c.
Referenced by get_shadow_list().
BSS ShadowList* gCurrentShadowListPtr |
Definition at line 56 of file entity.c.
Referenced by clear_entity_data(), create_shadow_from_data(), delete_shadow(), get_shadow_by_index(), and init_entity_data().
BSS s32 wEntityDataLoadedSize |
Definition at line 58 of file entity.c.
Referenced by clear_entity_data(), entity_free_static_data(), load_simple_entity_data(), and load_split_entity_data().
BSS s32 bEntityDataLoadedSize |
Definition at line 59 of file entity.c.
Referenced by clear_entity_data(), load_simple_entity_data(), and load_split_entity_data().
BSS EntityBlueprint* wEntityBlueprint[MAX_ENTITIES+2] |
Definition at line 61 of file entity.c.
Referenced by clear_entity_data(), entity_free_static_data(), is_entity_data_loaded(), and reload_world_entity_data().
BSS EntityBlueprint* bEntityBlueprint[4] |
Definition at line 62 of file entity.c.
Referenced by clear_entity_data(), init_entity_data(), and is_entity_data_loaded().
BSS s32 D_801516FC |
Definition at line 63 of file entity.c.
Referenced by clear_entity_data().
|
extern |
Referenced by clear_entity_data(), and init_entity_data().