summaryrefslogtreecommitdiff
path: root/Sprite.h
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
commit3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch)
tree27be0f78ab8672a7187d517c73b4ee22817369cc /Sprite.h
Initial commit
Diffstat (limited to 'Sprite.h')
-rw-r--r--Sprite.h35
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