1 #include "Food.h" 2 3 class Food; 4 Food(char * filename,int x,int y,int speed,AnimationFactory * af)5Food::Food(char *filename, int x, int y, int speed,AnimationFactory* af): 6 Ghost1(filename, x, y, speed, af){ 7 this->alive = true; 8 }; 9 ~Food()10Food::~Food(){ 11 // int i; 12 // for(i=0; i<frames.size(); i++){ 13 // SDL_FreeSurface(frames[i]); 14 // } 15 }; 16