Merge branch 'reduce-cpu'
[hex-a-hop.git] / tiletypes.h
blob1c77cf2ffd75e810869f84dda3eef25ee4f9a1a7
1 /*
2 Copyright (C) 2005-2007 Tom Beaumont
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #undef X_DEFAULT
20 #ifndef X
21 #ifndef TILETYPES_H
22 #define TILETYPES_H
23 #define X_DEFAULT
24 #define X(id, col, solid) id,
25 enum TileTypes {
26 #else
27 #define X(id, col, solid)
28 #endif
29 #endif
31 X(EMPTY, 0x202060, -1)
32 X(NORMAL, 0x506070, 0)
33 X(COLLAPSABLE, 0x408040, 0)
34 X(COLLAPSE_DOOR,0xa0f0a0, 1)
35 X(TRAMPOLINE, 0x603060, 0)
36 X(SPINNER, 0x784040, 0)
37 X(WALL, 0x000080, 1)
38 X(COLLAPSABLE2, 0x408080, 0)
39 X(COLLAPSE_DOOR2,0xa0f0f0, 1)
40 X(GUN, 0xb0a040, 0)
41 X(TRAP, 0x000000, 0)
42 X(COLLAPSABLE3, 0x202020, 0)
43 X(BUILDER, 0x009000, 0)
44 X(SWITCH, 0x004000, 0)
45 X(FLOATING_BALL,0xa00050, 0)
46 X(LIFT_DOWN, 0x7850a0, 0)
47 X(LIFT_UP, 0x7850a0, 1)
49 #undef X
51 #ifdef X_DEFAULT
52 NumTileTypes
54 #undef X_DEFAULT
55 #endif