diff options
| author | Ben Beltran <ben@nsovocal.com> | 2012-04-16 09:39:52 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2012-04-16 09:39:52 -0500 |
| commit | 10a0e290ac07524dc129cc2b227b0f9e95df0f8e (patch) | |
| tree | ed518c45c45d96e37e28640f745496fffb8e1325 /map.h | |
first commit
Diffstat (limited to 'map.h')
| -rwxr-xr-x | map.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -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);
+
+
+
+
+};
|