Home | History | Annotate | Line # | Download | only in hack
def.trap.h revision 1.4
      1 /*	$NetBSD: def.trap.h,v 1.4 1997/10/19 16:57:23 christos Exp $	*/
      2 
      3 /*
      4  * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
      5  */
      6 #ifndef _DEF_TRAP_H_
      7 #define _DEF_TRAP_H_
      8 struct trap {
      9 	struct trap *ntrap;
     10 	xchar tx,ty;
     11 	unsigned ttyp:5;
     12 	unsigned tseen:1;
     13 	unsigned once:1;
     14 };
     15 
     16 extern struct trap *ftrap;
     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 #endif /* _DEF_TRAP_H_ */
     32