19 lines
375 B
C++
19 lines
375 B
C++
![]() |
#include "Food.h"
|
||
|
#include "util.h"
|
||
|
|
||
|
class YellowFood : public Food{
|
||
|
|
||
|
const int dimension = 20;
|
||
|
|
||
|
public:
|
||
|
|
||
|
YellowFood(int x, int y) : Food(x, y, colors[YELLOW]){}
|
||
|
void draw() override{
|
||
|
DrawSquare(x, y, dimension, color);
|
||
|
}
|
||
|
void activatePowerup(Paddle& paddle, Ball& ball, Ball*& ball1, Ball*& ball2) override{
|
||
|
|
||
|
}
|
||
|
~YellowFood(){}
|
||
|
|
||
|
};
|