Debian Codegraph @

src/hardness_tiles.h

raw
1 /**
2 * Hardness tileset for game map
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2005, 2007, 2008, 2009, 2010, 2012, 2014, 2015 Sylvain Beucler
6
7 * This file is part of GNU FreeDink
8
9 * GNU FreeDink is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 3 of the
12 * License, or (at your option) any later version.
13
14 * GNU FreeDink is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see
21 * <http://www.gnu.org/licenses/>.
22 */
23
24 #include "gfx_tiles.h"
25 #include "io_util.h"
26
27 /**
28 * 1 hardness block
29 */
30 struct ts_block
31 {
32 unsigned char hm[50+1][50+1]; // tile hardness/hitmap
33 BOOL_1BYTE used;
34 };
35
36 //struct for hardness info, INDEX controls which hardness each block has. 800 max
37 //types available.
38 #define HARDNESS_NB_TILES 800
39 struct hardness
40 {
41 struct ts_block htile[HARDNESS_NB_TILES];
42 /* default hardness for each background tile square */
43 /* TODO: move me to gfx_tiles for clarity: */
44 short btile_default[GFX_TILES_NB_SQUARES];
45 };
46
47 extern struct hardness hmap;
48
49
50 extern void load_hard(void);
51 extern void save_hard(void);