mon-stuff.h File Reference

Go to the source code of this file.

Classes

struct  level_exit

Defines

#define ORIG_MONSTER_KEY   "orig_monster_key"
#define FRESHEST_CORPSE   210
#define ROTTING_CORPSE   99
#define YOU_KILL(x)
#define MON_KILL(x)   ((x) == KILL_MON || (x) == KILL_MON_MISSILE)
#define SAME_ATTITUDE(x)
#define MONST_INTERESTING(x)   (x->flags & MF_INTERESTING)

Enumerations

enum  mon_dam_level_type {
  MDAM_OKAY, MDAM_LIGHTLY_DAMAGED, MDAM_MODERATELY_DAMAGED, MDAM_HEAVILY_DAMAGED,
  MDAM_SEVERELY_DAMAGED, MDAM_ALMOST_DEAD, MDAM_DEAD
}
enum  mon_desc_type { MDSC_LEAVES_HIDE, MDSC_REGENERATES, MDSC_NOMSG_WOUNDS }
enum  poly_power_type { PPT_LESS, PPT_MORE, PPT_SAME }

Functions

const item_defgive_mimic_item (monster *mimic)
const item_defget_mimic_item (const monster *mimic)
int get_mimic_colour (const monster *mimic)
dungeon_feature_type get_mimic_feat (const monster *mimic)
bool feature_mimic_at (const coord_def &c)
void alert_nearby_monsters (void)
beh_type attitude_creation_behavior (mon_attitude_type att)
beh_type actual_same_attitude (const monster &base)
bool monster_polymorph (monster *mons, monster_type targetc, poly_power_type power=PPT_SAME, bool force_beh=false)
int monster_die (monster *mons, killer_type killer, int killer_index, bool silent=false, bool wizard=false, bool fake=false)
int mounted_kill (monster *daddy, monster_type mc, killer_type killer, int killer_index)
monster_type fill_out_corpse (const monster *mons, monster_type mtype, item_def &corpse, bool force_corpse=false)
bool explode_corpse (item_def &corpse, const coord_def &where)
int place_monster_corpse (const monster *mons, bool silent, bool force=false)
void slimify_monster (monster *mons, bool hostile=false)
bool mon_can_be_slimified (monster *mons)
void corrode_monster (monster *mons)
void mons_check_pool (monster *mons, const coord_def &oldpos, killer_type killer=KILL_NONE, int killnum=-1)
void monster_cleanup (monster *mons)
int dismiss_monsters (std::string pattern)
bool curse_an_item (bool decay_potions, bool quiet=false)
bool is_any_item (const item_def &item)
void monster_drop_things (monster *mons, bool mark_item_origins=false, bool(*suitable)(const item_def &item)=is_any_item, int owner_id=NON_ITEM)
bool monster_blink (monster *mons, bool quiet=false)
bool simple_monster_message (const monster *mons, const char *event, msg_channel_type channel=MSGCH_PLAIN, int param=0, description_level_type descrip=DESC_CAP_THE)
bool choose_any_monster (const monster *mon)
monsterchoose_random_nearby_monster (int weight, bool(*suitable)(const monster *mon)=choose_any_monster, bool in_sight=true, bool prefer_named=false, bool prefer_priest=false)
monsterchoose_random_monster_on_level (int weight, bool(*suitable)(const monster *mon)=choose_any_monster, bool in_sight=true, bool near_by=false, bool prefer_named=false, bool prefer_priest=false)
bool swap_places (monster *mons)
bool swap_places (monster *mons, const coord_def &loc)
bool swap_check (monster *mons, coord_def &loc, bool quiet=false)
std::string get_wounds_description (const monster *mons, bool colour=false)
std::string get_wounds_description_sentence (const monster *mons)
void print_wounds (const monster *mons)
bool monster_descriptor (int which_class, mon_desc_type which_descriptor)
monsterget_current_target ()
mon_dam_level_type mons_get_damage_level (const monster *mons)
std::string get_damage_level_string (mon_holy_type holi, mon_dam_level_type mdam)
void seen_monster (monster *mons)
bool shift_monster (monster *mon, coord_def p=coord_def(0, 0))
int mons_weapon_damage_rating (const item_def &launcher)
int mons_missile_damage (monster *mons, const item_def *launch, const item_def *missile)
int mons_pick_best_missile (monster *mons, item_def **launcher, bool ignore_melee=false)
int mons_thrown_weapon_damage (const item_def *weap, bool only_returning_weapons=false)
int mons_natural_regen_rate (monster *mons)
void mons_relocated (monster *mons)
void mons_att_changed (monster *mons)
bool can_go_straight (const coord_def &p1, const coord_def &p2, dungeon_feature_type allowed)
bool is_item_jelly_edible (const item_def &item)
bool monster_random_space (const monster *mons, coord_def &target, bool forbid_sanctuary=false)
bool monster_random_space (monster_type mon, coord_def &target, bool forbid_sanctuary=false)
void monster_teleport (monster *mons, bool instan, bool silent=false)
void mons_clear_trapping_net (monster *mon)
std::string summoned_poof_msg (const monster *mons, bool plural=false)
std::string summoned_poof_msg (const int midx, const item_def &item)
std::string summoned_poof_msg (const monster *mons, const item_def &item)
bool mons_reaped (actor *killer, monster *victim)
actorforest_near_enemy (const actor *mon)
void forest_message (const coord_def pos, const std::string msg, msg_channel_type ch=MSGCH_PLAIN)
void forest_damage (const actor *mon)
void setup_spore_explosion (bolt &beam, const monster &origin)
void setup_lightning_explosion (bolt &beam, const monster &origin)
bool mons_avoids_cloud (const monster *mons, cloud_type cl_type, bool placement=false)
bool mons_avoids_cloud (const monster *mons, int cloud_num, bool placement=false)
void debuff_monster (monster *mons)
int exp_rate (int killer)
int count_monsters (monster_type mtyp, bool friendlyOnly)
int count_allies ()


