Refactor the game event loop and add menus to the Linux build

Patch from @x-qq
Addresses #195
This commit is contained in:
2020-01-25 17:57:32 -05:00
parent 1fcbd8e922
commit 29ef8b9c1e
17 changed files with 600 additions and 155 deletions

View File

@@ -7,13 +7,13 @@
void init_screen_locs();
bool prime_time();
bool handle_action(sf::Event event);
bool handle_action(const sf::Event& event);
void handle_monster_actions(bool& need_redraw, bool& need_reprint);
bool someone_awake();
void handle_menu_spell(short spell_picked,short spell_type) ;
void initiate_outdoor_combat(short i);
bool handle_keystroke(sf::Event& event);
bool handle_scroll(sf::Event& event);
bool handle_keystroke(const sf::Event& event);
bool handle_scroll(const sf::Event& event);
void do_load();
void post_load();
void do_save(short mode);