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

monster Struct Reference

#include <monst.h>


Detailed Description

A monster.

Instances are kept in w->m

See also:
w::m MONSTERS_MAX

Definition at line 106 of file monst.h.

Data Fields

filelink type
 Link to corresponding monstdesc, or null if dead.

sshort hps
uchar energy
 Moves the monster can make (move when >player speed).

uchar power
 Mana. Regenerates at 1 point per turn.

sshort x
sshort y
ushort flags
 Controls monster behavior.

ushort pad2
 Unused.


Field Documentation

uchar monster::energy
 

Moves the monster can make (move when >player speed).

Definition at line 110 of file monst.h.

Referenced by addmonster(), base_coat(), and timepass().

ushort monster::flags
 

Controls monster behavior.

Flags may be any combination of AI Flags. When the monster is created, this value is copied from its description monstdesc::ai.

See also:
aiflags monstdesc monstdesc::ai

Definition at line 120 of file monst.h.

Referenced by addmonster(), confuse_monster(), monst_anger(), monst_is_peaceful(), monst_is_pet(), monstmove(), and scare_monster_force().

sshort monster::hps
 

Definition at line 109 of file monst.h.

Referenced by addmonster(), monst_heal(), monst_takedamage(), monstmove(), plr_attack(), and throw_item().

ushort monster::pad2
 

Unused.

Definition at line 122 of file monst.h.

uchar monster::power
 

Mana. Regenerates at 1 point per turn.

Definition at line 111 of file monst.h.

Referenced by addmonster(), and monstmove().

struct filelink monster::type
 

Link to corresponding monstdesc, or null if dead.

Definition at line 108 of file monst.h.

Referenced by addmonster(), base_coat(), cause_confusion(), compress_monsters(), find_monster_description(), gather_wandering_monsters(), monst_attack_type(), monst_remove(), monst_swing_monst(), monstbytile(), place_monster(), and timepass().

sshort monster::x
 

Definition at line 112 of file monst.h.

Referenced by monst_battle_pet(), monst_can_attack_player(), monst_detect_player(), monst_facing(), monst_is_aligned_with_plr(), monst_remove(), monstbytile(), monstcanmove(), monstmove(), monstmoveawayfromplayer(), monstmoverandomly(), monstmoveto(), monstmovetowardsplayer(), pet_move(), place_monster(), player_can_see(), plr_moveto(), webspinner_build(), and webspinner_cower().

sshort monster::y
 

Definition at line 113 of file monst.h.

Referenced by monst_battle_pet(), monst_can_attack_player(), monst_detect_player(), monst_facing(), monst_is_aligned_with_plr(), monst_remove(), monstbytile(), monstcanmove(), monstmove(), monstmoveawayfromplayer(), monstmoverandomly(), monstmoveto(), monstmovetowardsplayer(), pet_move(), place_monster(), player_can_see(), plr_moveto(), webspinner_build(), and webspinner_cower().


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