-
Notifications
You must be signed in to change notification settings - Fork 1
/
GameSystemExtended.h
52 lines (42 loc) · 1.49 KB
/
GameSystemExtended.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef GAMESYSTEMEXTENDED_H_INCLUDED
#define GAMESYSTEMEXTENDED_H_INCLUDED
#include "../../isEngine/system/function/GameSystem.h"
#include "../levels/Level.h"
////////////////////////////////////////////////////////////
/// \brief Class derived from GameSystem to manage the
/// different engine components
///
/// Allows to manage the saving / loading of game and
/// configuration data, manipulate the data of the virtual
/// Game Pad and act on the different scenes of the game
////////////////////////////////////////////////////////////
namespace is
{
class GameSystemExtended : public GameSystem
{
public:
GameSystemExtended(sf::RenderWindow &window);
/// Initialize the data link to the game engine
void initSystemData();
/// Initialize game progress data
void initProgress();
/// Initialize game play data (bonus, score, ...)
void initData(bool clearCurrentLevel = true);
/// Save game play data
void saveData(std::string const &fileName);
/// Load game play data
void loadData(std::string const &fileName);
/// Allows to choose the scene that will be launched
is::DisplayOption m_launchOption = is::GameConfig::LAUNCH_OPTION; // Represents the first scene to be launched
int m_gameProgression;
int m_levelNumber;
int m_currentLevel;
int m_currentLives;
int m_currentBonus;
int m_currentScore;
int m_currentHiScore;
int m_levelTime;
bool m_checkPoint;
};
}
#endif // GAMESYSTEMEXTENDED_H_INCLUDED