More refactoring of the gui. Now most things are out of the FSM and MainUI is responsible for the rayvew and its overlay.

This commit is contained in:
Zed A. Shaw 2025-02-21 00:50:54 -05:00
parent 23ed1594f2
commit dd4f77a106
6 changed files with 89 additions and 45 deletions

View file

@ -1,9 +1,7 @@
#pragma once
#include "raycaster.hpp"
#include "constants.hpp"
#include "stats.hpp"
#include "levelmanager.hpp"
#include "camera.hpp"
#include "fsm.hpp"
#include "render.hpp"
#include "map_view.hpp"
@ -46,7 +44,6 @@ namespace gui {
public:
sf::RenderWindow $window;
bool $draw_stats = false;
Point $player{0,0};
LevelManager $levels;
MainUI $main_ui;
SFMLRender $renderer;
@ -54,10 +51,8 @@ namespace gui {
MapViewUI $map_ui;
CombatUI $combat_ui;
StatusUI $status_ui;
CameraLOL $camera;
sf::Font $font;
TexturePack $textures;
Raycaster $rayview;
FSM();