Data Structures | Defines | Variables

trap.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  vlaunchinfo
struct  trap

Defines

#define launch_otyp   vl.v_launch_otyp
#define launch2   vl.v_launch2
#define newtrap()   (struct trap *) alloc(sizeof(struct trap))
#define dealloc_trap(trap)   free((genericptr_t) (trap))
#define ANIMATE_NORMAL   0
#define ANIMATE_SHATTER   1
#define ANIMATE_SPELL   2
#define AS_OK   0
#define AS_NO_MON   1
#define AS_MON_IS_UNIQUE   2
#define NO_TRAP   0
#define ARROW_TRAP   1
#define DART_TRAP   2
#define ROCKTRAP   3
#define SQKY_BOARD   4
#define BEAR_TRAP   5
#define LANDMINE   6
#define ROLLING_BOULDER_TRAP   7
#define SLP_GAS_TRAP   8
#define RUST_TRAP   9
#define FIRE_TRAP   10
#define PIT   11
#define SPIKED_PIT   12
#define HOLE   13
#define TRAPDOOR   14
#define TELEP_TRAP   15
#define LEVEL_TELEP   16
#define MAGIC_PORTAL   17
#define WEB   18
#define STATUE_TRAP   19
#define MAGIC_TRAP   20
#define ANTI_MAGIC   21
#define POLY_TRAP   22
#define TRAPNUM   23

Variables

struct trapftrap

Define Documentation

#define ANIMATE_NORMAL   0

Referenced by activate_statue_trap().

#define ANIMATE_SHATTER   1
#define ANIMATE_SPELL   2

Referenced by animate_statue(), and bhito().

#define ANTI_MAGIC   21
#define ARROW_TRAP   1
#define AS_MON_IS_UNIQUE   2
#define AS_NO_MON   1

Referenced by animate_statue().

#define AS_OK   0

Referenced by animate_statue().

#define BEAR_TRAP   5
#define DART_TRAP   2
#define dealloc_trap (   trap )    free((genericptr_t) (trap))

Referenced by deltrap(), getlev(), and savetrapchn().

#define FIRE_TRAP   10
#define HOLE   13
#define LANDMINE   6
#define launch2   vl.v_launch2
#define launch_otyp   vl.v_launch_otyp
#define LEVEL_TELEP   16
#define MAGIC_PORTAL   17
#define MAGIC_TRAP   20
#define newtrap (  )    (struct trap *) alloc(sizeof(struct trap))

Referenced by getlev(), and maketrap().

#define NO_TRAP   0
#define PIT   11
#define POLY_TRAP   22
#define ROCKTRAP   3
#define ROLLING_BOULDER_TRAP   7
#define RUST_TRAP   9
#define SLP_GAS_TRAP   8
#define SPIKED_PIT   12
#define SQKY_BOARD   4
#define STATUE_TRAP   19
#define TELEP_TRAP   15
#define TRAPDOOR   14
#define TRAPNUM   23

Referenced by mfndpos(), mktrap(), readobjnam(), and rndtrap().

#define WEB   18

Variable Documentation

struct trap* ftrap