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