More refactoring of the FSM to MainUI. Move the overlay out and some more.
This commit is contained in:
parent
a7a60ad35c
commit
23ed1594f2
4 changed files with 106 additions and 82 deletions
|
@ -44,6 +44,7 @@ namespace gui {
|
|||
|
||||
class FSM : public DeadSimpleFSM<State, Event> {
|
||||
public:
|
||||
sf::RenderWindow $window;
|
||||
bool $draw_stats = false;
|
||||
Point $player{0,0};
|
||||
LevelManager $levels;
|
||||
|
@ -53,10 +54,8 @@ namespace gui {
|
|||
MapViewUI $map_ui;
|
||||
CombatUI $combat_ui;
|
||||
StatusUI $status_ui;
|
||||
OverlayUI $overlay_ui;
|
||||
CameraLOL $camera;
|
||||
sf::Font $font;
|
||||
Stats $stats;
|
||||
TexturePack $textures;
|
||||
Raycaster $rayview;
|
||||
|
||||
|
@ -76,10 +75,8 @@ namespace gui {
|
|||
|
||||
void try_move(int dir, bool strafe);
|
||||
void keyboard();
|
||||
void draw_stats();
|
||||
void draw_gui();
|
||||
void draw_blood();
|
||||
void debug();
|
||||
void render();
|
||||
void mouse();
|
||||
void generate_map();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue