dotfiles/.config/Code/User/History/15918d07/8lPp.h
RafayAhmad7548 ab03d5f10c test
2024-06-16 18:53:25 +05:00

28 lines
No EOL
529 B
C++

#pragma once
#include "Paddle.h"
#include "Ball.h"
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**& balls) = 0;
void fall();
int getX();
int getY();
static int getCounter();
static bool getPowerActive();
static void count();
static void resetPowerup(Paddle& paddle, Ball**& balls);
~Food();
};