File: Bonus.cc

package info (click to toggle)
hannah 1.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,712 kB
  • ctags: 281
  • sloc: cpp: 2,210; sh: 214; makefile: 117
file content (20 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "Bonus.h"

class Bonus;

Bonus::Bonus(char *filename, int x, int y, int speed,AnimationFactory* af, char type):
	Ghost1(filename, x, y, speed, af){
	this->lifeforce = 300;
	this->alive = true;
	this->type = type;
};

void Bonus::decLife(){
	if(lifeforce>0) lifeforce--;
};
//Food::~Food(){
//	int i;
//	for(i=0; i<frames.size(); i++){
//		SDL_FreeSurface(frames[i]);
//	}
//};