mon-place.cc File Reference

#include "AppHdr.h"
#include <algorithm>
#include "mon-place.h"
#include "mgen_data.h"
#include "areas.h"
#include "arena.h"
#include "branch.h"
#include "colour.h"
#include "coord.h"
#include "coordit.h"
#include "directn.h"
#include "dungeon.h"
#include "fprop.h"
#include "godabil.h"
#include "externs.h"
#include "options.h"
#include "ghost.h"
#include "itemname.h"
#include "lev-pand.h"
#include "libutil.h"
#include "message.h"
#include "mislead.h"
#include "mon-behv.h"
#include "mon-gear.h"
#include "mon-iter.h"
#include "mon-pick.h"
#include "mon-util.h"
#include "mon-stuff.h"
#include "player.h"
#include "random.h"
#include "religion.h"
#include "shopping.h"
#include "spl-damage.h"
#include "sprint.h"
#include "stairs.h"
#include "state.h"
#include "stuff.h"
#include "env.h"
#include "terrain.h"
#include "traps.h"
#include "travel.h"
#include "view.h"
#include "viewchar.h"

Include dependency graph for mon-place.cc:


Classes

class  newmons_square_find

Defines

#define VAULT_MON_TYPES_KEY   "vault_mon_types"
#define VAULT_MON_BASES_KEY   "vault_mon_bases"
#define VAULT_MON_WEIGHTS_KEY   "vault_mon_weights"
#define BIG_BAND   20

Functions

bool feat_compatible (dungeon_feature_type feat_wanted, dungeon_feature_type actual_feat)
bool monster_habitable_grid (const monster *mon, dungeon_feature_type actual_grid)
bool mons_airborne (int mcls, int flies, bool paralysed)
bool monster_habitable_grid (monster_type mt, dungeon_feature_type actual_grid, dungeon_feature_type wanted_grid_feature, int flies, bool paralysed)
bool monster_can_submerge (const monster *mon, dungeon_feature_type feat)
bool is_spawn_scaled_area (const level_id &here)
void spawn_random_monsters ()
monster_type pick_random_monster (const level_id &place, bool *chose_ood_monster)
monster_type pick_random_monster (const level_id &place, int power, int &lev_mons, bool *chose_ood_monster, bool force_mobile)
bool can_place_on_trap (int mon_type, trap_type trap)
bool drac_colour_incompatible (int drac, int colour)
bool find_mon_place_near_stairs (coord_def &pos, dungeon_char_type *stair_type, branch_type &branch)
monster_type pick_random_monster_for_place (const level_id &place, monster_type zombie_monster, bool moderate_ood, bool super_ood, bool want_corpse_capable)
monster_type resolve_monster_type (monster_type mon_type, dungeon_feature_type feat)
monster_type resolve_corpse_monster_type (monster_type mon_type, dungeon_feature_type feat, level_id place)
int place_monster (mgen_data mg, bool force_pos)
monsterget_free_monster ()
void mons_add_blame (monster *mon, const std::string &blame_string)
monster_type pick_random_zombie ()
monster_type pick_local_zombifiable_monster (int power, bool hack_hd, monster_type cs, const coord_def &pos)
void roll_zombie_hp (monster *mon)
void define_zombie (monster *mon, monster_type ztype, monster_type cs)
void mark_interesting_monst (monster *mons, beh_type behaviour)
int mons_place (mgen_data mg)
coord_def find_newmons_square_contiguous (monster_type mons_class, const coord_def &start, int distance)
coord_def find_newmons_square (int mons_class, const coord_def &p)
bool player_will_anger_monster (monster_type type, bool *holy, bool *unholy, bool *lawful, bool *antimagical)
bool player_will_anger_monster (monster *mon, bool *holy, bool *unholy, bool *lawful, bool *antimagical)
bool player_angers_monster (monster *mon)
int create_monster (mgen_data mg, bool fail_msg)
bool empty_surrounds (const coord_def &where, dungeon_feature_type spc_wanted, int radius, bool allow_centre, coord_def &empty)
monster_type summon_any_demon (demon_class_type dct)
monster_type summon_any_holy_being (holy_being_class_type hbct)
monster_type summon_any_dragon (dragon_class_type dct)
void set_vault_mon_list (const std::vector< mons_spec > &list)
void get_vault_mon_list (std::vector< mons_spec > &list)
void setup_vault_mon_list ()

Variables

band_type active_monster_band = BAND_NO_BAND

Define Documentation

#define BIG_BAND   20

#define VAULT_MON_BASES_KEY   "vault_mon_bases"

#define VAULT_MON_TYPES_KEY   "vault_mon_types"

