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

include/monst.h File Reference


Detailed Description

Monster movement, combat, etc.

Definition in file monst.h.

Go to the source code of this file.

Data Structures

struct  monstattack
 A monster's attack. More...

struct  monstdesc
 Description of a type of monster. More...

struct  monster
 A monster. More...


Defines

#define MTRIGGER_NORMAL   0
 monstattack::trigger When the monster is in melee range

#define MTRIGGER_RANGED   1
 monstattack::trigger When the monster's lined up for a ranged attack

#define MTRIGGER_DEFENSE   2
 monstattack::trigger After the monster is hit (but not killed)

#define MTRIGGER_DEATH   3
 monstattack::trigger After the monster is killed

#define MTRIGGER_SEEN   4
#define MTRIGGER_PREEMPT   5
#define MONST_PEACEFUL   1
 Monster is peaceful.

#define MONST_PET   2
 Monster is a pet.

#define MONST_FRIENDLY   4
 Monster is friendly.

#define MONST_ACTIVE   8
 Monster is active (senses player).

#define MONST_CUST_WHEN_ACTIVE   16
#define MONST_CUST_WHEN_IDLE   32
#define MONST_CUST_ANGER   64
#define MONST_WANDER_WHEN_IDLE   128
 Wander around when idle.

#define MONST_CONFUSED   256
 Confused.

#define MONST_SCARED   512
 Frightened.

#define MONST_MIMIC   1024
 Is a mimic.

#define MONST_SHOPKEEP   2048
 Is a shopkeeper.

#define MONST_PARALYZED   4096
 Is paralyzed.

#define AI_BRAINDEAD   (MONST_PEACEFUL)
#define AI_HOSTILE   (MONST_WANDER_WHEN_IDLE)
#define AI_CHASE   (AI_HOSTILE|MONST_ACTIVE)
#define AI_SCARED   (AI_CHASE|MONST_SCARED)
#define AI_CONFUSED   (AI_CHASE|MONST_CONFUSED)
#define AI_DONTCARE   (MONST_PEACEFUL|MONST_WANDER_WHEN_IDLE)
#define AI_PEACEFUL   (MONST_FRIENDLY|MONST_WANDER_WHEN_IDLE)
#define AI_SHOPKEEP   (MONST_FRIENDLY|MONST_SHOPKEEP|MONST_CUST_ANGER)
#define AI_PET   (MONST_PET|MONST_ACTIVE)
#define AI_MIMIC   (MONST_CUST_WHEN_IDLE|MONST_MIMIC)
#define AI_WEBSPINNER   (MONST_CUST_WHEN_IDLE|MONST_CUST_WHEN_ACTIVE)
#define AI_NPC_SIT   (MONST_FRIENDLY|MONST_CUST_WHEN_ACTIVE)
#define MONSTFLAG_REGENERATE   1
 Regenerates quickly.

#define MONSTFLAG_INVISIBLE   2
 Is invisible.

#define MONSTFLAG_FEARLESS   4
 Cannot be frightened.

#define MONSTFLAG_PASSWALL   8
 Walks through walls.

#define MONSTFLAG_GROUP   16
 Appears in groups of 4.

#define MONSTFLAG_HASHANDS   32
 Can manipulate doors.

#define MONSTFLAG_VAMPIRIC   64
 Is repelled by crosses.

#define FACING_FRONT   0
#define FACING_FLANK   1
#define FACING_BEHIND   2


Define Documentation

#define FACING_BEHIND   2
 

Definition at line 207 of file monst.h.

Referenced by monst_attack_type(), monst_facing(), and monst_hit_plr().

#define FACING_FLANK   1
 

Definition at line 206 of file monst.h.

Referenced by monst_facing().

#define FACING_FRONT   0
 

Definition at line 205 of file monst.h.

Referenced by monst_facing().

#define MTRIGGER_DEATH   3
 

monstattack::trigger After the monster is killed

Definition at line 42 of file monst.h.

Referenced by monst_takedamage().

#define MTRIGGER_DEFENSE   2
 

monstattack::trigger After the monster is hit (but not killed)

Definition at line 40 of file monst.h.

Referenced by monst_takedamage().

#define MTRIGGER_NORMAL   0
 

monstattack::trigger When the monster is in melee range

Definition at line 36 of file monst.h.

Referenced by monst_battle_pet(), monstmoveto(), and pet_move().

#define MTRIGGER_PREEMPT   5
 

monstattack::trigger Before an attack is made (prevents the attack from registering).

Definition at line 48 of file monst.h.

Referenced by plr_attack().

#define MTRIGGER_RANGED   1
 

monstattack::trigger When the monster's lined up for a ranged attack

Definition at line 38 of file monst.h.

Referenced by monstmove(), and monstmoveto().

#define MTRIGGER_SEEN   4
 

monstattack::trigger When the monster sees the player and has nothing more specific to do

Definition at line 45 of file monst.h.

Referenced by monstmove().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6