test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
28
.config/Code/User/History/15918d07/0hsk.h
Normal file
28
.config/Code/User/History/15918d07/0hsk.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball& ball);
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/2Yna.h
Normal file
14
.config/Code/User/History/15918d07/2Yna.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
// #pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
};
|
13
.config/Code/User/History/15918d07/4UVw.h
Normal file
13
.config/Code/User/History/15918d07/4UVw.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
class Food{
|
||||
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/7WXn.h
Normal file
14
.config/Code/User/History/15918d07/7WXn.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
};
|
15
.config/Code/User/History/15918d07/88Zc.h
Normal file
15
.config/Code/User/History/15918d07/88Zc.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw();
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/8lPp.h
Normal file
28
.config/Code/User/History/15918d07/8lPp.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball**& balls) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball**& balls);
|
||||
~Food();
|
||||
|
||||
};
|
21
.config/Code/User/History/15918d07/9fOD.h
Normal file
21
.config/Code/User/History/15918d07/9fOD.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/ASpO.h
Normal file
14
.config/Code/User/History/15918d07/ASpO.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/Dwqi.h
Normal file
28
.config/Code/User/History/15918d07/Dwqi.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball& ball, Ball& ball1, Ball& ball2);
|
||||
~Food();
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/FJ4n.h
Normal file
28
.config/Code/User/History/15918d07/FJ4n.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup();
|
||||
~Food();
|
||||
|
||||
};
|
13
.config/Code/User/History/15918d07/Hqf6.h
Normal file
13
.config/Code/User/History/15918d07/Hqf6.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
25
.config/Code/User/History/15918d07/HyM2.h
Normal file
25
.config/Code/User/History/15918d07/HyM2.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
|
||||
~Food();
|
||||
|
||||
};
|
18
.config/Code/User/History/15918d07/Kh9A.h
Normal file
18
.config/Code/User/History/15918d07/Kh9A.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup() = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/LQ8r.h
Normal file
14
.config/Code/User/History/15918d07/LQ8r.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
31
.config/Code/User/History/15918d07/Mt4Z.h
Normal file
31
.config/Code/User/History/15918d07/Mt4Z.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef FOOD_H
|
||||
#define FOOD_H
|
||||
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball**& balls) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball**& balls);
|
||||
~Food();
|
||||
|
||||
};
|
||||
#endif
|
7
.config/Code/User/History/15918d07/NnjQ.h
Normal file
7
.config/Code/User/History/15918d07/NnjQ.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
class Food{
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
19
.config/Code/User/History/15918d07/NuuP.h
Normal file
19
.config/Code/User/History/15918d07/NuuP.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
13
.config/Code/User/History/15918d07/O7R3.h
Normal file
13
.config/Code/User/History/15918d07/O7R3.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
|
||||
|
||||
};
|
22
.config/Code/User/History/15918d07/PIzm.h
Normal file
22
.config/Code/User/History/15918d07/PIzm.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
bool getPowerActive();
|
||||
~Food();
|
||||
|
||||
};
|
12
.config/Code/User/History/15918d07/PXY8.h
Normal file
12
.config/Code/User/History/15918d07/PXY8.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
class Food{
|
||||
|
||||
int x;
|
||||
int y;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y) : x(x), y(y){}
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/Pk2X.h
Normal file
28
.config/Code/User/History/15918d07/Pk2X.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetCounter();
|
||||
~Food();
|
||||
|
||||
};
|
13
.config/Code/User/History/15918d07/PqBZ.h
Normal file
13
.config/Code/User/History/15918d07/PqBZ.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/Rieu.h
Normal file
14
.config/Code/User/History/15918d07/Rieu.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
};
|
19
.config/Code/User/History/15918d07/USQd.h
Normal file
19
.config/Code/User/History/15918d07/USQd.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter = 0;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
25
.config/Code/User/History/15918d07/YHz8.h
Normal file
25
.config/Code/User/History/15918d07/YHz8.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
|
||||
~Food();
|
||||
|
||||
};
|
18
.config/Code/User/History/15918d07/Z3tj.h
Normal file
18
.config/Code/User/History/15918d07/Z3tj.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
void activatePowerup() = 0;
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
17
.config/Code/User/History/15918d07/aqz7.h
Normal file
17
.config/Code/User/History/15918d07/aqz7.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/bmVb.h
Normal file
14
.config/Code/User/History/15918d07/bmVb.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
bool fall();
|
||||
~Food();
|
||||
|
||||
};
|
18
.config/Code/User/History/15918d07/bn2q.h
Normal file
18
.config/Code/User/History/15918d07/bn2q.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
void activatePowerup();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
15
.config/Code/User/History/15918d07/cXT8.h
Normal file
15
.config/Code/User/History/15918d07/cXT8.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
13
.config/Code/User/History/15918d07/eCCc.h
Normal file
13
.config/Code/User/History/15918d07/eCCc.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
class Food{
|
||||
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color) : x(x), y(y), color(color){}
|
||||
|
||||
|
||||
};
|
26
.config/Code/User/History/15918d07/ehsl.h
Normal file
26
.config/Code/User/History/15918d07/ehsl.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetCounter();
|
||||
~Food();
|
||||
|
||||
};
|
1
.config/Code/User/History/15918d07/entries.json
Normal file
1
.config/Code/User/History/15918d07/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/Food.h","entries":[{"id":"NnjQ.h","timestamp":1714700721096},{"id":"qBbc.h","timestamp":1714700739209},{"id":"PXY8.h","timestamp":1714700769761},{"id":"eCCc.h","timestamp":1714700792384},{"id":"4UVw.h","timestamp":1714700930319},{"id":"O7R3.h","timestamp":1714701240753},{"id":"ASpO.h","timestamp":1714701329619},{"id":"vo0P.h","timestamp":1714702030597},{"id":"u8OH.h","timestamp":1714702435932},{"id":"Hqf6.h","timestamp":1714702462412},{"id":"LQ8r.h","timestamp":1714702517621},{"id":"88Zc.h","timestamp":1714702648362},{"id":"cXT8.h","timestamp":1714702703791},{"id":"Rieu.h","timestamp":1714729379018},{"id":"qM1c.h","timestamp":1714733507965},{"id":"PqBZ.h","timestamp":1714740441554},{"id":"2Yna.h","timestamp":1714740472885},{"id":"7WXn.h","timestamp":1714740777985},{"id":"bmVb.h","timestamp":1714815434669},{"id":"xnxP.h","timestamp":1714822665335},{"id":"aqz7.h","timestamp":1714823111072},{"id":"bn2q.h","timestamp":1714888536266},{"id":"Z3tj.h","timestamp":1714888560907},{"id":"Kh9A.h","timestamp":1714888574382},{"id":"r0UR.h","timestamp":1714888679726},{"id":"NuuP.h","timestamp":1714888803953},{"id":"USQd.h","timestamp":1714888835840},{"id":"gtba.h","timestamp":1714888857723},{"id":"nprB.h","timestamp":1714889163466},{"id":"9fOD.h","timestamp":1714889174606},{"id":"PIzm.h","timestamp":1714889342434},{"id":"sKGN.h","timestamp":1714889382707},{"id":"v2ku.h","timestamp":1714889426323},{"id":"HyM2.h","timestamp":1714889450273},{"id":"YHz8.h","timestamp":1714889476813},{"id":"yRxi.h","timestamp":1714889500819},{"id":"ehsl.h","timestamp":1714889718927},{"id":"qmPD.h","timestamp":1714889990807},{"id":"Pk2X.h","timestamp":1714890014950},{"id":"FJ4n.h","timestamp":1714890211089},{"id":"0hsk.h","timestamp":1714890282501},{"id":"Dwqi.h","timestamp":1714974593237},{"id":"r3Ub.h","timestamp":1714974662108},{"id":"wGzL.h","timestamp":1714974693491},{"id":"m9LQ.h","timestamp":1714974707738},{"id":"k9hl.h","timestamp":1715074685358},{"id":"8lPp.h","timestamp":1715074697885},{"id":"Mt4Z.h","timestamp":1715141580684},{"id":"sSz7.h","timestamp":1715154841873}]}
|
20
.config/Code/User/History/15918d07/gtba.h
Normal file
20
.config/Code/User/History/15918d07/gtba.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/k9hl.h
Normal file
28
.config/Code/User/History/15918d07/k9hl.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball**& balls);
|
||||
~Food();
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/m9LQ.h
Normal file
28
.config/Code/User/History/15918d07/m9LQ.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2);
|
||||
~Food();
|
||||
|
||||
};
|
21
.config/Code/User/History/15918d07/nprB.h
Normal file
21
.config/Code/User/History/15918d07/nprB.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool activePower;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
9
.config/Code/User/History/15918d07/qBbc.h
Normal file
9
.config/Code/User/History/15918d07/qBbc.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
class Food{
|
||||
|
||||
int x;
|
||||
int y;
|
||||
|
||||
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/qM1c.h
Normal file
14
.config/Code/User/History/15918d07/qM1c.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
// #pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
void fall();
|
||||
~Food();
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/qmPD.h
Normal file
28
.config/Code/User/History/15918d07/qmPD.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetCounter();
|
||||
~Food();
|
||||
|
||||
};
|
18
.config/Code/User/History/15918d07/r0UR.h
Normal file
18
.config/Code/User/History/15918d07/r0UR.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/r3Ub.h
Normal file
28
.config/Code/User/History/15918d07/r3Ub.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2);
|
||||
~Food();
|
||||
|
||||
};
|
22
.config/Code/User/History/15918d07/sKGN.h
Normal file
22
.config/Code/User/History/15918d07/sKGN.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static bool getPowerActive();
|
||||
~Food();
|
||||
|
||||
};
|
31
.config/Code/User/History/15918d07/sSz7.h
Normal file
31
.config/Code/User/History/15918d07/sSz7.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef FOOD_H
|
||||
#define FOOD_H
|
||||
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball**& balls) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball**& balls);
|
||||
~Food();
|
||||
|
||||
};
|
||||
#endif
|
13
.config/Code/User/History/15918d07/u8OH.h
Normal file
13
.config/Code/User/History/15918d07/u8OH.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
const float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
23
.config/Code/User/History/15918d07/v2ku.h
Normal file
23
.config/Code/User/History/15918d07/v2ku.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
~Food();
|
||||
|
||||
};
|
14
.config/Code/User/History/15918d07/vo0P.h
Normal file
14
.config/Code/User/History/15918d07/vo0P.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
~Food();
|
||||
|
||||
|
||||
};
|
28
.config/Code/User/History/15918d07/wGzL.h
Normal file
28
.config/Code/User/History/15918d07/wGzL.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "Paddle.h"
|
||||
#include "Ball.h"
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
static void resetPowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2);
|
||||
~Food();
|
||||
|
||||
};
|
17
.config/Code/User/History/15918d07/xnxP.h
Normal file
17
.config/Code/User/History/15918d07/xnxP.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
bool fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
~Food();
|
||||
|
||||
};
|
25
.config/Code/User/History/15918d07/yRxi.h
Normal file
25
.config/Code/User/History/15918d07/yRxi.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
class Food{
|
||||
protected:
|
||||
int x;
|
||||
int y;
|
||||
float *color;
|
||||
static int counter;
|
||||
static bool powerActive;
|
||||
public:
|
||||
|
||||
Food(int x, int y, float *color);
|
||||
virtual void draw() = 0;
|
||||
virtual void activatePowerup(Paddle& paddle, Ball& ball) = 0;
|
||||
void fall();
|
||||
|
||||
int getX();
|
||||
int getY();
|
||||
static int getCounter();
|
||||
static bool getPowerActive();
|
||||
|
||||
static void count();
|
||||
~Food();
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue