21 lines
No EOL
269 B
C++
21 lines
No EOL
269 B
C++
#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);
|
|
|
|
}; |