dotfiles/.config/Code/User/History/15918d07/qmPD.h

28 lines
497 B
C
Raw Normal View History

2024-06-16 18:53:25 +05:00
#include "Paddle.h"
#include "Ball.h"
#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();
static void count();
static void resetCounter();
~Food();
};