limit framerate of controls' nested event loops

This commit is contained in:
2024-08-09 16:26:24 -05:00
committed by Celtic Minstrel
parent fe4821cb4e
commit 39c85e7f3c
22 changed files with 147 additions and 137 deletions

View File

@@ -5,17 +5,18 @@
#include <SFML/Window/Event.hpp>
#include "location.hpp"
#include "dialogxml/keycodes.hpp"
#include "tools/framerate_limiter.hpp"
void init_screen_locs();
bool prime_time();
bool handle_action(const sf::Event& event);
bool handle_action(const sf::Event& event, cFramerateLimiter& fps_limiter);
void advance_time(bool did_something, bool need_redraw, bool need_reprint);
void handle_move(location destination, bool& did_something, bool& need_redraw, bool& need_reprint);
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(const sf::Event& event);
bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter);
bool handle_scroll(const sf::Event& event);
void do_load();
void post_load();