test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
15
.config/Code/User/History/a5c4c11/0Ulm.cpp
Normal file
15
.config/Code/User/History/a5c4c11/0Ulm.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/0bI2.cpp
Normal file
28
.config/Code/User/History/a5c4c11/0bI2.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(j<5) bricks[j][i] = new Brick(colors[GREEN]);
|
||||
else if(j<10) bricks[j][i] = new Brick(colors[PINK]);
|
||||
else if(j<15) bricks[j][i] = new Brick(colors[BLUE]);
|
||||
else if(j<20) bricks[j][i] = new Brick(colors[RED]);
|
||||
else bricks[j][i] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
19
.config/Code/User/History/a5c4c11/0sbp.cpp
Normal file
19
.config/Code/User/History/a5c4c11/0sbp.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(1);
|
||||
else if(i<10) bricks[i][j] = new Brick(2);
|
||||
else if(i<15) bricks[i][j] = new Brick(2);
|
||||
else if(i<20) bricks[i][j] = new Brick(3);
|
||||
else bricks[i][j] = new Brick(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
20
.config/Code/User/History/a5c4c11/1jzT.cpp
Normal file
20
.config/Code/User/History/a5c4c11/1jzT.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
32
.config/Code/User/History/a5c4c11/2JsP.cpp
Normal file
32
.config/Code/User/History/a5c4c11/2JsP.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void checkCollision(Ball& ball){
|
||||
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/2z1W.cpp
Normal file
28
.config/Code/User/History/a5c4c11/2z1W.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
13
.config/Code/User/History/a5c4c11/5b5F.cpp
Normal file
13
.config/Code/User/History/a5c4c11/5b5F.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
bricks = new Brick**[15];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/5nIW.cpp
Normal file
28
.config/Code/User/History/a5c4c11/5nIW.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
17
.config/Code/User/History/a5c4c11/5sk5.cpp
Normal file
17
.config/Code/User/History/a5c4c11/5sk5.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef LEVEL1_H
|
||||
#define LEVEL1_H
|
||||
|
||||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
public:
|
||||
Level1(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
28
.config/Code/User/History/a5c4c11/6Bsi.cpp
Normal file
28
.config/Code/User/History/a5c4c11/6Bsi.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[j][i] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/7AWp.cpp
Normal file
28
.config/Code/User/History/a5c4c11/7AWp.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int j=0;j<25;j++){
|
||||
for(int i=0;i<15;i++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/7PF7.cpp
Normal file
28
.config/Code/User/History/a5c4c11/7PF7.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
24
.config/Code/User/History/a5c4c11/7R3q.cpp
Normal file
24
.config/Code/User/History/a5c4c11/7R3q.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
25
.config/Code/User/History/a5c4c11/8lz4.cpp
Normal file
25
.config/Code/User/History/a5c4c11/8lz4.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball getBall(){
|
||||
return ball;
|
||||
}
|
||||
|
||||
|
||||
};
|
24
.config/Code/User/History/a5c4c11/9UqC.cpp
Normal file
24
.config/Code/User/History/a5c4c11/9UqC.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/D19P.cpp
Normal file
28
.config/Code/User/History/a5c4c11/D19P.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/DZ52.cpp
Normal file
28
.config/Code/User/History/a5c4c11/DZ52.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[j][i] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[j][i] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[j][i] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[j][i] = new Brick(colors[RED]);
|
||||
else bricks[j][i] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/E5y1.cpp
Normal file
28
.config/Code/User/History/a5c4c11/E5y1.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
16
.config/Code/User/History/a5c4c11/ErIQ.cpp
Normal file
16
.config/Code/User/History/a5c4c11/ErIQ.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1() : GameLevel(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
19
.config/Code/User/History/a5c4c11/IEr3.cpp
Normal file
19
.config/Code/User/History/a5c4c11/IEr3.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(1);
|
||||
if(i<10) bricks[i][j] = new Brick(1);
|
||||
if(i<15) bricks[i][j] = new Brick(1);
|
||||
if(i<20) bricks[i][j] = new Brick(1);
|
||||
if(i<25) bricks[i][j] = new Brick(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
19
.config/Code/User/History/a5c4c11/KEl8.cpp
Normal file
19
.config/Code/User/History/a5c4c11/KEl8.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(1);
|
||||
else if(i<10) bricks[i][j] = new Brick(1);
|
||||
else if(i<15) bricks[i][j] = new Brick(2);
|
||||
else if(i<20) bricks[i][j] = new Brick(3);
|
||||
else bricks[i][j] = new Brick(4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
16
.config/Code/User/History/a5c4c11/O0Ib.cpp
Normal file
16
.config/Code/User/History/a5c4c11/O0Ib.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
15
.config/Code/User/History/a5c4c11/OWXF.cpp
Normal file
15
.config/Code/User/History/a5c4c11/OWXF.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/P7ky.cpp
Normal file
28
.config/Code/User/History/a5c4c11/P7ky.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
29
.config/Code/User/History/a5c4c11/PIwK.cpp
Normal file
29
.config/Code/User/History/a5c4c11/PIwK.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick(colors[GREEN]);
|
||||
// if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
// else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
// else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
// else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
// else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
12
.config/Code/User/History/a5c4c11/SSjF.cpp
Normal file
12
.config/Code/User/History/a5c4c11/SSjF.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
public:
|
||||
Level1(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
28
.config/Code/User/History/a5c4c11/So4t.cpp
Normal file
28
.config/Code/User/History/a5c4c11/So4t.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int j=0;j<25;j++){
|
||||
for(int i=0;i<15;i++){
|
||||
if(j<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(j<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(j<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(j<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/Ts5T.cpp
Normal file
28
.config/Code/User/History/a5c4c11/Ts5T.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN], 1);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK], 2);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
9
.config/Code/User/History/a5c4c11/U4YI.cpp
Normal file
9
.config/Code/User/History/a5c4c11/U4YI.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/UmF1.cpp
Normal file
28
.config/Code/User/History/a5c4c11/UmF1.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
19
.config/Code/User/History/a5c4c11/Uwhu.cpp
Normal file
19
.config/Code/User/History/a5c4c11/Uwhu.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(1);
|
||||
else if(i<10) bricks[i][j] = new Brick(1);
|
||||
else if(i<15) bricks[i][j] = new Brick(1);
|
||||
else if(i<20) bricks[i][j] = new Brick(1);
|
||||
else bricks[i][j] = new Brick(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/W3YW.cpp
Normal file
28
.config/Code/User/History/a5c4c11/W3YW.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
13
.config/Code/User/History/a5c4c11/Wh2o.cpp
Normal file
13
.config/Code/User/History/a5c4c11/Wh2o.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
bricks = new Brick**[15];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/YzjU.cpp
Normal file
28
.config/Code/User/History/a5c4c11/YzjU.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[j][i] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[j][i] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[j][i] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[j][i] = new Brick(colors[RED]);
|
||||
else bricks[j][i] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
12
.config/Code/User/History/a5c4c11/axH9.cpp
Normal file
12
.config/Code/User/History/a5c4c11/axH9.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
public:
|
||||
Level1(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
29
.config/Code/User/History/a5c4c11/b1tx.cpp
Normal file
29
.config/Code/User/History/a5c4c11/b1tx.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
// bricks[i][j] = new Brick(colors[GREEN]);
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/bEz9.cpp
Normal file
28
.config/Code/User/History/a5c4c11/bEz9.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/c2vE.cpp
Normal file
28
.config/Code/User/History/a5c4c11/c2vE.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/cP7E.cpp
Normal file
28
.config/Code/User/History/a5c4c11/cP7E.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN], 1);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK], 2);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE], 3);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED], 3);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW], 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
20
.config/Code/User/History/a5c4c11/d2jy.cpp
Normal file
20
.config/Code/User/History/a5c4c11/d2jy.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
1
.config/Code/User/History/a5c4c11/entries.json
Normal file
1
.config/Code/User/History/a5c4c11/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/Level1.cpp","entries":[{"id":"5b5F.cpp","timestamp":1714404556663},{"id":"Wh2o.cpp","timestamp":1714404581056},{"id":"vUrq.cpp","timestamp":1714404674530},{"id":"o0CX.cpp","timestamp":1714404709260},{"id":"U4YI.cpp","timestamp":1714405208562},{"id":"pTtQ.cpp","timestamp":1714405266208},{"id":"OWXF.cpp","timestamp":1714407377766},{"id":"0Ulm.cpp","timestamp":1714407393133},{"id":"qJVT.cpp","timestamp":1714407552938},{"id":"IEr3.cpp","timestamp":1714407589808},{"id":"Uwhu.cpp","timestamp":1714407607098},{"id":"KEl8.cpp","timestamp":1714407618881},{"id":"0sbp.cpp","timestamp":1714407647611},{"id":"vmS5.cpp","timestamp":1714407763887},{"id":"tWtP.cpp","timestamp":1714407775356},{"id":"1jzT.cpp","timestamp":1714407803906},{"id":"d2jy.cpp","timestamp":1714444204404},{"id":"8lz4.cpp","timestamp":1714444245433},{"id":"c2vE.cpp","timestamp":1714444263476},{"id":"E5y1.cpp","timestamp":1714444364167},{"id":"bEz9.cpp","timestamp":1714445138412},{"id":"oMsi.cpp","timestamp":1714445191062},{"id":"P7ky.cpp","timestamp":1714445209439},{"id":"DZ52.cpp","timestamp":1714445750224},{"id":"UmF1.cpp","timestamp":1714445807281},{"id":"6Bsi.cpp","timestamp":1714445854687},{"id":"kfAR.cpp","timestamp":1714445879291},{"id":"YzjU.cpp","timestamp":1714446175203},{"id":"0bI2.cpp","timestamp":1714446208593},{"id":"W3YW.cpp","timestamp":1714446225143},{"id":"7AWp.cpp","timestamp":1714446355093},{"id":"So4t.cpp","timestamp":1714446382826},{"id":"7PF7.cpp","timestamp":1714446494902},{"id":"PIwK.cpp","timestamp":1714446816431},{"id":"b1tx.cpp","timestamp":1714447061006},{"id":"D19P.cpp","timestamp":1714456522429},{"id":"2z1W.cpp","timestamp":1714456975527},{"id":"2JsP.cpp","timestamp":1714470333938},{"id":"5nIW.cpp","timestamp":1714470344013},{"id":"Ts5T.cpp","timestamp":1714541077642},{"id":"cP7E.cpp","timestamp":1714541088719},{"id":"9UqC.cpp","timestamp":1714616548746},{"id":"7R3q.cpp","timestamp":1714701978667},{"id":"O0Ib.cpp","timestamp":1714729907646},{"id":"ErIQ.cpp","timestamp":1715074409261},{"id":"qKVD.cpp","timestamp":1715074419637},{"id":"rmyC.cpp","timestamp":1715077719713},{"id":"5sk5.cpp","timestamp":1715147545873},{"id":"axH9.cpp","timestamp":1715153227914},{"id":"SSjF.cpp","timestamp":1715165862098}]}
|
28
.config/Code/User/History/a5c4c11/kfAR.cpp
Normal file
28
.config/Code/User/History/a5c4c11/kfAR.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(i<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
14
.config/Code/User/History/a5c4c11/o0CX.cpp
Normal file
14
.config/Code/User/History/a5c4c11/o0CX.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
bricks = new Brick**[15];
|
||||
for(int i=0;i<15;i++){
|
||||
bricks[i] = new Brick*[15];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/a5c4c11/oMsi.cpp
Normal file
28
.config/Code/User/History/a5c4c11/oMsi.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<15;i++){
|
||||
for(int j=0;j<25;j++){
|
||||
if(j<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(j<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(j<15) bricks[i][j] = new Brick(colors[BLUE]);
|
||||
else if(j<20) bricks[i][j] = new Brick(colors[RED]);
|
||||
else bricks[i][j] = new Brick(colors[YELLOW]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ball& getBall(){
|
||||
return ball;
|
||||
}
|
||||
Paddle& getPaddle(){
|
||||
return paddle;
|
||||
}
|
||||
|
||||
|
||||
};
|
11
.config/Code/User/History/a5c4c11/pTtQ.cpp
Normal file
11
.config/Code/User/History/a5c4c11/pTtQ.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
15
.config/Code/User/History/a5c4c11/qJVT.cpp
Normal file
15
.config/Code/User/History/a5c4c11/qJVT.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
16
.config/Code/User/History/a5c4c11/qKVD.cpp
Normal file
16
.config/Code/User/History/a5c4c11/qKVD.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
20
.config/Code/User/History/a5c4c11/rmyC.cpp
Normal file
20
.config/Code/User/History/a5c4c11/rmyC.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef LEVEL1_H
|
||||
#define LEVEL1_H
|
||||
|
||||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
public:
|
||||
|
||||
Level1(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
bricks[i][j] = new Brick();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
#endif
|
20
.config/Code/User/History/a5c4c11/tWtP.cpp
Normal file
20
.config/Code/User/History/a5c4c11/tWtP.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(colors[PINK]);
|
||||
else if(i<15) bricks[i][j] = new Brick(2);
|
||||
else if(i<20) bricks[i][j] = new Brick(3);
|
||||
else bricks[i][j] = new Brick(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
16
.config/Code/User/History/a5c4c11/vUrq.cpp
Normal file
16
.config/Code/User/History/a5c4c11/vUrq.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "GameLevel.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
bricks = new Brick**[15];
|
||||
for(int i=0;i<15;i++){
|
||||
bricks[i] = new Brick*[15];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
20
.config/Code/User/History/a5c4c11/vmS5.cpp
Normal file
20
.config/Code/User/History/a5c4c11/vmS5.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "GameLevel.h"
|
||||
#include "util.h"
|
||||
|
||||
class Level1 : public GameLevel{
|
||||
|
||||
|
||||
Level1(Paddle paddle, Ball ball) : GameLevel(paddle, ball){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5) bricks[i][j] = new Brick(colors[GREEN]);
|
||||
else if(i<10) bricks[i][j] = new Brick(2);
|
||||
else if(i<15) bricks[i][j] = new Brick(2);
|
||||
else if(i<20) bricks[i][j] = new Brick(3);
|
||||
else bricks[i][j] = new Brick(3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue