dotfiles/.config/Code/User/History/-89d9d7e/g4YJ.cpp
RafayAhmad7548 ab03d5f10c test
2024-06-16 18:53:25 +05:00

28 lines
No EOL
454 B
C++

#include "Food.h"
int Food::counter = 0;
bool Food::powerActive = false;
Food::Food(int x, int y, float *color) : x(x), y(y), color(color){}
void Food::fall(){
if(y > -20) y -= 5;
// else return true;
// return false;
}
int Food::getX(){
return x;
}
int Food::getY(){
return y;
}
int Food::getCounter(){
return counter;
}
bool Food::getPowerActive(){
return powerActive;
}
void Food::count(){
count++;
}
Food::~Food(){}