dotfiles/.config/Code/User/History/-78f4582a/dUC4.cpp
RafayAhmad7548 ab03d5f10c test
2024-06-16 18:53:25 +05:00

22 lines
No EOL
573 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**& balls) override{
// if(Food::counter == 0){
// ball1 = new Ball(ball.getX(), ball.getY(), ball.getRadius(), colors[RED]);
// ball2 = new Ball(ball.getX(), ball.getY(), ball.getRadius(), colors[RED]);
// }
}
~YellowFood(){}
};