Define Documentation

#define FRESHEST_CORPSE   210

#define MON_KILL (  )     ((x) == KILL_MON || (x) == KILL_MON_MISSILE)

#define MONST_INTERESTING (  )     (x->flags & MF_INTERESTING)

#define ORIG_MONSTER_KEY   "orig_monster_key"

#define ROTTING_CORPSE   99

#define SAME_ATTITUDE (  ) 

Value:

(x->friendly()       ? BEH_FRIENDLY : \
                          x->good_neutral()   ? BEH_GOOD_NEUTRAL : \
                          x->strict_neutral() ? BEH_STRICT_NEUTRAL : \
                          x->neutral()        ? BEH_NEUTRAL \
                                              : BEH_HOSTILE)

#define YOU_KILL (  ) 

Value:

((x) == KILL_YOU || (x) == KILL_YOU_MISSILE \
                     || (x) == KILL_YOU_CONF)


Enumeration Type Documentation

Enumerator:
MDAM_OKAY 
MDAM_LIGHTLY_DAMAGED 
MDAM_MODERATELY_DAMAGED 
MDAM_HEAVILY_DAMAGED 
MDAM_SEVERELY_DAMAGED 
MDAM_ALMOST_DEAD 
MDAM_DEAD 

Enumerator:
MDSC_LEAVES_HIDE 
MDSC_REGENERATES 
MDSC_NOMSG_WOUNDS 

Enumerator:
PPT_LESS 
PPT_MORE 
PPT_SAME 


Function Documentation

beh_type actual_same_attitude ( const monster base  ) 

Here is the call graph for this function:

void alert_nearby_monsters ( void   ) 

Here is the call graph for this function:

beh_type attitude_creation_behavior ( mon_attitude_type  att  ) 

bool can_go_straight ( const coord_def p1,
const coord_def p2,
dungeon_feature_type  allowed 
)

Here is the call graph for this function:

bool choose_any_monster ( const monster mon  ) 

Here is the call graph for this function:

monster* choose_random_monster_on_level ( int  weight,
bool(*)(const monster *mon)  suitable = choose_any_monster,
bool  in_sight = true,
bool  near_by = false,
bool  prefer_named = false,
bool  prefer_priest = false 
)

Here is the call graph for this function:

monster* choose_random_nearby_monster ( int  weight,
bool(*)(const monster *mon)  suitable = choose_any_monster,
bool  in_sight = true,
bool  prefer_named = false,
bool  prefer_priest = false 
)

Here is the call graph for this function:

void corrode_monster ( monster mons  ) 

Here is the call graph for this function:

int count_allies (  ) 

int count_monsters ( monster_type  mtyp,
bool  friendlyOnly 
)

Here is the call graph for this function:

bool curse_an_item ( bool  decay_potions,
bool  quiet = false 
)

Here is the call graph for this function:

void debuff_monster ( monster mons  ) 

Here is the call graph for this function:

int dismiss_monsters ( std::string  pattern  ) 

Here is the call graph for this function:

int exp_rate ( int  killer  ) 

bool explode_corpse ( item_def corpse,
const coord_def where 
)

Here is the call graph for this function:

bool feature_mimic_at ( const coord_def c  ) 

Here is the call graph for this function:

monster_type fill_out_corpse ( const monster mons,
monster_type  mtype,
item_def corpse,
bool  force_corpse = false 
)

Here is the call graph for this function:

void forest_damage ( const actor mon  ) 

Here is the call graph for this function:

void forest_message ( const coord_def  pos,
const std::string  msg,
msg_channel_type  ch = MSGCH_PLAIN 
)

Here is the call graph for this function:

actor* forest_near_enemy ( const actor mon  ) 

Here is the call graph for this function:

monster* get_current_target (  ) 

Here is the call graph for this function:

std::string get_damage_level_string ( mon_holy_type  holi,
mon_dam_level_type  mdam 
)

int get_mimic_colour ( const monster mimic  ) 

Here is the call graph for this function:

dungeon_feature_type get_mimic_feat ( const monster mimic  ) 

