blob: 4b55d5154af46176790abaf127f2672d92bb35db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
};
|