2021-05-28 19:50:57 +02:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
#include <SFML/Window/Event.hpp>
|
|
|
|
|
|
|
|
class Game
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Game() = default;
|
|
|
|
|
|
|
|
virtual void run() = 0;
|
|
|
|
|
|
|
|
virtual void input(const sf::Event& event) = 0;
|
|
|
|
virtual void update() = 0;
|
2021-06-09 20:08:58 +02:00
|
|
|
virtual void draw(sf::RenderWindow& window) const = 0;
|
2021-05-28 19:50:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GAME_H
|