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

monstdesc Struct Reference

#include <monst.h>


Detailed Description

Description of a type of monster.

Data file only. See #data/monsters.m4. This structure definition must remain synchronized with the data there.

Definition at line 55 of file monst.h.

Data Fields

filelink name
 Points to monster's name.

uchar drawchar
 Symbol used to represent monster on map.

uchar level
 Monster's level (affects its chance to hit).

uchar dv
 Monster's defense value.

uchar pv
 Monster's protection value.

sint hps_max
 Monster's max. hit points.

uchar speed
 Monster speed (normal speed is 10).

uchar power_max
 Monster's max power.

ushort ai
filelink ai_active
 Function to use when active (if any).

filelink ai_idle
 Function to use when idle (if any).

filelink ai_anger
 Function to use when angered (if any).

filelink deathfunc
 Function to use when killed (if any).

filelink chatfunc
 Function to use when chatted with (if any).

uchar numattacks
 Number of attacks in attacks.

uint xp
uint flags
 Special monster abilities/properties.

monstattack attacks [1]
 Attack details.


Field Documentation

ushort monstdesc::ai
 

Starting AI state

See also:
monster::flags aiflags

Definition at line 69 of file monst.h.

Referenced by addmonster().

struct filelink monstdesc::ai_active
 

Function to use when active (if any).

Definition at line 71 of file monst.h.

struct filelink monstdesc::ai_anger
 

Function to use when angered (if any).

Definition at line 73 of file monst.h.

struct filelink monstdesc::ai_idle
 

Function to use when idle (if any).

Definition at line 72 of file monst.h.

monstattack monstdesc::attacks[1]
 

Attack details.

Definition at line 95 of file monst.h.

struct filelink monstdesc::chatfunc
 

Function to use when chatted with (if any).

Definition at line 75 of file monst.h.

struct filelink monstdesc::deathfunc
 

Function to use when killed (if any).

Definition at line 74 of file monst.h.

uchar monstdesc::drawchar
 

Symbol used to represent monster on map.

Definition at line 58 of file monst.h.

uchar monstdesc::dv
 

Monster's defense value.

Definition at line 60 of file monst.h.

uint monstdesc::flags
 

Special monster abilities/properties.

May be any combination of the abilities in Monster Flags #sa monstflags

Definition at line 88 of file monst.h.

Referenced by addmonster().

sint monstdesc::hps_max
 

Monster's max. hit points.

Definition at line 62 of file monst.h.

Referenced by addmonster().

uchar monstdesc::level
 

Monster's level (affects its chance to hit).

Definition at line 59 of file monst.h.

struct filelink monstdesc::name
 

Points to monster's name.

Definition at line 57 of file monst.h.

uchar monstdesc::numattacks
 

Number of attacks in attacks.

Definition at line 77 of file monst.h.

uchar monstdesc::power_max
 

Monster's max power.

Definition at line 64 of file monst.h.

Referenced by addmonster().

uchar monstdesc::pv
 

Monster's protection value.

Definition at line 61 of file monst.h.

uchar monstdesc::speed
 

Monster speed (normal speed is 10).

Definition at line 63 of file monst.h.

uint monstdesc::xp
 

XP given for a kill

See also:
awardXP

Definition at line 81 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