2021-05-28 19:50:57 +02:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
2021-07-22 19:33:33 +02:00
|
|
|
#include "game/inputtype.h"
|
2021-05-28 19:50:57 +02:00
|
|
|
|
|
|
|
class Game
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Game() = default;
|
|
|
|
|
|
|
|
virtual void run() = 0;
|
|
|
|
|
2021-06-23 21:18:33 +02:00
|
|
|
virtual void input(PlayerInput&& inputdata) = 0;
|
2021-05-28 19:50:57 +02:00
|
|
|
virtual void update() = 0;
|
2021-06-23 21:18:33 +02:00
|
|
|
virtual void draw() const = 0;
|
2021-05-28 19:50:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GAME_H
|