]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/def.trap.h
Fix usages of ospeed.
[bsdgames-darwin.git] / hack / def.trap.h
1 /*
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
3 *
4 * $NetBSD: def.trap.h,v 1.3 1995/03/23 08:29:41 cgd 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) */