This repository has been archived on 2022-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
WaveGGJ17/VaporWaveWars/game.hpp
2017-01-20 23:52:42 +01:00

20 lines
439 B
C++

#ifndef GAME_HPP
#define GAME_HPP
#include "commons.hpp"
class Game {
public:
Game();
virtual ~Game();
static Game* i();
virtual void run();
bool isRunning =/* very very*/ true;
protected:
virtual void update(float deltaTime, sf::RenderWindow *window) = 0;
virtual void draw(sf::RenderWindow *window) = 0;
private:
static Game* instance;
};
#endif // GAME_HPP