]> git.r.bdr.sh - rbdr/pico-engine/blob - map.h
first commit
[rbdr/pico-engine] / map.h
1 /*
2 * Module Name: Map
3 * Description: Load Maps. Don't even worry about this. It'll all be different soon.
4 */
5
6 class Map
7 {
8 int width, height, sx, sy;
9 int tileset[15];
10 int tiles[MAX_MAP_H][MAX_MAP_W];
11 SDL_Surface *sheet;
12
13 public:
14
15 //constructors and destructor.
16 Map(void);
17 ~Map(void);
18
19
20 //drawing stuff
21 void drawmap(SDL_Surface *);
22 void draw_tile(SDL_Surface *, int, int, int);
23
24 //getters
25 int get_passability(int, int);
26 int get_tile(int, int);
27 int get_sx();
28 int get_sy();
29 void set_sx(int);
30 void set_sy(int);
31
32
33
34
35 };