This commit is contained in:
RafayAhmad7548 2024-06-16 18:53:25 +05:00
parent 37776af5db
commit ab03d5f10c
4045 changed files with 286212 additions and 3 deletions

View file

@ -0,0 +1,30 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
Food* getFood();
~Brick();
};

View file

@ -0,0 +1,18 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
void checkCollision(Ball& ball);
};

View file

@ -0,0 +1,15 @@
class Brick{
int strength;
float *color;
public:
Brick(int strength);
};

View file

@ -0,0 +1,30 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
int checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
Food* getFood();
~Brick();
};

View file

@ -0,0 +1,15 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
};

View file

@ -0,0 +1,19 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw();
};

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 65;
const int height = 18;
int x;
int y;
int strength;
float *color;
public:
Brick(float *color, int strength);
void draw(int row, int col);
bool checkCollision(Ball& ball);
};

View file

@ -0,0 +1,30 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
void checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
Food* getFood();
~Brick();
};

View file

@ -0,0 +1,15 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw();
};

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 65;
const int height = 18;
int x;
int y;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
void checkCollision(Ball& ball);
};

View file

@ -0,0 +1,25 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
float* getColor();
~Brick();
};

View file

@ -0,0 +1,25 @@
#include "Ball.h"
#include "Food.cpp"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
~Brick();
};

View file

@ -0,0 +1,29 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
~Brick();
};

View file

@ -0,0 +1,27 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
~Brick();
};

View file

@ -0,0 +1,14 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw();
};

View file

@ -0,0 +1,14 @@
class Brick{
int strength;
float *color;
public:
Brick(int strength);
};

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick(float *color, int strength);
void draw(int row, int col);
bool checkCollision(Ball& ball);
};

View file

@ -0,0 +1,25 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
~Brick();
};

View file

@ -0,0 +1,18 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(int strength);
};

View file

@ -0,0 +1,11 @@
class Brick{
int strength;
float *color;
};

View file

@ -0,0 +1 @@
{"version":1,"resource":"file:///home/rafayahmad/Stuff/OOP/Project/Brick.h","entries":[{"id":"stDg.h","timestamp":1714295329111},{"id":"dRNM.h","timestamp":1714295381096},{"id":"UrWv.h","timestamp":1714295433483},{"id":"5hrE.h","timestamp":1714407399973},{"id":"atCZ.h","timestamp":1714407441929},{"id":"kvE2.h","timestamp":1714407733327},{"id":"C73W.h","timestamp":1714407907072},{"id":"UUgh.h","timestamp":1714407969889},{"id":"LRbd.h","timestamp":1714407983202},{"id":"iqvR.h","timestamp":1714408243218},{"id":"AZ2p.h","timestamp":1714445821627},{"id":"3Acd.h","timestamp":1714455985221},{"id":"qKKR.h","timestamp":1714456000232},{"id":"gSr2.h","timestamp":1714456319243},{"id":"NPrP.h","timestamp":1714468987798},{"id":"haDF.h","timestamp":1714535958559},{"id":"CX4P.h","timestamp":1714541057048},{"id":"XC4f.h","timestamp":1714615998811},{"id":"y2Pf.h","timestamp":1714616334762},{"id":"jzr4.h","timestamp":1714700401965},{"id":"aMjI.h","timestamp":1714701413251},{"id":"PRfo.h","timestamp":1714701957994},{"id":"t0fk.h","timestamp":1714702018320},{"id":"oky5.h","timestamp":1714729233430},{"id":"NcR2.h","timestamp":1714729486275},{"id":"UJlK.h","timestamp":1714729628359},{"id":"RwtS.h","timestamp":1714731364021},{"id":"mwB9.h","timestamp":1714731793415},{"id":"9shj.h","timestamp":1714739604888},{"id":"KM7p.h","timestamp":1714823984541},{"id":"2pPN.h","timestamp":1714823999454},{"id":"sm74.h","timestamp":1715076291907}]}

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 65;
const int height = 18;
int x;
int y;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
void checkCollision(Ball& ball);
};

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 65;
const int height = 18;
int x;
int y;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
bool checkCollision(Ball& ball);
};

View file

@ -0,0 +1,15 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
};

View file

@ -0,0 +1,22 @@
#include "Ball.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
~Brick();
};

View file

@ -0,0 +1,18 @@
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
};

View file

@ -0,0 +1,30 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
Food* getFood();
~Brick();
};

View file

@ -0,0 +1,23 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
~Brick();
};

View file

@ -0,0 +1,19 @@
#include "Ball.h"
class Brick{
const int width = 65;
const int height = 18;
int strength;
float *color;
public:
Brick(float *color);
void draw(int row, int col);
void checkCollision(Ball& ball);
};

View file

@ -0,0 +1,34 @@
#ifndef BRICK_H
#define BRICK_H
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
int getX();
int getY();
float* getColor();
Food* getFood();
~Brick();
};
#endif

View file

@ -0,0 +1,9 @@
class Brick{
};

View file

@ -0,0 +1,25 @@
#include "Ball.h"
#include "Food.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
Food *food;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
~Brick();
};

View file

@ -0,0 +1,21 @@
#include "Ball.h"
class Brick{
const int width = 70;
const int height = 20;
int x;
int y;
int strength;
float *color;
public:
Brick();
void draw(int row, int col);
bool checkCollision(Ball& ball);
};