Angband
Data Fields
trap_kind Struct Reference

A trap template. More...

#include <trap.h>

Data Fields

char * name
 Name. More...
 
char * text
 Text. More...
 
char * desc
 Short description. More...
 
char * msg
 Message on hitting. More...
 
char * msg_good
 Message on saving. More...
 
char * msg_bad
 Message on failing to save. More...
 
char * msg_xtra
 Message on getting an extra effect. More...
 
struct trap_kindnext
 
int tidx
 Trap kind index. More...
 
byte d_attr
 Default trap attribute. More...
 
wchar_t d_char
 Default trap character. More...
 
int rarity
 Rarity. More...
 
int min_depth
 Minimum depth. More...
 
int max_num
 Unused. More...
 
random_value power
 Visibility of player trap. More...
 
bitflag flags [TRF_SIZE]
 Trap flags (all traps of this kind) More...
 
bitflag save_flags [OF_SIZE]
 Save flags (player with these saves) More...
 
struct effecteffect
 Effect on entry to grid. More...
 
struct effecteffect_xtra
 Possible extra effect. More...
 

Detailed Description

A trap template.

Field Documentation

◆ d_attr

byte d_attr

Default trap attribute.

Referenced by parse_trap_graphics(), and reset_visuals().

◆ d_char

wchar_t d_char

Default trap character.

Referenced by parse_trap_graphics(), and reset_visuals().

◆ desc

char* desc

◆ effect

struct effect* effect

Effect on entry to grid.

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

◆ effect_xtra

struct effect* effect_xtra

◆ flags

bitflag flags[TRF_SIZE]

Trap flags (all traps of this kind)

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

◆ max_num

int max_num

Unused.

Referenced by parse_trap_appear().

◆ min_depth

int min_depth

Minimum depth.

Referenced by parse_trap_appear(), and pick_trap().

◆ msg

char* msg

Message on hitting.

Referenced by hit_trap(), and parse_trap_msg().

◆ msg_bad

char* msg_bad

Message on failing to save.

Referenced by cleanup_trap(), hit_trap(), and parse_trap_msg_bad().

◆ msg_good

char* msg_good

Message on saving.

Referenced by cleanup_trap(), hit_trap(), and parse_trap_msg_good().

◆ msg_xtra

char* msg_xtra

Message on getting an extra effect.

Referenced by cleanup_trap(), hit_trap(), and parse_trap_msg_xtra().

◆ name

char* name

◆ next

struct trap_kind* next

◆ power

random_value power

Visibility of player trap.

Referenced by parse_trap_visibility(), and place_trap().

◆ rarity

int rarity

Rarity.

Referenced by parse_trap_appear(), and pick_trap().

◆ save_flags

bitflag save_flags[OF_SIZE]

Save flags (player with these saves)

Referenced by hit_trap(), and parse_trap_save_flags().

◆ text

char* text

Text.

Referenced by cleanup_trap(), parse_trap_desc(), and trap_lore().

◆ tidx

int tidx

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