2021-07-22 13:33:33 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stack>
|
|
|
|
#include <memory>
|
|
|
|
#include <SFML/Window/Event.hpp>
|
|
|
|
|
2021-08-03 14:42:58 -04:00
|
|
|
class GUIState
|
2021-07-22 13:33:33 -04:00
|
|
|
{
|
2021-07-27 14:18:37 -04:00
|
|
|
public:
|
2021-08-03 14:42:58 -04:00
|
|
|
|
|
|
|
enum Tag {
|
|
|
|
SPLASH_SCREEN,
|
|
|
|
MAIN_MENU,
|
|
|
|
GAME_PICKER,
|
|
|
|
GAME,
|
|
|
|
EDITOR_PICKER,
|
|
|
|
EDITOR,
|
|
|
|
SETTINGS,
|
|
|
|
|
|
|
|
AMOUNT
|
|
|
|
};
|
|
|
|
|
2021-07-22 13:33:33 -04:00
|
|
|
virtual ~GUIState() = default;
|
|
|
|
|
2021-07-27 14:18:37 -04:00
|
|
|
virtual void input(const sf::Event& event) = 0;
|
2021-07-22 13:33:33 -04:00
|
|
|
virtual void update() = 0;
|
2021-08-03 14:42:58 -04:00
|
|
|
virtual void draw() const = 0;
|
|
|
|
|
|
|
|
virtual void enter() = 0;
|
|
|
|
virtual void leave() = 0;
|
2021-07-22 13:33:33 -04:00
|
|
|
};
|