1 #ifndef _BONUS_ 2 #define _BONUS_ 3 #include "Ghost1.h" 4 5 using namespace std; 6 7 class Bonus : public Ghost1{ 8 public: 9 Bonus(char *filename, int x, int y, int speed, AnimationFactory* af, char type); 10 // Type is 's' for stop ghosts, 'k' for kill ghosts, 'u' for speed up ghosts, 'c' for switch controls 11 void decLife(); 12 bool alive; 13 int lifeforce; 14 char type; 15 // virtual ~Food(); 16 }; 17 18 #endif 19