test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
24
.config/Code/User/History/152a298/0dN7.cpp
Normal file
24
.config/Code/User/History/152a298/0dN7.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
cout<<"Pink\n";
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
14
.config/Code/User/History/152a298/6mcb.cpp
Normal file
14
.config/Code/User/History/152a298/6mcb.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "Food.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food()
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/7Vpr.cpp
Normal file
23
.config/Code/User/History/152a298/7Vpr.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
9
.config/Code/User/History/152a298/92wm.cpp
Normal file
9
.config/Code/User/History/152a298/92wm.cpp
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "Food.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/BkaB.cpp
Normal file
23
.config/Code/User/History/152a298/BkaB.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
20
.config/Code/User/History/152a298/C2GK.cpp
Normal file
20
.config/Code/User/History/152a298/C2GK.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/Dn4q.cpp
Normal file
23
.config/Code/User/History/152a298/Dn4q.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/FSDg.cpp
Normal file
23
.config/Code/User/History/152a298/FSDg.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(62);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
18
.config/Code/User/History/152a298/HriO.cpp
Normal file
18
.config/Code/User/History/152a298/HriO.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
|
||||
};
|
24
.config/Code/User/History/152a298/JWSC.cpp
Normal file
24
.config/Code/User/History/152a298/JWSC.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
cout<<"Pink\n";
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
21
.config/Code/User/History/152a298/Kvu6.cpp
Normal file
21
.config/Code/User/History/152a298/Kvu6.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0) paddle.setWidth(paddle.getWidth()/2);
|
||||
cout<<"Pink\n";
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
20
.config/Code/User/History/152a298/MRog.cpp
Normal file
20
.config/Code/User/History/152a298/MRog.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0) paddle.setWidth(paddle.getWidth()/2);
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
19
.config/Code/User/History/152a298/Y1eT.cpp
Normal file
19
.config/Code/User/History/152a298/Y1eT.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
24
.config/Code/User/History/152a298/eEuH.cpp
Normal file
24
.config/Code/User/History/152a298/eEuH.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
cout<<"Pink\n";
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
1
.config/Code/User/History/152a298/entries.json
Normal file
1
.config/Code/User/History/152a298/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/PinkFood.cpp","entries":[{"id":"92wm.cpp","timestamp":1714702356856},{"id":"ycrp.cpp","timestamp":1714702391376},{"id":"mnwf.cpp","timestamp":1714702528494},{"id":"6mcb.cpp","timestamp":1714702557310},{"id":"pTnC.cpp","timestamp":1714702589860},{"id":"shJ6.cpp","timestamp":1714702605583},{"id":"wk7v.cpp","timestamp":1714702617309},{"id":"HriO.cpp","timestamp":1714702767837},{"id":"fEf5.cpp","timestamp":1714702783116},{"id":"sxRh.cpp","timestamp":1714702810559},{"id":"gIgX.cpp","timestamp":1714702826656},{"id":"Y1eT.cpp","timestamp":1714889914525},{"id":"C2GK.cpp","timestamp":1714890720340},{"id":"MRog.cpp","timestamp":1714890731684},{"id":"Kvu6.cpp","timestamp":1714890836318},{"id":"JWSC.cpp","timestamp":1714891000695},{"id":"gVwi.cpp","timestamp":1714891720329},{"id":"0dN7.cpp","timestamp":1714896709378},{"id":"Dn4q.cpp","timestamp":1714896947942},{"id":"eEuH.cpp","timestamp":1714897047302},{"id":"7Vpr.cpp","timestamp":1714971173116},{"id":"BkaB.cpp","timestamp":1714974848165},{"id":"kwQq.cpp","timestamp":1715074738388},{"id":"FSDg.cpp","timestamp":1715138530961},{"id":"zl9I.cpp","timestamp":1715146190614},{"id":"gISa.cpp","timestamp":1715146398974},{"id":"y4VX.cpp","timestamp":1715146439739},{"id":"mnK6.cpp","timestamp":1715146533229},{"id":"nFVX.cpp","timestamp":1715147325338}]}
|
18
.config/Code/User/History/152a298/fEf5.cpp
Normal file
18
.config/Code/User/History/152a298/fEf5.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/gISa.cpp
Normal file
23
.config/Code/User/History/152a298/gISa.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
// powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
17
.config/Code/User/History/152a298/gIgX.cpp
Normal file
17
.config/Code/User/History/152a298/gIgX.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
25
.config/Code/User/History/152a298/gVwi.cpp
Normal file
25
.config/Code/User/History/152a298/gVwi.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
cout<<"Pink\n";
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
cout<<"Pink\n";
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/kwQq.cpp
Normal file
23
.config/Code/User/History/152a298/kwQq.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/mnK6.cpp
Normal file
23
.config/Code/User/History/152a298/mnK6.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
if(paddle.getWidth() > 62) paddle.setWidth(paddle.getWidth()/2);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
11
.config/Code/User/History/152a298/mnwf.cpp
Normal file
11
.config/Code/User/History/152a298/mnwf.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "Food.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
22
.config/Code/User/History/152a298/nFVX.cpp
Normal file
22
.config/Code/User/History/152a298/nFVX.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
if(paddle.getWidth() > 62) paddle.setWidth(paddle.getWidth()/2);
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
15
.config/Code/User/History/152a298/pTnC.cpp
Normal file
15
.config/Code/User/History/152a298/pTnC.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
15
.config/Code/User/History/152a298/shJ6.cpp
Normal file
15
.config/Code/User/History/152a298/shJ6.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
18
.config/Code/User/History/152a298/sxRh.cpp
Normal file
18
.config/Code/User/History/152a298/sxRh.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
|
||||
};
|
15
.config/Code/User/History/152a298/wk7v.cpp
Normal file
15
.config/Code/User/History/152a298/wk7v.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y, int dimension) : dimension(dimension), Food(x, y, colors[PINK]){}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
22
.config/Code/User/History/152a298/y4VX.cpp
Normal file
22
.config/Code/User/History/152a298/y4VX.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
if(paddle.getWidth() > 62) paddle.setWidth(paddle.getWidth()/2);
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
11
.config/Code/User/History/152a298/ycrp.cpp
Normal file
11
.config/Code/User/History/152a298/ycrp.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "Food.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
int dimension;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/152a298/zl9I.cpp
Normal file
23
.config/Code/User/History/152a298/zl9I.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class PinkFood : public Food{
|
||||
|
||||
const int dimension = 20;
|
||||
|
||||
public:
|
||||
|
||||
PinkFood(int x, int y) : Food(x, y, colors[PINK]){}
|
||||
void draw() override{
|
||||
DrawSquare(x, y, dimension, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
paddle.setWidth(62);
|
||||
// powerActive = true;
|
||||
}
|
||||
}
|
||||
~PinkFood(){}
|
||||
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue