test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
15
.config/Code/User/History/1114135d/0CpN.h
Normal file
15
.config/Code/User/History/1114135d/0CpN.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
|
||||
Ball ball;
|
||||
Paddle paddle1;
|
||||
Brick ***bricks;
|
||||
|
||||
public:
|
||||
GameLevel(Ball ball, Paddle paddle1);
|
||||
};
|
29
.config/Code/User/History/1114135d/2XLa.h
Normal file
29
.config/Code/User/History/1114135d/2XLa.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball **balls;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Ball*& getBall1();
|
||||
Ball*& getBall2();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
20
.config/Code/User/History/1114135d/3Jm2.h
Normal file
20
.config/Code/User/History/1114135d/3Jm2.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food *food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
~GameLevel();
|
||||
|
||||
};
|
15
.config/Code/User/History/1114135d/4rtl.h
Normal file
15
.config/Code/User/History/1114135d/4rtl.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
|
||||
public:
|
||||
GameLevel(Ball ball, Paddle paddle);
|
||||
};
|
26
.config/Code/User/History/1114135d/6SDa.h
Normal file
26
.config/Code/User/History/1114135d/6SDa.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food *food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
Food* getFood();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/6Ugz.h
Normal file
35
.config/Code/User/History/1114135d/6Ugz.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
18
.config/Code/User/History/1114135d/6zDq.h
Normal file
18
.config/Code/User/History/1114135d/6zDq.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void draw();
|
||||
|
||||
|
||||
};
|
27
.config/Code/User/History/1114135d/71n3.h
Normal file
27
.config/Code/User/History/1114135d/71n3.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball **balls;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
20
.config/Code/User/History/1114135d/7wzv.h
Normal file
20
.config/Code/User/History/1114135d/7wzv.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
~GameLevel();
|
||||
|
||||
|
||||
};
|
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
|
31
.config/Code/User/History/1114135d/CH7T.h
Normal file
31
.config/Code/User/History/1114135d/CH7T.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
27
.config/Code/User/History/1114135d/EEdO.h
Normal file
27
.config/Code/User/History/1114135d/EEdO.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/ESLy.h
Normal file
35
.config/Code/User/History/1114135d/ESLy.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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
|
19
.config/Code/User/History/1114135d/EZkI.h
Normal file
19
.config/Code/User/History/1114135d/EZkI.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
|
||||
protected:
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void draw();
|
||||
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/MmAq.h
Normal file
35
.config/Code/User/History/1114135d/MmAq.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
30
.config/Code/User/History/1114135d/OjL6.h
Normal file
30
.config/Code/User/History/1114135d/OjL6.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Ball *ball1, *ball2;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Ball*& getBall1();
|
||||
Ball*& getBall2();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
32
.config/Code/User/History/1114135d/PvGk.h
Normal file
32
.config/Code/User/History/1114135d/PvGk.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
Paddle& getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
32
.config/Code/User/History/1114135d/Q42r.h
Normal file
32
.config/Code/User/History/1114135d/Q42r.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
virtual ~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
32
.config/Code/User/History/1114135d/QAUR.h
Normal file
32
.config/Code/User/History/1114135d/QAUR.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle& getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
19
.config/Code/User/History/1114135d/QJBa.h
Normal file
19
.config/Code/User/History/1114135d/QJBa.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
};
|
26
.config/Code/User/History/1114135d/RDr2.h
Normal file
26
.config/Code/User/History/1114135d/RDr2.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
Food* getFood();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/RQ17.h
Normal file
35
.config/Code/User/History/1114135d/RQ17.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
15
.config/Code/User/History/1114135d/UPgi.h
Normal file
15
.config/Code/User/History/1114135d/UPgi.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
|
||||
public:
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
};
|
35
.config/Code/User/History/1114135d/WvlH.h
Normal file
35
.config/Code/User/History/1114135d/WvlH.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
35
.config/Code/User/History/1114135d/WxA7.h
Normal file
35
.config/Code/User/History/1114135d/WxA7.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
32
.config/Code/User/History/1114135d/ZkUE.h
Normal file
32
.config/Code/User/History/1114135d/ZkUE.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle*& getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
33
.config/Code/User/History/1114135d/Zz1F.h
Normal file
33
.config/Code/User/History/1114135d/Zz1F.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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 checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
35
.config/Code/User/History/1114135d/Zz2u.h
Normal file
35
.config/Code/User/History/1114135d/Zz2u.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
24
.config/Code/User/History/1114135d/bLfq.h
Normal file
24
.config/Code/User/History/1114135d/bLfq.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
28
.config/Code/User/History/1114135d/bOXw.h
Normal file
28
.config/Code/User/History/1114135d/bOXw.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Ball *ball1, *ball2;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
26
.config/Code/User/History/1114135d/d0L7.h
Normal file
26
.config/Code/User/History/1114135d/d0L7.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
void moveFood();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
19
.config/Code/User/History/1114135d/dnh4.h
Normal file
19
.config/Code/User/History/1114135d/dnh4.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void setCoords(int i, int j);
|
||||
void draw();
|
||||
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/eQ0u.h
Normal file
35
.config/Code/User/History/1114135d/eQ0u.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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, std::string& gameState);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
1
.config/Code/User/History/1114135d/entries.json
Normal file
1
.config/Code/User/History/1114135d/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/GameLevel.h","entries":[{"id":"0CpN.h","timestamp":1714403648577},{"id":"nAMH.h","timestamp":1714404052136},{"id":"4rtl.h","timestamp":1714404118713},{"id":"UPgi.h","timestamp":1714404133867},{"id":"kDP0.h","timestamp":1714404637640},{"id":"EZkI.h","timestamp":1714404731930},{"id":"gHl8.h","timestamp":1714404855202},{"id":"tOZw.h","timestamp":1714444286293},{"id":"dnh4.h","timestamp":1714456935417},{"id":"6zDq.h","timestamp":1714456959480},{"id":"hGKm.h","timestamp":1714470375590},{"id":"QJBa.h","timestamp":1714470388094},{"id":"7wzv.h","timestamp":1714699983852},{"id":"3Jm2.h","timestamp":1714729306156},{"id":"oGBk.h","timestamp":1714729820446},{"id":"q6JC.h","timestamp":1714729831017},{"id":"bLfq.h","timestamp":1714732668764},{"id":"6SDa.h","timestamp":1714732699838},{"id":"RDr2.h","timestamp":1714739517663},{"id":"d0L7.h","timestamp":1714740572450},{"id":"EEdO.h","timestamp":1714822609125},{"id":"ur0A.h","timestamp":1714888492155},{"id":"bOXw.h","timestamp":1714974567741},{"id":"OjL6.h","timestamp":1714974880772},{"id":"2XLa.h","timestamp":1715073949587},{"id":"oQvr.h","timestamp":1715074127598},{"id":"71n3.h","timestamp":1715074956998},{"id":"CH7T.h","timestamp":1715076326803},{"id":"PvGk.h","timestamp":1715160706959},{"id":"QAUR.h","timestamp":1715160721635},{"id":"ZkUE.h","timestamp":1715160840688},{"id":"jaVq.h","timestamp":1715160934282},{"id":"Q42r.h","timestamp":1715161127642},{"id":"gjOA.h","timestamp":1715161311186},{"id":"Zz1F.h","timestamp":1715172633750},{"id":"s5Qx.h","timestamp":1715179848897},{"id":"fc6E.h","timestamp":1715180633453},{"id":"MmAq.h","timestamp":1715180794089},{"id":"6Ugz.h","timestamp":1715182472008},{"id":"eQ0u.h","timestamp":1715184729810},{"id":"WxA7.h","timestamp":1715184838413},{"id":"ESLy.h","timestamp":1715185136123},{"id":"Zz2u.h","timestamp":1715185175793},{"id":"yU7u.h","timestamp":1715185256016},{"id":"RQ17.h","timestamp":1715185371333},{"id":"9Of6.h","timestamp":1715185562339},{"id":"WvlH.h","timestamp":1715185621812},{"id":"irQY.h","timestamp":1715185960854},{"id":"syGb.h","timestamp":1715186148277},{"id":"o7TJ.h","timestamp":1715186225703}]}
|
35
.config/Code/User/History/1114135d/fc6E.h
Normal file
35
.config/Code/User/History/1114135d/fc6E.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
20
.config/Code/User/History/1114135d/gHl8.h
Normal file
20
.config/Code/User/History/1114135d/gHl8.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
int lives;
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
|
||||
protected:
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void draw();
|
||||
|
||||
|
||||
};
|
33
.config/Code/User/History/1114135d/gjOA.h
Normal file
33
.config/Code/User/History/1114135d/gjOA.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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 checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
virtual ~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
19
.config/Code/User/History/1114135d/hGKm.h
Normal file
19
.config/Code/User/History/1114135d/hGKm.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/irQY.h
Normal file
35
.config/Code/User/History/1114135d/irQY.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
32
.config/Code/User/History/1114135d/jaVq.h
Normal file
32
.config/Code/User/History/1114135d/jaVq.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#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;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
15
.config/Code/User/History/1114135d/kDP0.h
Normal file
15
.config/Code/User/History/1114135d/kDP0.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
|
||||
protected:
|
||||
Brick ***bricks;
|
||||
public:
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
};
|
15
.config/Code/User/History/1114135d/nAMH.h
Normal file
15
.config/Code/User/History/1114135d/nAMH.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
|
||||
int score;
|
||||
|
||||
Ball ball;
|
||||
Paddle paddle1;
|
||||
Brick ***bricks;
|
||||
|
||||
public:
|
||||
GameLevel(Ball ball, Paddle paddle);
|
||||
};
|
36
.config/Code/User/History/1114135d/o7TJ.h
Normal file
36
.config/Code/User/History/1114135d/o7TJ.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#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);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
bool checkLevelEnd();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
26
.config/Code/User/History/1114135d/oGBk.h
Normal file
26
.config/Code/User/History/1114135d/oGBk.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food *food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
Food& getFood();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
29
.config/Code/User/History/1114135d/oQvr.h
Normal file
29
.config/Code/User/History/1114135d/oQvr.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball **balls;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel();
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Ball*& getBall1();
|
||||
Ball*& getBall2();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
26
.config/Code/User/History/1114135d/q6JC.h
Normal file
26
.config/Code/User/History/1114135d/q6JC.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food *food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision(Ball& ball);
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
Food* getFood();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
33
.config/Code/User/History/1114135d/s5Qx.h
Normal file
33
.config/Code/User/History/1114135d/s5Qx.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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 checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
36
.config/Code/User/History/1114135d/syGb.h
Normal file
36
.config/Code/User/History/1114135d/syGb.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#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);
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
void checkLevelEnd();
|
||||
|
||||
|
||||
int& getLives();
|
||||
Ball**& getBalls();
|
||||
Paddle& getPaddle();
|
||||
virtual Paddle* getPaddle2();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
||||
#endif
|
18
.config/Code/User/History/1114135d/tOZw.h
Normal file
18
.config/Code/User/History/1114135d/tOZw.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle paddle, Ball ball);
|
||||
void draw();
|
||||
|
||||
|
||||
};
|
27
.config/Code/User/History/1114135d/ur0A.h
Normal file
27
.config/Code/User/History/1114135d/ur0A.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "Ball.h"
|
||||
#include "Paddle.h"
|
||||
#include "Brick.h"
|
||||
|
||||
class GameLevel{
|
||||
int score;
|
||||
int lives;
|
||||
protected:
|
||||
Ball ball;
|
||||
Paddle paddle;
|
||||
Brick ***bricks;
|
||||
Food ***food;
|
||||
public:
|
||||
|
||||
GameLevel(Paddle& paddle, Ball& ball);
|
||||
void draw();
|
||||
void checkBrickCollision();
|
||||
void moveFood();
|
||||
void checkFoodCollision();
|
||||
|
||||
|
||||
Ball& getBall();
|
||||
Paddle& getPaddle();
|
||||
|
||||
~GameLevel();
|
||||
|
||||
};
|
35
.config/Code/User/History/1114135d/yU7u.h
Normal file
35
.config/Code/User/History/1114135d/yU7u.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue