Cleaning up and sorting out how to use the new events best.

This commit is contained in:
Zed A. Shaw 2024-10-29 23:39:03 -04:00
parent 04350cb51e
commit 2fdbd63f4c
4 changed files with 38 additions and 32 deletions

View file

@ -12,6 +12,7 @@
#include <string>
#include "map.hpp"
#include "dinkyecs.hpp"
#include "components.hpp"
#include "sound.hpp"
using std::string;
@ -54,6 +55,8 @@ class GUI {
int $map_font_size;
sf::Glyph $base_glyph;
float $line_spacing;
SoundManager $sounds;
Components::ActionLog $log;
public:
GUI();
@ -64,7 +67,8 @@ public:
sf::Color color(int val);
void create_renderer();
void render_scene();
bool handle_events();
bool handle_ui_events();
void handle_world_events();
void draw_screen(bool clear=true, float map_off_x=0.0f, float map_off_y=0.0f);
void shake();
void configure_world();