Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

monstattack Struct Reference

#include <monst.h>


Detailed Description

A monster's attack.

Actually, more like 'an action a monster can do'. Other actions like summoning help, shooting missiles, breathing fire, etc., are handled with this as well.

Definition at line 14 of file monst.h.

Data Fields

filelink type
 (Interpretted) function called when this attack is made.

range damage
 How much damage is dealt.

schar tohit
 Modifier to chance-to-hit.

uchar trigger
 When this attack is made.


Field Documentation

struct range monstattack::damage
 

How much damage is dealt.

Definition at line 22 of file monst.h.

schar monstattack::tohit
 

Modifier to chance-to-hit.

Definition at line 25 of file monst.h.

uchar monstattack::trigger
 

When this attack is made.

May be one of: MTRIGGER_NORMAL, MTRIGGER_RANGED, MTRIGGER_DEFENSE, MTRIGGER_DEATH, MTRIGGER_SEEN, MTRIGGER_PREEMPT

Definition at line 31 of file monst.h.

struct filelink monstattack::type
 

(Interpretted) function called when this attack is made.

See data/monsters.m4 for examples.

Definition at line 19 of file monst.h.


The documentation for this struct was generated from the following file:
Generated on Thu May 20 13:12:14 2004 for CalcRogue by doxygen 1.3.6