File: tiletypes.h

package info (click to toggle)
hex-a-hop 0.0.20070315-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 3,668 kB
  • ctags: 705
  • sloc: cpp: 5,296; ansic: 153; makefile: 148
file content (56 lines) | stat: -rw-r--r-- 1,530 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
    Copyright (C) 2005-2007 Tom Beaumont

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#undef X_DEFAULT
#ifndef X
	#ifndef TILETYPES_H
		#define TILETYPES_H
		#define X_DEFAULT
		#define X(id, col, solid) id,
		enum TileTypes {
	#else
		#define X(id, col, solid)
	#endif
#endif

X(EMPTY,		0x202060, -1)
X(NORMAL,		0x506070, 0)
X(COLLAPSABLE,	0x408040, 0)
X(COLLAPSE_DOOR,0xa0f0a0, 1)
X(TRAMPOLINE,	0x603060, 0)
X(SPINNER,		0x784040, 0)
X(WALL,			0x000080, 1)
X(COLLAPSABLE2,	0x408080, 0)
X(COLLAPSE_DOOR2,0xa0f0f0, 1)
X(GUN,			0xb0a040, 0)
X(TRAP,			0x000000, 0)
X(COLLAPSABLE3,	0x202020, 0)
X(BUILDER,		0x009000, 0)
X(SWITCH,		0x004000, 0)
X(FLOATING_BALL,0xa00050, 0)
X(LIFT_DOWN,	0x7850a0, 0)
X(LIFT_UP,		0x7850a0, 1)

#undef X

#ifdef X_DEFAULT
			NumTileTypes
		};
#undef X_DEFAULT
#endif