Here is the call graph for this function:

const item_def& get_mimic_item ( const monster mimic  ) 

Here is the call graph for this function:

std::string get_wounds_description ( const monster mons,
bool  colour = false 
)

Here is the call graph for this function:

std::string get_wounds_description_sentence ( const monster mons  ) 

Here is the call graph for this function:

const item_def* give_mimic_item ( monster mimic  ) 

Here is the call graph for this function:

bool is_any_item ( const item_def item  ) 

bool is_item_jelly_edible ( const item_def item  ) 

Here is the call graph for this function:

bool mon_can_be_slimified ( monster mons  ) 

Here is the call graph for this function:

void mons_att_changed ( monster mons  ) 

Here is the call graph for this function:

bool mons_avoids_cloud ( const monster mons,
int  cloud_num,
bool  placement = false 
)

Here is the call graph for this function:

bool mons_avoids_cloud ( const monster mons,
cloud_type  cl_type,
bool  placement = false 
)

void mons_check_pool ( monster mons,
const coord_def oldpos,
killer_type  killer = KILL_NONE,
int  killnum = -1 
)

Here is the call graph for this function:

void mons_clear_trapping_net ( monster mon  ) 

Here is the call graph for this function:

mon_dam_level_type mons_get_damage_level ( const monster mons  ) 

Here is the call graph for this function:

int mons_missile_damage ( monster mons,
const item_def launch,
const item_def missile 
)

Here is the call graph for this function:

int mons_natural_regen_rate ( monster mons  ) 

Here is the call graph for this function:

int mons_pick_best_missile ( monster mons,
item_def **  launcher,
bool  ignore_melee = false 
)

Here is the call graph for this function:

bool mons_reaped ( actor killer,
monster victim 
)

Here is the call graph for this function:

void mons_relocated ( monster mons  ) 

Here is the call graph for this function:

int mons_thrown_weapon_damage ( const item_def weap,
bool  only_returning_weapons = false 
)

Here is the call graph for this function:

int mons_weapon_damage_rating ( const item_def launcher  ) 

Here is the call graph for this function:

bool monster_blink ( monster mons,
bool  quiet = false 
)

Here is the call graph for this function:

void monster_cleanup ( monster mons  ) 

Here is the call graph for this function:

bool monster_descriptor ( int  which_class,
mon_desc_type  which_descriptor 
)

Here is the call graph for this function:

int monster_die ( monster mons,
killer_type  killer,
int  killer_index,
bool  silent = false,
bool  wizard = false,
bool  fake = false 
)

void monster_drop_things ( monster mons,
bool  mark_item_origins = false,
bool(*)(const item_def &item)  suitable = is_any_item,
int  owner_id = NON_ITEM 
)

Here is the call graph for this function:

bool monster_polymorph ( monster mons,
monster_type  targetc,
poly_power_type  power = PPT_SAME,
bool  force_beh = false 
)

Here is the call graph for this function:

bool monster_random_space ( monster_type  mon,
coord_def target,
bool  forbid_sanctuary = false 
)

Here is the call graph for this function:

bool monster_random_space ( const monster mons,
coord_def target,
bool  forbid_sanctuary = false 
)

Here is the call graph for this function:

void monster_teleport ( monster mons,
bool  instan,
bool  silent = false 
)

Here is the call graph for this function:

int mounted_kill ( monster daddy,
monster_type  mc,
killer_type  killer,
int  killer_index 
)

Here is the call graph for this function:

int place_monster_corpse ( const monster mons,
bool  silent,
bool  force = false 
)

Here is the call graph for this function:

void print_wounds ( const monster mons  ) 

Here is the call graph for this function:

void seen_monster ( monster mons  ) 

Here is the call graph for this function:

void setup_lightning_explosion ( bolt beam,
const monster origin 
)

Here is the call graph for this function:

void setup_spore_explosion ( bolt beam,
const monster origin 
)

bool shift_monster ( monster mon,
coord_def  p = coord_def(0, 0) 
)

Here is the call graph for this function:

bool simple_monster_message ( const monster mons,
const char *  event,
msg_channel_type  channel = MSGCH_PLAIN,
int  param = 0,
description_level_type  descrip = DESC_CAP_THE 
)

Here is the call graph for this function:

void slimify_monster ( monster mons,
bool  hostile = false 
)

Here is the call graph for this function:

std::string summoned_poof_msg ( const monster mons,
const item_def item 
)

Here is the call graph for this function:

std::string summoned_poof_msg ( const int  midx,
const item_def item 
)

Here is the call graph for this function:

std::string summoned_poof_msg ( const monster mons,
bool  plural = false 
)

Here is the call graph for this function:

bool swap_check ( monster mons,
coord_def loc,
bool  quiet = false 
)

Here is the call graph for this function:

bool swap_places ( monster mons,
const coord_def loc 
)

Here is the call graph for this function:

bool swap_places ( monster mons  ) 

Here is the call graph for this function:


Generated on Thu Jan 13 13:14:32 2011 by  doxygen 1.5.6