Go to the source code of this file.
Macros | |
#define | FULLY_EXTENDED_Y 18 |
#define | FULLY_RETRACTED_Y -100 |
Enumerations | |
enum | BlinkModes { BLINK_OFF = 0 , BLINK_ON = 1 } |
enum | ShimmerStates { STATUS_SHIMMER_OFF = 0 , STATUS_SHIMMER_BEGIN = 1 , STATUS_SHIMMER_ON = 2 } |
#define FULLY_EXTENDED_Y 18 |
Definition at line 5 of file inventory.c.
Referenced by status_bar_show_and_ignore_changes(), and update_status_bar().
#define FULLY_RETRACTED_Y -100 |
Definition at line 6 of file inventory.c.
Referenced by initialize_status_bar(), reset_status_bar(), setup_status_bar_for_world(), and update_status_bar().
Enumerator | |
---|---|
BLINK_OFF | |
BLINK_ON |
Definition at line 8 of file inventory.c.
Enumerator | |
---|---|
STATUS_SHIMMER_OFF | |
STATUS_SHIMMER_BEGIN | |
STATUS_SHIMMER_ON |
Definition at line 13 of file inventory.c.
Definition at line 1585 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1598 of file inventory.c.
Referenced by update_status_bar().
Definition at line 54 of file inventory.c.
Referenced by filemenu_yesno_handle_input(), load_demo_battle(), load_engine_data(), state_init_title_screen(), state_step_demo(), state_step_intro(), and state_step_startup().
s32 add_item | ( | s32 | itemID | ) |
Add itemID
to player inventory and return inventory slot in which it was placed.
Definition at line 151 of file inventory.c.
Referenced by update_item_entity_pickup().
s32 remove_item | ( | s32 | itemID | ) |
Remove first instance of itemID
found in player inventory.
Definition at line 203 of file inventory.c.
s32 find_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and return first matching array index.
Definition at line 263 of file inventory.c.
Referenced by btl_state_update_defeat().
s32 count_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and count the number matches.
itemID
Definition at line 309 of file inventory.c.
b32 has_item | ( | s32 | itemID | ) |
Check whether player has itemID
in their inventory.
Definition at line 342 of file inventory.c.
s32 store_item | ( | s32 | itemID | ) |
Add itemID
to player storage and return slot in which it was placed.
Definition at line 374 of file inventory.c.
b32 is_badge_equipped | ( | s32 | itemID | ) |
itemID
as an equipped badge Definition at line 392 of file inventory.c.
Bubbles up player inventory items such that all ITEM_NONE values are at the bottom.
Definition at line 409 of file inventory.c.
Referenced by add_item(), remove_consumable(), remove_item(), and update_item_entity_pickup().
s32 get_consumables_count | ( | void | ) |
Definition at line 428 of file inventory.c.
Referenced by get_consumables_empty().
s32 get_consumables_empty | ( | void | ) |
Definition at line 441 of file inventory.c.
s32 get_stored_count | ( | void | ) |
Definition at line 445 of file inventory.c.
Referenced by get_stored_empty().
s32 get_stored_empty | ( | void | ) |
Definition at line 462 of file inventory.c.
Referenced by pause_badges_handle_input(), and pause_handle_input().
Definition at line 482 of file inventory.c.
Referenced by load_demo_battle(), and load_map_by_IDs().
void status_bar_draw_number | ( | s32 | iconID, |
s32 | startX, | ||
s32 | startY, | ||
s32 | value, | ||
s32 | numDigits ) |
Definition at line 623 of file inventory.c.
Referenced by update_status_bar().
void status_bar_draw_stat | ( | s32 | id, |
s32 | startX, | ||
s32 | startY, | ||
s32 | currentValue, | ||
s32 | maxValue ) |
Definition at line 661 of file inventory.c.
Referenced by update_status_bar().
Definition at line 717 of file inventory.c.
Referenced by draw_status_ui().
Definition at line 1297 of file inventory.c.
Referenced by show_coin_counter().
Definition at line 1316 of file inventory.c.
Referenced by draw_status_ui().
Definition at line 1357 of file inventory.c.
Definition at line 1395 of file inventory.c.
Definition at line 1403 of file inventory.c.
Definition at line 1421 of file inventory.c.
Referenced by btl_draw_ui(), state_drawUI_change_map(), state_drawUI_enter_world(), and state_drawUI_world().
Definition at line 1430 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and check_input_status_bar().
Definition at line 1440 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
Definition at line 1450 of file inventory.c.
Referenced by check_conversation_trigger(), check_input_status_bar(), destroy_popup_menu(), initialize_status_bar(), and shop_close_item_select_popup().
Definition at line 1460 of file inventory.c.
Referenced by update_encounters_post_battle().
Definition at line 1471 of file inventory.c.
Referenced by btl_state_update_normal_start().
Definition at line 1482 of file inventory.c.
Definition at line 1486 of file inventory.c.
Definition at line 1491 of file inventory.c.
Referenced by check_input_status_bar().
Definition at line 1507 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
Definition at line 1511 of file inventory.c.
Definition at line 1518 of file inventory.c.
Referenced by destroy_popup_menu(), shop_close_item_select_popup(), and state_step_unpause().
s32 status_bar_is_ignoring_changes | ( | void | ) |
Definition at line 1522 of file inventory.c.
Referenced by create_battle_popup_menu(), create_shop_popup_menu(), and create_standard_popup_menu().
Definition at line 1528 of file inventory.c.
Referenced by shop_open_item_select_popup().
Definition at line 1532 of file inventory.c.
Referenced by draw_shop_items(), and shop_close_item_select_popup().
s32 is_status_bar_visible | ( | void | ) |
Definition at line 1536 of file inventory.c.
Referenced by check_input_status_bar().
Definition at line 1540 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1553 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1563 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), and update_status_bar().
Definition at line 1576 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), btl_submenu_moves_update(), and update_status_bar().
Definition at line 1608 of file inventory.c.
Definition at line 1619 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), and btl_submenu_moves_update().
void status_bar_start_blinking_sp_bars | ( | s32 | numBarsToBlink | ) |
Definition at line 1628 of file inventory.c.
Referenced by btl_menu_moves_draw_content().
Definition at line 1638 of file inventory.c.
Referenced by btl_state_update_run_away().
Definition at line 1647 of file inventory.c.
Referenced by btl_state_update_run_away().
Definition at line 1656 of file inventory.c.
Referenced by btl_state_update_end_battle(), btl_state_update_end_demo_battle(), btl_state_update_first_strike(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_player_move(), and update_item_entity_pickup().
Definition at line 1664 of file inventory.c.
Referenced by btl_state_update_first_strike(), btl_state_update_partner_move(), btl_state_update_partner_striking_first(), btl_state_update_player_move(), initialize_battle(), and update_item_entity_pickup().
Definition at line 1670 of file inventory.c.
Definition at line 1681 of file inventory.c.
Referenced by state_step_battle(), and state_step_pause().
s32 is_ability_active | ( | s32 | ability | ) |
Definition at line 1735 of file inventory.c.
Referenced by action_command_init_status(), action_hammer_play_hit_fx(), action_update_run(), action_update_spin(), action_update_walk(), adjust_action_command_difficulty(), appendGfx_player_actor(), btl_menu_strats_draw_content(), btl_state_update_begin_player_turn(), btl_state_update_begin_turn(), btl_state_update_celebration(), btl_state_update_end_player_turn(), btl_state_update_first_strike(), btl_state_update_normal_start(), btl_state_update_partner_menu(), btl_state_update_player_move(), btl_state_update_run_away(), btl_state_update_select_target(), calc_enemy_damage_target(), calc_player_damage_enemy(), check_block_input(), check_input_spin(), enforce_hpfp_limits(), entity_HiddenPanel_set_ispy_notification(), get_coin_drop_amount(), inflict_status(), is_actor_health_bar_visible(), is_actortype_health_bar_visible(), load_player_actor(), player_team_is_ability_active(), show_first_strike_message(), spawn_drops(), update_encounters_neutral(), update_encounters_pre_battle(), and update_locomotion_state().
s32 is_partner_ability_active | ( | s32 | ability | ) |
Definition at line 2071 of file inventory.c.
Referenced by player_team_is_ability_active().
s32 add_coins | ( | s32 | amt | ) |
Definition at line 2075 of file inventory.c.
s32 add_star_points | ( | s32 | amt | ) |
Definition at line 2096 of file inventory.c.
s32 add_star_pieces | ( | s32 | amt | ) |
Definition at line 2114 of file inventory.c.
Definition at line 2134 of file inventory.c.
Definition at line 2139 of file inventory.c.
void add_star_power | ( | s32 | amt | ) |
Definition at line 2144 of file inventory.c.
s32 recover_fp | ( | s32 | amt | ) |
Recover player FP.
amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2169 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
s32 recover_hp | ( | s32 | amt | ) |
Recover player HP.
amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2186 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
void subtract_hp | ( | s32 | amt | ) |
Definition at line 2203 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and func_802BC274_E2EBA4().
Definition at line 2216 of file inventory.c.
Definition at line 2220 of file inventory.c.
Definition at line 19 of file inventory.c.
Referenced by clear_player_data(), hide_coin_counter(), hide_coin_counter_immediately(), initialize_status_bar(), show_coin_counter(), and update_coin_counter().
Definition at line 20 of file inventory.c.
Referenced by clear_player_data(), initialize_status_bar(), show_coin_counter(), and update_coin_counter().
StatusBar gStatusBar |
Definition at line 22 of file inventory.c.
Referenced by add_star_power(), btl_state_update_normal_start(), can_control_status_bar(), close_status_bar(), coin_counter_draw_content(), decrement_status_bar_disabled(), disable_status_bar_input(), enable_status_bar_input(), hide_coin_counter(), hide_coin_counter_immediately(), increment_status_bar_disabled(), initialize_status_bar(), is_status_bar_visible(), open_status_bar_quickly(), open_status_bar_slowly(), reset_status_bar(), setup_status_bar_for_battle(), setup_status_bar_for_world(), show_coin_counter(), status_bar_always_show_off(), status_bar_always_show_on(), status_bar_ignore_changes(), status_bar_is_ignoring_changes(), status_bar_respond_to_changes(), status_bar_show_and_ignore_changes(), status_bar_start_blinking_coins(), status_bar_start_blinking_fp(), status_bar_start_blinking_hp(), status_bar_start_blinking_sp(), status_bar_start_blinking_sp_bars(), status_bar_start_blinking_starpoints(), status_bar_stop_blinking_coins(), status_bar_stop_blinking_fp(), status_bar_stop_blinking_hp(), status_bar_stop_blinking_sp(), status_bar_stop_blinking_starpoints(), sync_status_bar(), update_coin_counter(), and update_status_bar().
|
extern |
Definition at line 146 of file partners.c.
Referenced by status_bar_draw_number().
|
extern |
Definition at line 148 of file partners.c.
Referenced by update_status_bar().
|
extern |
|
extern |
Definition at line 156 of file partners.c.
Referenced by update_status_bar().
|
extern |
Definition at line 142 of file partners.c.
Referenced by status_bar_draw_number(), and status_bar_draw_stat().
|
extern |
Definition at line 2112 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 2014 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Definition at line 2061 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 2016 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Referenced by initialize_status_bar().
|
extern |
Definition at line 2069 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 2124 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 2045 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 1990 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 762 of file global_hud_scripts.c.
Referenced by initialize_status_bar().
|
extern |
Definition at line 2043 of file global_hud_scripts.c.
Referenced by update_status_bar().
|
extern |
Definition at line 2059 of file global_hud_scripts.c.
Referenced by update_status_bar().
|
extern |
Definition at line 147 of file partners.c.
Referenced by status_bar_draw_stat().