#define VAULT_MON_WEIGHTS_KEY   "vault_mon_weights"


Function Documentation

bool can_place_on_trap ( int  mon_type,
trap_type  trap 
)

Here is the call graph for this function:

int create_monster ( mgen_data  mg,
bool  fail_msg 
)

Here is the call graph for this function:

void define_zombie ( monster mon,
monster_type  ztype,
monster_type  cs 
)

Here is the call graph for this function:

bool drac_colour_incompatible ( int  drac,
int  colour 
)

bool empty_surrounds ( const coord_def where,
dungeon_feature_type  spc_wanted,
int  radius,
bool  allow_centre,
coord_def empty 
)

Here is the call graph for this function:

bool feat_compatible ( dungeon_feature_type  feat_wanted,
dungeon_feature_type  actual_feat 
)

bool find_mon_place_near_stairs ( coord_def pos,
dungeon_char_type stair_type,
branch_type branch 
)

Here is the call graph for this function:

coord_def find_newmons_square ( int  mons_class,
const coord_def p 
)

Here is the call graph for this function:

coord_def find_newmons_square_contiguous ( monster_type  mons_class,
const coord_def start,
int  distance 
)

Here is the call graph for this function:

monster* get_free_monster (  ) 

void get_vault_mon_list ( std::vector< mons_spec > &  list  ) 

Here is the call graph for this function:

bool is_spawn_scaled_area ( const level_id here  ) 

Here is the call graph for this function:

void mark_interesting_monst ( monster mons,
beh_type  behaviour 
)

Here is the call graph for this function:

void mons_add_blame ( monster mon,
const std::string blame_string 
)

Here is the call graph for this function:

bool mons_airborne ( int  mcls,
int  flies,
bool  paralysed 
)

Here is the call graph for this function:

int mons_place ( mgen_data  mg  ) 

Here is the call graph for this function:

bool monster_can_submerge ( const monster mon,
dungeon_feature_type  feat 
)

Here is the call graph for this function:

bool monster_habitable_grid ( monster_type  mt,
dungeon_feature_type  actual_grid,
dungeon_feature_type  wanted_grid_feature,
int  flies,
bool  paralysed 
)

Here is the call graph for this function:

bool monster_habitable_grid ( const monster mon,
dungeon_feature_type  actual_grid 
)

Here is the call graph for this function:

monster_type pick_local_zombifiable_monster ( int  power,
bool  hack_hd,
monster_type  cs,
const coord_def pos 
)

Here is the call graph for this function:

monster_type pick_random_monster ( const level_id place,
int  power,
int &  lev_mons,
bool *  chose_ood_monster,
bool  force_mobile 
)

Here is the call graph for this function:

monster_type pick_random_monster ( const level_id place,
bool *  chose_ood_monster 
)

Here is the call graph for this function:

monster_type pick_random_monster_for_place ( const level_id place,
monster_type  zombie_monster,
bool  moderate_ood,
bool  super_ood,
bool  want_corpse_capable 
)

Here is the call graph for this function:

monster_type pick_random_zombie (  ) 

Here is the call graph for this function:

int place_monster ( mgen_data  mg,
bool  force_pos 
)

Here is the call graph for this function:

bool player_angers_monster ( monster mon  ) 

Here is the call graph for this function:

bool player_will_anger_monster ( monster mon,
bool *  holy,
bool *  unholy,
bool *  lawful,
bool *  antimagical 
)

Here is the call graph for this function:

bool player_will_anger_monster ( monster_type  type,
bool *  holy,
bool *  unholy,
bool *  lawful,
bool *  antimagical 
)

Here is the call graph for this function:

monster_type resolve_corpse_monster_type ( monster_type  mon_type,
dungeon_feature_type  feat,
level_id  place 
)

Here is the call graph for this function:

monster_type resolve_monster_type ( monster_type  mon_type,
dungeon_feature_type  feat 
)

void roll_zombie_hp ( monster mon  ) 

Here is the call graph for this function:

void set_vault_mon_list ( const std::vector< mons_spec > &  list  ) 

Here is the call graph for this function:

void setup_vault_mon_list (  ) 

Here is the call graph for this function:

void spawn_random_monsters (  ) 

Here is the call graph for this function:

monster_type summon_any_demon ( demon_class_type  dct  ) 

Here is the call graph for this function:

monster_type summon_any_dragon ( dragon_class_type  dct  ) 

Here is the call graph for this function:

monster_type summon_any_holy_being ( holy_being_class_type  hbct  ) 

Here is the call graph for this function:


Variable Documentation


Generated on Thu Jan 13 13:13:08 2011 by  doxygen 1.5.6