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 } |
Functions | |
void | status_bar_start_blinking_coins (void) |
void | status_bar_stop_blinking_coins (void) |
void | clear_player_data (void) |
s32 | add_item (s32 itemID) |
Add itemID to player inventory and return inventory slot in which it was placed. | |
s32 | remove_item (s32 itemID) |
Remove first instance of itemID found in player inventory. | |
s32 | find_item (s32 itemID) |
Search player inventory for itemID and return first matching array index. | |
s32 | count_item (s32 itemID) |
Search player inventory for itemID and count the number matches. | |
b32 | has_item (s32 itemID) |
Check whether player has itemID in their inventory. | |
s32 | store_item (s32 itemID) |
Add itemID to player storage and return slot in which it was placed. | |
b32 | is_badge_equipped (s32 itemID) |
void | sort_consumables (void) |
Bubbles up player inventory items such that all ITEM_NONE values are at the bottom. | |
s32 | get_consumables_count (void) |
s32 | get_consumables_empty (void) |
s32 | get_stored_count (void) |
s32 | get_stored_empty (void) |
void | enforce_hpfp_limits (void) |
void | initialize_status_bar (void) |
void | status_bar_draw_number (s32 iconID, s32 startX, s32 startY, s32 value, s32 numDigits) |
void | status_bar_draw_stat (s32 id, s32 startX, s32 startY, s32 currentValue, s32 maxValue) |
void | update_status_bar (void) |
void | coin_counter_draw_content (UNK_TYPE arg0, s32 posX, s32 posY) |
void | update_coin_counter (void) |
void | show_coin_counter (void) |
void | hide_coin_counter (void) |
void | hide_coin_counter_immediately (void) |
void | draw_status_ui (void) |
void | open_status_bar_slowly (void) |
void | open_status_bar_quickly (void) |
void | close_status_bar (void) |
void | setup_status_bar_for_world (void) |
void | setup_status_bar_for_battle (void) |
void | enable_status_bar_input (void) |
void | disable_status_bar_input (void) |
b32 | can_control_status_bar (void) |
void | status_bar_ignore_changes (void) |
void | status_bar_show_and_ignore_changes (void) |
void | status_bar_respond_to_changes (void) |
s32 | status_bar_is_ignoring_changes (void) |
void | status_bar_always_show_on (void) |
void | status_bar_always_show_off (void) |
s32 | is_status_bar_visible (void) |
void | status_bar_start_blinking_hp (void) |
void | status_bar_stop_blinking_hp (void) |
void | status_bar_start_blinking_fp (void) |
void | status_bar_stop_blinking_fp (void) |
void | status_bar_start_blinking_sp (void) |
void | status_bar_stop_blinking_sp (void) |
void | status_bar_start_blinking_sp_bars (s32 numBarsToBlink) |
void | status_bar_start_blinking_starpoints (void) |
void | status_bar_stop_blinking_starpoints (void) |
void | decrement_status_bar_disabled (void) |
void | increment_status_bar_disabled (void) |
void | sync_status_bar (void) |
void | reset_status_bar (void) |
s32 | is_ability_active (s32 ability) |
s32 | is_partner_ability_active (s32 ability) |
s32 | add_coins (s32 amt) |
s32 | add_star_points (s32 amt) |
s32 | add_star_pieces (s32 amt) |
void | increment_max_star_power (void) |
void | set_max_star_power (s8 newMax) |
void | add_star_power (s32 amt) |
s32 | recover_fp (s32 amt) |
Recover player FP. | |
s32 | recover_hp (s32 amt) |
Recover player HP. | |
void | subtract_hp (s32 amt) |
s8 | has_full_hp (void) |
s8 | has_full_fp (void) |
#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().
enum BlinkModes |
Enumerator | |
---|---|
BLINK_OFF | |
BLINK_ON |
Definition at line 9 of file inventory.c.
void status_bar_start_blinking_coins | ( | void | ) |
Definition at line 1575 of file inventory.c.
Referenced by update_status_bar().
void status_bar_stop_blinking_coins | ( | void | ) |
Definition at line 1588 of file inventory.c.
Referenced by update_status_bar().
void clear_player_data | ( | void | ) |
Definition at line 49 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 146 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 198 of file inventory.c.
s32 find_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and return first matching array index.
Definition at line 258 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 304 of file inventory.c.
b32 has_item | ( | s32 | itemID | ) |
Check whether player has itemID
in their inventory.
Definition at line 337 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 369 of file inventory.c.
b32 is_badge_equipped | ( | s32 | itemID | ) |
itemID
as an equipped badge Definition at line 387 of file inventory.c.
void sort_consumables | ( | void | ) |
Bubbles up player inventory items such that all ITEM_NONE values are at the bottom.
Definition at line 404 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 423 of file inventory.c.
Referenced by get_consumables_empty().
s32 get_consumables_empty | ( | void | ) |
Definition at line 436 of file inventory.c.
s32 get_stored_count | ( | void | ) |
Definition at line 440 of file inventory.c.
Referenced by get_stored_empty().
s32 get_stored_empty | ( | void | ) |
void enforce_hpfp_limits | ( | void | ) |
Definition at line 457 of file inventory.c.
Referenced by pause_badges_handle_input(), and pause_handle_input().
void initialize_status_bar | ( | void | ) |
Definition at line 477 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 618 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 656 of file inventory.c.
Referenced by update_status_bar().
void update_status_bar | ( | void | ) |
Definition at line 712 of file inventory.c.
Referenced by draw_status_ui().
void coin_counter_draw_content | ( | UNK_TYPE | arg0, |
s32 | posX, | ||
s32 | posY ) |
Definition at line 1290 of file inventory.c.
Referenced by show_coin_counter().
void update_coin_counter | ( | void | ) |
Definition at line 1309 of file inventory.c.
Referenced by draw_status_ui().
void show_coin_counter | ( | void | ) |
Definition at line 1348 of file inventory.c.
void hide_coin_counter | ( | void | ) |
Definition at line 1385 of file inventory.c.
void hide_coin_counter_immediately | ( | void | ) |
Definition at line 1393 of file inventory.c.
void draw_status_ui | ( | void | ) |
Definition at line 1411 of file inventory.c.
Referenced by btl_draw_ui(), state_drawUI_change_map(), state_drawUI_enter_world(), and state_drawUI_world().
void open_status_bar_slowly | ( | void | ) |
Definition at line 1420 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and check_input_status_bar().
void open_status_bar_quickly | ( | void | ) |
Definition at line 1430 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
void close_status_bar | ( | void | ) |
Definition at line 1440 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().
void setup_status_bar_for_world | ( | void | ) |
Definition at line 1450 of file inventory.c.
Referenced by update_encounters_post_battle().
void setup_status_bar_for_battle | ( | void | ) |
Definition at line 1461 of file inventory.c.
Referenced by btl_state_update_normal_start().
void enable_status_bar_input | ( | void | ) |
Definition at line 1472 of file inventory.c.
void disable_status_bar_input | ( | void | ) |
Definition at line 1476 of file inventory.c.
b32 can_control_status_bar | ( | void | ) |
Definition at line 1481 of file inventory.c.
Referenced by check_input_status_bar().
void status_bar_ignore_changes | ( | void | ) |
Definition at line 1497 of file inventory.c.
Referenced by create_standard_popup_menu(), and shop_open_item_select_popup().
void status_bar_show_and_ignore_changes | ( | void | ) |
Definition at line 1501 of file inventory.c.
void status_bar_respond_to_changes | ( | void | ) |
Definition at line 1508 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 1512 of file inventory.c.
Referenced by create_battle_popup_menu(), create_shop_popup_menu(), and create_standard_popup_menu().
void status_bar_always_show_on | ( | void | ) |
Definition at line 1518 of file inventory.c.
Referenced by shop_open_item_select_popup().
void status_bar_always_show_off | ( | void | ) |
Definition at line 1522 of file inventory.c.
Referenced by draw_shop_items(), and shop_close_item_select_popup().
s32 is_status_bar_visible | ( | void | ) |
Definition at line 1526 of file inventory.c.
Referenced by check_input_status_bar().
void status_bar_start_blinking_hp | ( | void | ) |
Definition at line 1530 of file inventory.c.
Referenced by update_status_bar().
void status_bar_stop_blinking_hp | ( | void | ) |
Definition at line 1543 of file inventory.c.
Referenced by update_status_bar().
void status_bar_start_blinking_fp | ( | void | ) |
Definition at line 1553 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), and update_status_bar().
void status_bar_stop_blinking_fp | ( | void | ) |
Definition at line 1566 of file inventory.c.
Referenced by btl_menu_moves_draw_content(), btl_submenu_moves_update(), and update_status_bar().
void status_bar_start_blinking_sp | ( | void | ) |
Definition at line 1598 of file inventory.c.
void status_bar_stop_blinking_sp | ( | void | ) |
Definition at line 1609 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 1618 of file inventory.c.
Referenced by btl_menu_moves_draw_content().
void status_bar_start_blinking_starpoints | ( | void | ) |
Definition at line 1628 of file inventory.c.
Referenced by btl_state_update_run_away().
void status_bar_stop_blinking_starpoints | ( | void | ) |
Definition at line 1637 of file inventory.c.
Referenced by btl_state_update_run_away().
void decrement_status_bar_disabled | ( | void | ) |
Definition at line 1646 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().
void increment_status_bar_disabled | ( | void | ) |
Definition at line 1654 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().
void sync_status_bar | ( | void | ) |
Definition at line 1660 of file inventory.c.
void reset_status_bar | ( | void | ) |
Definition at line 1671 of file inventory.c.
Referenced by state_step_battle(), and state_step_pause().
s32 is_ability_active | ( | s32 | ability | ) |
Definition at line 1725 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 2061 of file inventory.c.
Referenced by player_team_is_ability_active().
s32 add_coins | ( | s32 | amt | ) |
Definition at line 2065 of file inventory.c.
s32 add_star_points | ( | s32 | amt | ) |
Definition at line 2086 of file inventory.c.
s32 add_star_pieces | ( | s32 | amt | ) |
Definition at line 2104 of file inventory.c.
void increment_max_star_power | ( | void | ) |
Definition at line 2124 of file inventory.c.
void set_max_star_power | ( | s8 | newMax | ) |
Definition at line 2129 of file inventory.c.
void add_star_power | ( | s32 | amt | ) |
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 2158 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 2175 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
void subtract_hp | ( | s32 | amt | ) |
Definition at line 2192 of file inventory.c.
Referenced by action_update_hit_fire(), action_update_hit_lava(), and func_802BC274_E2EBA4().
s8 has_full_hp | ( | void | ) |
Definition at line 2205 of file inventory.c.
s8 has_full_fp | ( | void | ) |
Definition at line 2209 of file inventory.c.
Definition at line 14 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 15 of file inventory.c.
Referenced by clear_player_data(), initialize_status_bar(), show_coin_counter(), and update_coin_counter().
StatusBar gStatusBar |
Definition at line 17 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().