move forward-declarations into boe.actions.cpp

This commit is contained in:
2024-08-01 12:37:39 -05:00
committed by Celtic Minstrel
parent 0554149859
commit 09b2c0c822
2 changed files with 15 additions and 17 deletions

View File

@@ -36,4 +36,19 @@ short count_walls(location loc);
bool is_sign(ter_num_t ter);
bool check_for_interrupt();
void handle_startup_button_click(eStartButton btn);
void handle_switch_pc(short which_pc, bool& need_redraw, bool& need_reprint);
void handle_switch_pc_items(short which_pc, bool& need_redraw);
void handle_equip_item(short item_hit, bool& need_redraw);
void handle_use_item(short item_hit, bool& did_something, bool& need_redraw);
void handle_item_shop_action(short item_hit);
void handle_alchemy(bool& need_redraw, bool& need_reprint);
void handle_town_wait(bool& need_redraw, bool& need_reprint);
void handle_combat_switch(bool& did_something, bool& need_redraw, bool& need_reprint);
void handle_missile(bool& need_redraw, bool& need_reprint);
void handle_get_items(bool& did_something, bool& need_redraw, bool& need_reprint);
void handle_drop_item(short item_hit, bool& need_redraw);
void handle_drop_item(location destination, bool& need_redraw);
void handle_give_item(short item_hit, bool& did_something, bool& need_redraw);
#endif

View File

@@ -120,23 +120,6 @@ extern long anim_ticks;
static void init_boe(int, char*[]);
static void showWelcome();
// TODO all these forward declarations of boe.actions.cpp functions might be less
// than ideal. Maybe they could be moved to boe.actions.hpp and #included here instead
void handle_startup_button_click(eStartButton btn);
void handle_switch_pc(short which_pc, bool& need_redraw, bool& need_reprint);
void handle_switch_pc_items(short which_pc, bool& need_redraw);
void handle_equip_item(short item_hit, bool& need_redraw);
void handle_use_item(short item_hit, bool& did_something, bool& need_redraw);
void handle_item_shop_action(short item_hit);
void handle_alchemy(bool& need_redraw, bool& need_reprint);
void handle_town_wait(bool& need_redraw, bool& need_reprint);
void handle_combat_switch(bool& did_something, bool& need_redraw, bool& need_reprint);
void handle_missile(bool& need_redraw, bool& need_reprint);
void handle_get_items(bool& did_something, bool& need_redraw, bool& need_reprint);
void handle_drop_item(short item_hit, bool& need_redraw);
void handle_drop_item(location destination, bool& need_redraw);
void handle_give_item(short item_hit, bool& did_something, bool& need_redraw);
void handle_quit_event();
#ifdef __APPLE__