summaryrefslogtreecommitdiff
path: root/games/hack/def.trap.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /games/hack/def.trap.h
initial import of NetBSD tree
Diffstat (limited to 'games/hack/def.trap.h')
-rw-r--r--games/hack/def.trap.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/hack/def.trap.h b/games/hack/def.trap.h
new file mode 100644
index 00000000000..55477e482f4
--- /dev/null
+++ b/games/hack/def.trap.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
+ *
+ * $NetBSD: def.trap.h,v 1.3 1995/03/23 08:29:41 cgd Exp $
+ */
+
+struct trap {
+ struct trap *ntrap;
+ xchar tx,ty;
+ unsigned ttyp:5;
+ unsigned tseen:1;
+ unsigned once:1;
+};
+
+extern struct trap *ftrap;
+struct trap *t_at();
+#define newtrap() (struct trap *) alloc(sizeof(struct trap))
+
+/* various kinds of traps */
+#define BEAR_TRAP 0
+#define ARROW_TRAP 1
+#define DART_TRAP 2
+#define TRAPDOOR 3
+#define TELEP_TRAP 4
+#define PIT 5
+#define SLP_GAS_TRAP 6
+#define PIERC 7
+#define MIMIC 8 /* used only in mklev.c */
+#define TRAPNUM 9 /* if not less than 32, change sizeof(ttyp) */
+ /* see also mtrapseen (bit map) */