-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBGame_Level_3.h
49 lines (39 loc) · 978 Bytes
/
BGame_Level_3.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
#pragma once
#include "BPlayerControl.h"
#include "BGame.h"
class BGame_Level_3
{
public:
BGame_Level_3();
~BGame_Level_3();
BGame* getGame();
BPlayerControl* getPlayer();
//main game loop
void mainGameLoop(bool& levelState);
//standby mode
void standByLoop();
//game over screen
void gameOverLoop();
//GETs
int getGameScorePosition_X() const;
int getGameLivesPosition_X() const;
int getScoreAndLivesPosition_Y() const;
//checks if mouse button is clicked
void setGameStart(bool state);
//GETs
bool getGameStart();
bool getGameOver();
private:
BGame* gGame_Level_3;
BPlayerControl* gPlayer;
//Start game flag
bool start;
//Gameover flag
bool gameOver;
//temp values for score and lives
int tempScore;
int tempLives;
const int GAME_SCORE_POSITION_X = 730;
const int GAME_LIVES_POSITION_X = 50;
const int GAME_SCORE_AND_LIVES_POSITION_Y = 530;
};