23 lines
No EOL
401 B
C++
23 lines
No EOL
401 B
C++
#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();
|
|
|
|
}; |