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 6 of file inventory.c.
Referenced by status_bar_show_and_ignore_changes(), and update_status_bar().
#define FULLY_RETRACTED_Y -100 |
Definition at line 7 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 9 of file inventory.c.
Enumerator | |
---|---|
STATUS_SHIMMER_OFF | |
STATUS_SHIMMER_BEGIN | |
STATUS_SHIMMER_ON |
Definition at line 14 of file inventory.c.
Definition at line 1586 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1599 of file inventory.c.
Referenced by update_status_bar().
Definition at line 55 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 152 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 204 of file inventory.c.
s32 find_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and return first matching array index.
Definition at line 264 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 310 of file inventory.c.
b32 has_item | ( | s32 | itemID | ) |
Check whether player has itemID
in their inventory.
Definition at line 343 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 375 of file inventory.c.
b32 is_badge_equipped | ( | s32 | itemID | ) |
itemID
as an equipped badge Definition at line 393 of file inventory.c.
Bubbles up player inventory items such that all ITEM_NONE values are at the bottom.
Definition at line 410 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 429 of file inventory.c.
Referenced by get_consumables_empty().
s32 get_consumables_empty | ( | void | ) |
Definition at line 442 of file inventory.c.
s32 get_stored_count | ( | void | ) |
Definition at line 446 of file inventory.c.
Referenced by get_stored_empty().
s32 get_stored_empty | ( | void | ) |
Definition at line 463 of file inventory.c.
Referenced by pause_badges_handle_input(), and pause_handle_input().
Definition at line 483 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 624 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 662 of file inventory.c.
Referenced by update_status_bar().
Definition at line 718 of file inventory.c.
Referenced by draw_status_ui().
Definition at line 1298 of file inventory.c.
Referenced by show_coin_counter().
Definition at line 1317 of file inventory.c.
Referenced by draw_status_ui().
Definition at line 1358 of file inventory.c.
Definition at line 1396 of file inventory.c.
Definition at line 1404 of file inventory.c.
Definition at line 1422 of file inventory.c.
Referenced by btl_draw_ui(), state_drawUI_change_map(), state_drawUI_enter_world(), and state_drawUI_world().
Definition at line 1431 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and check_input_status_bar().
Definition at line 1441 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
Definition at line 1451 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 1461 of file inventory.c.
Referenced by update_encounters_post_battle().
Definition at line 1472 of file inventory.c.
Referenced by btl_state_update_normal_start().
Definition at line 1483 of file inventory.c.
Definition at line 1487 of file inventory.c.
Definition at line 1492 of file inventory.c.
Referenced by check_input_status_bar().
Definition at line 1508 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
Definition at line 1512 of file inventory.c.
Definition at line 1519 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 1523 of file inventory.c.
Referenced by create_battle_popup_menu(), create_shop_popup_menu(), and create_standard_popup_menu().
Definition at line 1529 of file inventory.c.
Referenced by shop_open_item_select_popup().
Definition at line 1533 of file inventory.c.
Referenced by draw_shop_items(), and shop_close_item_select_popup().
s32 is_status_bar_visible | ( | void | ) |
Definition at line 1537 of file inventory.c.
Referenced by check_input_status_bar().
Definition at line 1541 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1554 of file inventory.c.
Referenced by update_status_bar().
Definition at line 1564 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), and update_status_bar().
Definition at line 1577 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), btl_submenu_moves_update(), and update_status_bar().
Definition at line 1609 of file inventory.c.
Definition at line 1620 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 1629 of file inventory.c.
Referenced by btl_menu_moves_draw_content().
Definition at line 1639 of file inventory.c.
Referenced by btl_state_update_run_away().
Definition at line 1648 of file inventory.c.
Referenced by btl_state_update_run_away().
Definition at line 1657 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 1665 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 1671 of file inventory.c.
Definition at line 1682 of file inventory.c.
Referenced by state_step_battle(), and state_step_pause().
s32 is_ability_active | ( | s32 | ability | ) |
Definition at line 1736 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 2072 of file inventory.c.
Referenced by player_team_is_ability_active().
s32 add_coins | ( | s32 | amt | ) |
Definition at line 2076 of file inventory.c.
s32 add_star_points | ( | s32 | amt | ) |
Definition at line 2097 of file inventory.c.
s32 add_star_pieces | ( | s32 | amt | ) |
Definition at line 2115 of file inventory.c.
Definition at line 2135 of file inventory.c.
Definition at line 2140 of file inventory.c.
void add_star_power | ( | s32 | amt | ) |
Definition at line 2145 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 2170 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 2187 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
void subtract_hp | ( | s32 | amt | ) |
Definition at line 2204 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and func_802BC274_E2EBA4().
Definition at line 2217 of file inventory.c.
Definition at line 2221 of file inventory.c.
Definition at line 20 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 21 of file inventory.c.
Referenced by clear_player_data(), initialize_status_bar(), show_coin_counter(), and update_coin_counter().
StatusBar gStatusBar |
Definition at line 23 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().