Angband
Data Fields
trap_kind Struct Reference

A trap template. More...

#include <trap.h>

Data Fields

char * name
 Name.
char * text
 Text.
char * desc
 Short description.
struct trap_kindnext
int tidx
 Trap kind index.
byte d_attr
 Default trap attribute.
wchar_t d_char
 Default trap character.
int rarity
 Rarity.
int min_depth
 Minimum depth.
int max_num
 Unused.
bitflag flags [TRF_SIZE]
 Trap flags (all traps of this kind)
struct effecteffect
 Effect on entry to grid.

Detailed Description

A trap template.

Field Documentation

byte d_attr

Default trap attribute.

Referenced by parse_trap_graphics(), and reset_visuals().

wchar_t d_char

Default trap character.

Referenced by parse_trap_graphics(), and reset_visuals().

char* desc

Short description.

Referenced by lookup_trap(), and parse_trap_name().

struct effect* effect

Effect on entry to grid.

Referenced by hit_trap(), parse_trap_dice(), parse_trap_effect(), and parse_trap_expr().

bitflag flags[TRF_SIZE]

Trap flags (all traps of this kind)

Referenced by hit_trap(), num_traps(), parse_trap_flags(), pick_trap(), and place_trap().

int max_num

Unused.

Referenced by parse_trap_appear().

int min_depth

Minimum depth.

Referenced by parse_trap_appear(), and pick_trap().

char* name
struct trap_kind* next
int rarity

Rarity.

Referenced by parse_trap_appear().

char* text

Text.

Referenced by parse_trap_desc().

int tidx

The documentation for this struct was generated from the following file: