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