1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/games/hack/def.trap.h
Jordan K. Hubbard 554eb505f8 Bring in the 4.4 Lite games directory, modulo man page changes and segregation
of the x11 based games.  I'm not going to tag the originals with bsd_44_lite
and do this in two stages since it's just not worth it for this collection,
and I've got directory renames to deal with that way.  Bleah.
Submitted by:	jkh
1994-09-04 04:03:31 +00:00

28 lines
656 B
C

/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* def.trap.h - version 1.0.2 */
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) */