#ifndef SPRITE_H #define SPRITE_H #include #include "SDL/SDL.h" #include "SDL/SDL_image.h" #include "intensemarcus.h" class Sprite { public: Sprite(); // Get coordinates int getX(); int getY(); // Set coordinates void setX(int x); void setY(int y); bool visible(); // Load in this sprite's image void setImage(std::string path); // TODO: Add method that can set reference to an already loaded image // This sprite's image SDL_Surface *image; SDL_Rect* getClip(); void setClip(int clipNo, int x, int y, int w, int h); protected: // Coordinates int x, y; // Visability bool isVisible; // Sprite clip SDL_Rect clip[5]; // Clip number int clipNo; }; #endif