1 /*
2     Copyright 2003-2011 Tom Rune Flo
3 
4     This file is part of CAVEZ OF PHEAR
5 
6     CAVEZ OF PHEAR is free software: you can redistribute it and/or modify it under the terms of the GNU
7     General Public License as published by the Free Software Foundation, either version 3 of the
8     License, or (at your option) any later version.
9 
10     CAVEZ OF PHEAR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
11     even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12     General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License along with CAVEZ OF PHEAR. If not,
15     see http://www.gnu.org/licenses/.
16  */
17 
18 #ifndef MAP_MAP_H
19 #define MAP_MAP_H
20 
21 #define MAP_XSIZE 80
22 #define MAP_YSIZE 23
23 
24 #define MAP_EMPTY   0
25 #define MAP_DIRT    1
26 #define MAP_STONE   2
27 #define MAP_DIAMOND 3
28 #define MAP_WALL    4
29 #define MAP_MONEY   5
30 #define MAP_PLAYER  9
31 #define MAP_BOMB    6
32 #define MAP_BOMBPK  7
33 #define MAP_MONSTER 8
34 
35 extern char map[MAP_YSIZE][MAP_XSIZE];
36 
37 int get_map_symbol(int object_type);
38 void draw_map(void);
39 
40 void clear_map(void);
41 int load_map(const char* path);
42 int save_map(const char* path);
43 
44 int count_map_objects(int object_type);
45 
46 #endif
47