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