class Sprite {
public:
- Sprite(SDL_Surface *s, int width, int height)
- : surface(s), width(width), height(height) { }
+ Sprite(SDL_Surface *s, int width, int height, int xOffset = 0, int yOffset = 0)
+ : surface(s), width(width), height(height), xOffset(xOffset), yOffset(yOffset) { }
public:
int Width() const { return width; }
SDL_Surface *surface;
int width;
int height;
+ int xOffset;
+ int yOffset;
};