1997-10-19 20:56:41 +04:00
|
|
|
/* $NetBSD: def.trap.h,v 1.4 1997/10/19 16:57:23 christos Exp $ */
|
|
|
|
|
1993-08-02 21:16:36 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
|
|
|
|
*/
|
1997-10-19 20:56:41 +04:00
|
|
|
#ifndef _DEF_TRAP_H_
|
|
|
|
#define _DEF_TRAP_H_
|
1993-03-21 12:45:37 +03:00
|
|
|
struct trap {
|
|
|
|
struct trap *ntrap;
|
|
|
|
xchar tx,ty;
|
|
|
|
unsigned ttyp:5;
|
|
|
|
unsigned tseen:1;
|
|
|
|
unsigned once:1;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct trap *ftrap;
|
|
|
|
#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) */
|
1997-10-19 20:56:41 +04:00
|
|
|
#endif /* _DEF_TRAP_H_ */
|