Merge branch 'vendor/BZIP'
[games.git] / games / hack / def.trap.h
CommitLineData
984263bc
MD
1/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2/* def.trap.h - version 1.0.2 */
c7106d58 3/* $DragonFly: src/games/hack/def.trap.h,v 1.2 2006/08/21 19:45:32 pavalos Exp $ */
984263bc
MD
4
5struct trap {
6 struct trap *ntrap;
6693db17 7 xchar tx, ty;
984263bc
MD
8 unsigned ttyp:5;
9 unsigned tseen:1;
10 unsigned once:1;
11};
12
13extern struct trap *ftrap;
6693db17 14#define newtrap() alloc(sizeof(struct trap))
984263bc
MD
15
16/* various kinds of traps */
6693db17 17#define BEAR_TRAP 0
984263bc
MD
18#define ARROW_TRAP 1
19#define DART_TRAP 2
6693db17 20#define TRAPDOOR 3
984263bc 21#define TELEP_TRAP 4
6693db17
SW
22#define PIT 5
23#define SLP_GAS_TRAP 6
984263bc
MD
24#define PIERC 7
25#define MIMIC 8 /* used only in mklev.c */
6693db17 26#define TRAPNUM 9 /* if not less than 32, change sizeof(ttyp) */
984263bc 27 /* see also mtrapseen (bit map) */