project-kyoku/include/state.h

33 lines
540 B
C
Raw Normal View History

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