From 10a0e290ac07524dc129cc2b227b0f9e95df0f8e Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 16 Apr 2012 09:39:52 -0500 Subject: first commit --- map.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 map.h (limited to 'map.h') 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); + + + + +}; -- cgit