test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
37
.config/Code/User/History/1114135d/9Of6.h
Normal file
37
.config/Code/User/History/1114135d/9Of6.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef GAMELEVEL_H
|
||||
#define GAMELEVEL_H
|
||||
|
||||
using namespace std;
|
||||
|
||||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball **balls;
|
||||
Paddle paddle;
|
||||
Paddle *paddle2;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBalls(int& lives, string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue