mon-stuff.cc File Reference

#include "AppHdr.h"
#include "mon-stuff.h"
#include "areas.h"
#include "arena.h"
#include "artefact.h"
#include "attitude-change.h"
#include "cloud.h"
#include "cluautil.h"
#include "coord.h"
#include "coordit.h"
#include "database.h"
#include "delay.h"
#include "dgn-actions.h"
#include "dgnevent.h"
#include "directn.h"
#include "dlua.h"
#include "env.h"
#include "exclude.h"
#include "fprop.h"
#include "files.h"
#include "food.h"
#include "godabil.h"
#include "godconduct.h"
#include "hints.h"
#include "hiscores.h"
#include "itemname.h"
#include "itemprop.h"
#include "items.h"
#include "kills.h"
#include "libutil.h"
#include "makeitem.h"
#include "message.h"
#include "mgen_data.h"
#include "misc.h"
#include "mon-abil.h"
#include "mon-behv.h"
#include "mon-death.h"
#include "mon-iter.h"
#include "mon-place.h"
#include "mon-speak.h"
#include "mon-util.h"
#include "notes.h"
#include "player.h"
#include "random.h"
#include "religion.h"
#include "shout.h"
#include "spl-miscast.h"
#include "spl-summoning.h"
#include "spl-util.h"
#include "stash.h"
#include "state.h"
#include "stuff.h"
#include "tagstring.h"
#include "terrain.h"
#include "transform.h"
#include "traps.h"
#include "view.h"
#include "viewchar.h"
#include "xom.h"

Functions

const item_defgive_mimic_item (monster *mimic)
const item_defget_mimic_item (const monster *mimic)
dungeon_feature_type get_mimic_feat (const monster *mimic)
bool feature_mimic_at (const coord_def &c)
int get_mimic_colour (const monster *mimic)
bool curse_an_item (bool decay_potions, bool quiet)
bool is_any_item (const item_def &item)
void monster_drop_things (monster *mons, bool mark_item_origins, bool(*suitable)(const item_def &item), int owner_id)
monster_type fill_out_corpse (const monster *mons, monster_type mtype, item_def &corpse, bool force_corpse)
bool explode_corpse (item_def &corpse, const coord_def &where)
int place_monster_corpse (const monster *mons, bool silent, bool force)
int exp_rate (int killer)
void setup_spore_explosion (bolt &beam, const monster &origin)
void setup_lightning_explosion (bolt &beam, const monster &origin)
void mons_relocated (monster *mons)
int monster_die (monster *mons, killer_type killer, int killer_index, bool silent, bool wizard, bool fake)
void monster_cleanup (monster *mons)
int mounted_kill (monster *daddy, monster_type mc, killer_type killer, int killer_index)
void alert_nearby_monsters (void)
bool monster_polymorph (monster *mons, monster_type targetc, poly_power_type power, bool force_beh)
bool monster_blink (monster *mons, bool quiet)
bool mon_can_be_slimified (monster *mons)
void slimify_monster (monster *mon, bool hostile)
void corrode_monster (monster *mons)
bool swap_places (monster *mons)
bool swap_places (monster *mons, const coord_def &loc)
bool swap_check (monster *mons, coord_def &loc, bool quiet)
bool monster_can_hit_monster (monster *mons, const monster *targ)
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)
std::string get_wounds_description_sentence (const monster *mons)
std::string get_wounds_description (const monster *mons, bool colour)
void print_wounds (const monster *mons)
void make_mons_leave_level (monster *mon)
bool can_go_straight (const coord_def &p1, const coord_def &p2, dungeon_feature_type allowed)
bool choose_any_monster (const monster *mon)
monsterchoose_random_nearby_monster (int weight, bool(*suitable)(const monster *mon), bool in_sight, bool prefer_named, bool prefer_priest)
monsterchoose_random_monster_on_level (int weight, bool(*suitable)(const monster *mon), bool in_sight, bool near_by, bool prefer_named, bool prefer_priest)
bool simple_monster_message (const monster *mons, const char *event, msg_channel_type channel, int param, description_level_type descrip)
bool mons_avoids_cloud (const monster *mons, const cloud_struct &cloud, bool placement)
bool mons_avoids_cloud (const monster *mons, int cloud_num, bool placement)
int mons_thrown_weapon_damage (const item_def *weap, bool only_returning_weapons)
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)
int mons_natural_regen_rate (monster *mons)
void mons_check_pool (monster *mons, const coord_def &oldpos, killer_type killer, int killnum)
bool monster_descriptor (int which_class, mon_desc_type which_descriptor)
monsterget_current_target ()
void seen_monster (monster *mons)
bool shift_monster (monster *mon, coord_def p)
int dismiss_monsters (std::string pattern)
bool is_item_jelly_edible (const item_def &item)
bool monster_random_space (const monster *mons, coord_def &target, bool forbid_sanctuary)
bool monster_random_space (monster_type mon, coord_def &target, bool forbid_sanctuary)
void monster_teleport (monster *mons, bool instan, bool silent)
void mons_clear_trapping_net (monster *mon)
std::string summoned_poof_msg (const monster *mons, bool plural)
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)
beh_type attitude_creation_behavior (mon_attitude_type att)
beh_type actual_same_attitude (const monster &base)
void mons_att_changed (monster *mon)
actorforest_near_enemy (const actor *mon)
void forest_message (const coord_def pos, const std::string msg, msg_channel_type ch)
void forest_damage (const actor *mon)
void debuff_monster (monster *mon)
int count_monsters (monster_type mtyp, bool friendlyOnly)
int count_allies ()

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,
bool  in_sight,
bool  near_by,
bool  prefer_named,
bool  prefer_priest 
)

Here is the call graph for this function:

monster* choose_random_nearby_monster ( int  weight,
bool(*)(const monster *mon)  suitable,
bool  in_sight,
bool  prefer_named,
bool  prefer_priest 
)

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 
)

Here is the call graph for this function:

void debuff_monster ( monster mon  ) 

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 
)

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 
)

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 
)

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:

void make_mons_leave_level ( monster mon  ) 

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 mon  ) 

Here is the call graph for this function:

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

Here is the call graph for this function:

bool mons_avoids_cloud ( const monster mons,
const cloud_struct cloud,
bool  placement 
)

Here is the call graph for this function:

void mons_check_pool ( monster mons,
const coord_def oldpos,
killer_type  killer,
int  killnum 
)

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 
)

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 
)

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 
)

Here is the call graph for this function:

bool monster_can_hit_monster ( monster mons,
const monster targ 
)

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,
bool  wizard,
bool  fake 
)

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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

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 
)

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 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

void slimify_monster ( monster mon,
bool  hostile 
)

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 
)

Here is the call graph for this function:

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

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:02 2011 by  doxygen 1.5.6