test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
7
.config/Code/User/History/-774ed284/4m1F.cpp
Normal file
7
.config/Code/User/History/-774ed284/4m1F.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include "Food.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
|
||||
|
||||
};
|
14
.config/Code/User/History/-774ed284/5qGU.cpp
Normal file
14
.config/Code/User/History/-774ed284/5qGU.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/-774ed284/CPxr.cpp
Normal file
23
.config/Code/User/History/-774ed284/CPxr.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
ball.setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
ball.setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
16
.config/Code/User/History/-774ed284/FA7b.cpp
Normal file
16
.config/Code/User/History/-774ed284/FA7b.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
27
.config/Code/User/History/-774ed284/MTqC.cpp
Normal file
27
.config/Code/User/History/-774ed284/MTqC.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
for(int i=0;i<3;i++){
|
||||
if(balls[i] != nullptr){
|
||||
balls[i]->setVX(balls[i]->getVX() < 0 ? -3 : 3);
|
||||
balls[i]->setVY(balls[i]->getVY() < 0 ? -3 : 3);
|
||||
}
|
||||
}
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
19
.config/Code/User/History/-774ed284/UVcz.cpp
Normal file
19
.config/Code/User/History/-774ed284/UVcz.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
ball.setVX(3);
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
23
.config/Code/User/History/-774ed284/Vf4o.cpp
Normal file
23
.config/Code/User/History/-774ed284/Vf4o.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2) override{
|
||||
if(Food::counter == 0){
|
||||
ball.setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
ball.setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
23
.config/Code/User/History/-774ed284/Z5od.cpp
Normal file
23
.config/Code/User/History/-774ed284/Z5od.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
if(Food::counter == 0){
|
||||
ball.setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
ball.setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
20
.config/Code/User/History/-774ed284/arwX.cpp
Normal file
20
.config/Code/User/History/-774ed284/arwX.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
ball.setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
ball.setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
1
.config/Code/User/History/-774ed284/entries.json
Normal file
1
.config/Code/User/History/-774ed284/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/BlueFood.cpp","entries":[{"id":"4m1F.cpp","timestamp":1714702932954},{"id":"5qGU.cpp","timestamp":1714703000043},{"id":"FA7b.cpp","timestamp":1714703013086},{"id":"v1ax.cpp","timestamp":1714703034706},{"id":"mj3W.cpp","timestamp":1714889907908},{"id":"UVcz.cpp","timestamp":1714970804583},{"id":"arwX.cpp","timestamp":1714970827670},{"id":"Z5od.cpp","timestamp":1714971024570},{"id":"Vf4o.cpp","timestamp":1714974727318},{"id":"CPxr.cpp","timestamp":1715074762510},{"id":"jj0D.cpp","timestamp":1715074782946},{"id":"pPvS.cpp","timestamp":1715074794973},{"id":"yW64.cpp","timestamp":1715074812438},{"id":"MTqC.cpp","timestamp":1715074825542}]}
|
26
.config/Code/User/History/-774ed284/jj0D.cpp
Normal file
26
.config/Code/User/History/-774ed284/jj0D.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
for(int i=0;i<3;i++){
|
||||
balls[i].setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
balls[i].setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
|
||||
}
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
18
.config/Code/User/History/-774ed284/mj3W.cpp
Normal file
18
.config/Code/User/History/-774ed284/mj3W.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball& ball) override{
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
26
.config/Code/User/History/-774ed284/pPvS.cpp
Normal file
26
.config/Code/User/History/-774ed284/pPvS.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
for(int i=0;i<3;i++){
|
||||
balls[i]->setVX(ball.getVX() < 0 ? -3 : 3);
|
||||
balls[i]->setVY(ball.getVY() < 0 ? -3 : 3);
|
||||
|
||||
}
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
16
.config/Code/User/History/-774ed284/v1ax.cpp
Normal file
16
.config/Code/User/History/-774ed284/v1ax.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
25
.config/Code/User/History/-774ed284/yW64.cpp
Normal file
25
.config/Code/User/History/-774ed284/yW64.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "Food.h"
|
||||
#include "util.h"
|
||||
|
||||
class BlueFood : public Food{
|
||||
|
||||
const int radius = 10;
|
||||
|
||||
public:
|
||||
|
||||
BlueFood(int x, int y) : Food(x, y, colors[BLUE]){}
|
||||
void draw() override{
|
||||
DrawCircle(x, y, radius, color);
|
||||
}
|
||||
void activatePowerup(Paddle& paddle, Ball**& balls) override{
|
||||
if(Food::counter == 0){
|
||||
for(int i=0;i<3;i++){
|
||||
balls[i]->setVX(balls[i]->getVX() < 0 ? -3 : 3);
|
||||
balls[i]->setVY(balls[i]->getVY() < 0 ? -3 : 3);
|
||||
}
|
||||
powerActive = true;
|
||||
}
|
||||
}
|
||||
~BlueFood(){}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue