diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
commit | 3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch) | |
tree | 27be0f78ab8672a7187d517c73b4ee22817369cc /Sprite.h |
Initial commit
Diffstat (limited to 'Sprite.h')
-rw-r--r-- | Sprite.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Sprite.h b/Sprite.h new file mode 100644 index 0000000..59a4399 --- /dev/null +++ b/Sprite.h @@ -0,0 +1,35 @@ +#ifndef SPRITE_H +#define SPRITE_H + +#include <string> +#include "SDL/SDL.h" +#include "SDL/SDL_image.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 + bool loadImage(std::string path); + // This sprite's image + SDL_Surface image; + + protected: + // Coordinates + int x, y; + + // Visability + bool isVisible; +}; + +#endif |