Clean up the GUI some by moving the map_view out into its own file.
This commit is contained in:
parent
421cca308b
commit
6da830595c
5 changed files with 94 additions and 81 deletions
18
gui.hpp
18
gui.hpp
|
@ -6,25 +6,9 @@
|
|||
#include "camera.hpp"
|
||||
#include "fsm.hpp"
|
||||
#include "render.hpp"
|
||||
#include "panel.hpp"
|
||||
#include <ftxui/dom/canvas.hpp>
|
||||
|
||||
using ftxui::Canvas;
|
||||
#include "map_view.hpp"
|
||||
|
||||
namespace gui {
|
||||
class MapViewUI : public Panel {
|
||||
public:
|
||||
Canvas $canvas;
|
||||
GameLevel $level;
|
||||
|
||||
MapViewUI(GameLevel &level);
|
||||
void create_render();
|
||||
void resize_canvas();
|
||||
void draw_map();
|
||||
void update_level(GameLevel &level);
|
||||
};
|
||||
|
||||
|
||||
enum class State {
|
||||
START,
|
||||
MOVING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue