Source:Hack 1.0/def.trap.h

2,034pages on
this wiki
Add New Page

Below is the full text to def.trap.h from the source code of Hack 1.0. To link to a particular line, write [[Hack 1.0/def.trap.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

Screenshots and source code from Hack are used under the CWI license.
1.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */
3.    /* various kinds of traps */
4.    #define BEAR_TRAP	0
5.    #define	ARROW_TRAP	1
6.    #define	DART_TRAP	2
7.    #define TRAPDOOR	3
8.    #define	TELEP_TRAP	4
9.    #define PIT 5
10.   #define SLP_GAS_TRAP	6
11.   #define	PIERC	7
12.   #define	MIMIC	8	/* used only in mklev.c */
13.   /* before adding more trap types, check mfndpos ! */
14.   /* #define SEEN 32 - trap which has been seen */

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki