2021-07-22 19:33:33 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stack>
|
|
|
|
#include <memory>
|
|
|
|
#include <SFML/Window/Event.hpp>
|
|
|
|
#include <SFML/Graphics/Drawable.hpp>
|
|
|
|
|
|
|
|
class GUIState : public sf::Drawable
|
|
|
|
{
|
2021-07-27 20:18:37 +02:00
|
|
|
public:
|
2021-07-22 19:33:33 +02:00
|
|
|
virtual ~GUIState() = default;
|
|
|
|
|
2021-07-27 20:18:37 +02:00
|
|
|
virtual void input(const sf::Event& event) = 0;
|
2021-07-22 19:33:33 +02:00
|
|
|
virtual void update() = 0;
|
|
|
|
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const = 0;
|
|
|
|
};
|