Home | History | Annotate | Line # | Download | only in hack
def.trap.h revision 1.2
      1 /*
      2  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
      3  *
      4  *	$Id: def.trap.h,v 1.2 1993/08/02 17:16:54 mycroft Exp $
      5  */
      6 
      7 struct trap {
      8 	struct trap *ntrap;
      9 	xchar tx,ty;
     10 	unsigned ttyp:5;
     11 	unsigned tseen:1;
     12 	unsigned once:1;
     13 };
     14 
     15 extern struct trap *ftrap;
     16 struct trap *t_at();
     17 #define newtrap()	(struct trap *) alloc(sizeof(struct trap))
     18 
     19 /* various kinds of traps */
     20 #define BEAR_TRAP	0
     21 #define	ARROW_TRAP	1
     22 #define	DART_TRAP	2
     23 #define TRAPDOOR	3
     24 #define	TELEP_TRAP	4
     25 #define PIT 		5
     26 #define SLP_GAS_TRAP	6
     27 #define	PIERC		7
     28 #define	MIMIC		8	/* used only in mklev.c */
     29 #define TRAPNUM 	9	/* if not less than 32, change sizeof(ttyp) */
     30 				/* see also mtrapseen (bit map) */
     31