-
Notifications
You must be signed in to change notification settings - Fork 0
/
HighScoreScene.h
43 lines (31 loc) · 889 Bytes
/
HighScoreScene.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
#pragma once
#include "GameScene.h"
#include "Button.h"
#include "UiText.h"
#define OPTION_COUNT 2
class HighScoreScene : public GameScene
{
public:
HighScoreScene ( ) :
m_lblHighScore ( "Score", 10 ),
m_lblHighScoreValue ( "%i", 25 )
{ }
void initaliseGame ( int lastGameSceneResponse ) override;
int loadNextScene ( std::shared_ptr<GameScene> & newScene, bool & loadAdditively ) override;
void setGameLabel ( const wchar_t * gameLabelData, const size_t cols, const size_t rows, const CellColour colour );
void setScore ( int score );
protected:
void initaliseLevel ( ) override;
void updateGame ( ) override;
void drawGame ( ) override;
private:
int m_selectedOption = 2;
int m_highlightOption = 1;
Button m_btnGameOver;
Button m_btnGame;
Button m_btnRetry;
Button m_btnExit;
UiText m_lblHighScore;
UiText m_lblHighScoreValue;
void processMenu ( );
};