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