aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2012-04-16 09:39:52 -0500
committerBen Beltran <ben@nsovocal.com>2012-04-16 09:39:52 -0500
commit10a0e290ac07524dc129cc2b227b0f9e95df0f8e (patch)
treeed518c45c45d96e37e28640f745496fffb8e1325 /map.h
first commit
Diffstat (limited to 'map.h')
-rwxr-xr-xmap.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/map.h b/map.h
new file mode 100755
index 0000000..4b55d51
--- /dev/null
+++ b/map.h
@@ -0,0 +1,35 @@
+/*
+ * Module Name: Map
+ * Description: Load Maps. Don't even worry about this. It'll all be different soon.
+ */
+
+class Map
+{
+ int width, height, sx, sy;
+ int tileset[15];
+ int tiles[MAX_MAP_H][MAX_MAP_W];
+ SDL_Surface *sheet;
+
+public:
+
+ //constructors and destructor.
+ Map(void);
+ ~Map(void);
+
+
+ //drawing stuff
+ void drawmap(SDL_Surface *);
+ void draw_tile(SDL_Surface *, int, int, int);
+
+ //getters
+ int get_passability(int, int);
+ int get_tile(int, int);
+ int get_sx();
+ int get_sy();
+ void set_sx(int);
+ void set_sy(int);
+
+
+
+
+};