35 lines
No EOL
569 B
C++
35 lines
No EOL
569 B
C++
#ifndef GAMELEVEL_H
|
|
#define GAMELEVEL_H
|
|
|
|
#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, int& gameState);
|
|
void checkBrickCollision();
|
|
void moveFood();
|
|
void checkFoodCollision();
|
|
|
|
|
|
int& getLives();
|
|
Ball**& getBalls();
|
|
Paddle& getPaddle();
|
|
virtual Paddle* getPaddle2();
|
|
|
|
~GameLevel();
|
|
|
|
};
|
|
#endif |