1 //#include "SDL.h" 2 //#include "SDL_image.h" 3 //#include "Defines.h" 4 #ifndef _GHOST1_ 5 #define _GHOST1_ 6 #include "Ghost.h" 7 //#include <fstream> 8 //#include <vector> 9 10 using namespace std; 11 12 class Ghost1 : public Ghost{ 13 public: 14 Ghost1(char* filename,int x, int y, int speed, AnimationFactory* af); // Load all sprites in directory 15 // virtual ~Ghost1(); 16 //SDL_Surface* frame(); 17 //void x(int x); // Set X 18 //void y(int y); 19 //int getfreedirections(); 20 //bool testdirection(int dir); 21 //int x(); // Get X 22 //int y(); 23 virtual void move(int x, int y); 24 //int nextxpos; 25 //int nextypos; 26 //int direction; // 1 = up, 2 = right, 3 = down, 4 = left, 5 = stationary 27 //int numframes; 28 //int nextdir; 29 30 protected: 31 //vector<SDL_Surface*> frames; 32 //int xpos; 33 //int ypos; 34 //int currentframe; 35 //int speed; 36 //gridcell map[SIZEX][SIZEY]; 37 }; 38 39 #endif 40