-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlaySideBar.h
55 lines (45 loc) · 1.08 KB
/
PlaySideBar.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
53
54
55
#ifndef _PLAYSIDEBAR_H
#define _PLAYSIDEBAR_H
#include "Timer.h"
#include "ScoreBoard.h"
#include "AudioManager.h"
class PlaySideBar : public GameEntity
{
private:
Timer* mTimer;
AudioManager* mAudio;
Texture* mBackGround;
Texture* mHighLabel;
Texture* mScoreLabel;
ScoreBoard* mHighScoreBoard;
Texture* mPlayerOneLabel;
float mBlinkTimer;
float mBlinkInterval;
bool mPlayerOneLabelVisable;
ScoreBoard* mPlayerOneScore;
static const int MAX_SHIP_TEXTURES = 5;
GameEntity* mShips;
Texture* mShipTextures[MAX_SHIP_TEXTURES];
ScoreBoard* mTotalShipsLabel;
int mTotalShips;
GameEntity* mFlags;
std::vector<Texture*> mFlagTextures;
int mRemainingLevels;
int mFlagXOffset;
float mFlagTimer;
float mFlagInterval;
private:
void ClearFlags();
void AddNextFlag();
void AddFlag(std::string filename, float width, int value);
public:
PlaySideBar();
~PlaySideBar();
void SetHighScore(int score);
void SetPlayerScore(int score);
void SetLives(int lives);
void SetLevel(int level);
void Update();
void Render();
};
#endif