File: bonus.h

package info (click to toggle)
pacman 10-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 664 kB
  • ctags: 1,108
  • sloc: cpp: 3,333; makefile: 502; sh: 96
file content (24 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __bonus_h_ 
#define __bonus_h_
#include"gamedata.h"
#include"board.h"
#include"usrinter.h"
#include"unmovele.h"
#include"gamedata.h"
#include"gbonus.h"

class Bonus : public UnmoveableElement {
protected:
int lifetime; 			//the lifetime of the bonus
            
public: 
virtual void start(); 		//reset the bonus
void getxy(int *,int*); 	//get it's coordinates
virtual void eat(Gamedata*)=0;	//a virtual for when pacman eats it
int code(); 			//code to be done while it exists
virtual ~Bonus()=0;		//destructor
Bonus();			//constructor

};

#endif