-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
36 lines (29 loc) · 834 Bytes
/
Game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <memory>
#include <SFML/Graphics.hpp>
#include "EntityController.h"
#include "LevelController.h"
#include "ScoreController.h"
class Game : public sf::Drawable
{
private:
sf::IntRect gameArea;
EntityController entityControl;
LevelController levelControl;
ScoreController scoreControl;
bool isEndurance, stopShooting;
public:
Game(sf::IntRect gameArea, bool isEndurance);
virtual ~Game();
void start();
void doLoop(sf::Time& enemyCooldown);
void notInGame();
bool checkConditions();
void levelUp();
virtual void draw(sf::RenderTarget& Target, sf::RenderStates States) const override;
int keyboardInput();
bool checkHiScores(uint mode, sf::String enteredNickname="");
uint getActualScore();
uint getBestScore();
};
typedef std::unique_ptr<Game> Game_uptr;