Cleaning up and sorting out how to use the new events best.
This commit is contained in:
parent
04350cb51e
commit
2fdbd63f4c
4 changed files with 38 additions and 32 deletions
6
gui.hpp
6
gui.hpp
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue