File: bonus.h

package info (click to toggle)
pacman 10-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: cpp: 4,363; sh: 83; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (10)
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