Angband
Data Fields
melee_effect_handler_context_s Struct Reference

Storage for context information for effect handlers called in make_attack_normal(). More...

#include <mon-blows.h>

Data Fields

struct player *const p
 
struct monster *const mon
 
const int rlev
 
const struct blow_methodmethod
 
const int ac
 
const char * ddesc
 
bool obvious
 
bool blinked
 
bool do_break
 
int damage
 

Detailed Description

Storage for context information for effect handlers called in make_attack_normal().

The members of this struct are initialized in an order-dependent way (to be more cross-platform). If the members change, make sure to change any initializers. Ideally, this should eventually used named initializers.

Field Documentation

◆ ac

const int ac

◆ blinked

bool blinked

◆ damage

int damage

◆ ddesc

const char* ddesc

◆ do_break

bool do_break

◆ method

const struct blow_method* method

Referenced by melee_effect_elemental().

◆ mon

struct monster* const mon

◆ obvious

bool obvious

◆ p

struct player* const p

◆ rlev

const int rlev

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