terrain.cc File Reference

#include "AppHdr.h"
#include "externs.h"
#include "terrain.h"
#include <algorithm>
#include <sstream>
#include "cloud.h"
#include "coordit.h"
#include "dgn-overview.h"
#include "dgnevent.h"
#include "directn.h"
#include "map_knowledge.h"
#include "feature.h"
#include "fprop.h"
#include "godabil.h"
#include "itemprop.h"
#include "items.h"
#include "libutil.h"
#include "message.h"
#include "misc.h"
#include "mon-place.h"
#include "coord.h"
#include "mon-stuff.h"
#include "mon-util.h"
#include "ouch.h"
#include "player.h"
#include "random.h"
#include "religion.h"
#include "spl-transloc.h"
#include "stuff.h"
#include "env.h"
#include "travel.h"
#include "transform.h"
#include "traps.h"
#include "view.h"
#include "viewchar.h"

Include dependency graph for terrain.cc:


Typedefs

typedef FixedArray< bool, GXM,
GYM > 
map_mask_boolean
typedef std::map< std::string,
dungeon_feature_type
feat_desc_map

Functions

actoractor_at (const coord_def &c)
int count_neighbours_with_func (const coord_def &c, bool(*checker)(dungeon_feature_type))
bool feat_is_test (dungeon_feature_type feat, bool(*checker)(dungeon_feature_type))
bool feat_is_test (const coord_def &c, bool(*checker)(dungeon_feature_type))
bool feat_is_malign_gateway_suitable (dungeon_feature_type feat)
bool feat_is_wall (dungeon_feature_type feat)
bool feat_is_stone_stair (dungeon_feature_type feat)
bool feat_is_staircase (dungeon_feature_type feat)
bool feat_sealable_portal (dungeon_feature_type feat)
bool feat_is_portal (dungeon_feature_type feat)
bool feat_is_stair (dungeon_feature_type gridc)
bool feat_is_travelable_stair (dungeon_feature_type feat)
bool feat_is_escape_hatch (dungeon_feature_type feat)
bool feat_is_gate (dungeon_feature_type feat)
command_type feat_stair_direction (dungeon_feature_type feat)
bool feat_is_opaque (dungeon_feature_type feat)
bool feat_is_solid (dungeon_feature_type feat)
bool cell_is_solid (int x, int y)
bool cell_is_solid (const coord_def &c)
bool feat_is_floor (dungeon_feature_type feat)
bool feat_has_solid_floor (dungeon_feature_type feat)
bool feat_is_door (dungeon_feature_type feat)
bool feat_is_closed_door (dungeon_feature_type feat)
bool feat_is_secret_door (dungeon_feature_type feat)
bool feat_is_statue_or_idol (dungeon_feature_type feat)
bool feat_is_rock (dungeon_feature_type feat)
bool feat_is_permarock (dungeon_feature_type feat)
bool feat_is_trap (dungeon_feature_type feat, bool undiscovered_too)
bool feat_is_water (dungeon_feature_type feat)
bool feat_is_watery (dungeon_feature_type feat)
god_type feat_altar_god (dungeon_feature_type feat)
dungeon_feature_type altar_for_god (god_type god)
bool feat_is_altar (dungeon_feature_type grid)
bool feat_is_player_altar (dungeon_feature_type grid)
bool feat_is_branch_stairs (dungeon_feature_type feat)
bool feat_is_tree (dungeon_feature_type feat)
bool feat_is_bidirectional_portal (dungeon_feature_type feat)
void find_connected_identical (const coord_def &d, dungeon_feature_type ft, std::set< coord_def > &out)
std::set< coord_defconnected_doors (const coord_def &d)
void get_door_description (int door_size, const char **adjective, const char **noun)
dungeon_feature_type grid_appearance (const coord_def &gc)
bool find_secret_door_info (const coord_def &where, dungeon_feature_type *appearance, coord_def *gc)
dungeon_feature_type grid_secret_door_appearance (const coord_def &where)
bool slime_wall_neighbour (const coord_def &c)
bool feat_destroys_item (dungeon_feature_type feat, const item_def &item, bool noisy)
bool is_critical_feature (dungeon_feature_type feat)
void dgn_move_entities_at (coord_def src, coord_def dst, bool move_player, bool move_monster, bool move_items)
void dungeon_terrain_changed (const coord_def &pos, dungeon_feature_type nfeat, bool affect_player, bool preserve_features, bool preserve_items)
bool swap_features (const coord_def &pos1, const coord_def &pos2, bool swap_everything, bool announce)
bool slide_feature_over (const coord_def &src, coord_def prefered_dest, bool announce)
bool fall_into_a_pool (const coord_def &entry, bool allow_shift, dungeon_feature_type terrain)
void init_feat_desc_cache ()
dungeon_feature_type feat_by_desc (std::string desc)
std::string feat_preposition (dungeon_feature_type feat, bool active, const actor *who)
std::string stair_climb_verb (dungeon_feature_type feat)
dungeon_feature_type dungeon_feature_by_name (const std::string &name)
std::vector< std::stringdungeon_feature_matches (const std::string &name)
const char * dungeon_feature_name (dungeon_feature_type rfeat)
void nuke_wall (const coord_def &p)

Variables

const char * dngn_feature_names []

Typedef Documentation

typedef FixedArray<bool, GXM, GYM> map_mask_boolean


Function Documentation

actor* actor_at ( const coord_def c  ) 

Here is the call graph for this function:

dungeon_feature_type altar_for_god ( god_type  god  ) 

bool cell_is_solid ( const coord_def c  ) 

Here is the call graph for this function:

bool cell_is_solid ( int  x,
int  y 
)

Here is the call graph for this function:

std::set<coord_def> connected_doors ( const coord_def d  ) 

int count_neighbours_with_func ( const coord_def c,
bool(*)(dungeon_feature_type checker 
)

void dgn_move_entities_at ( coord_def  src,
coord_def  dst,
bool  move_player,
bool  move_monster,
bool  move_items 
)

Here is the call graph for this function:

dungeon_feature_type dungeon_feature_by_name ( const std::string name  ) 

Here is the call graph for this function:

std::vector<std::string> dungeon_feature_matches ( const std::string name  ) 

const char* dungeon_feature_name ( dungeon_feature_type  rfeat  ) 

void dungeon_terrain_changed ( const coord_def pos,
dungeon_feature_type  nfeat,
bool  affect_player,
bool  preserve_features,
bool  preserve_items 
)

Here is the call graph for this function:

bool fall_into_a_pool ( const coord_def entry,
bool  allow_shift,
dungeon_feature_type  terrain 
)

Here is the call graph for this function:

god_type feat_altar_god ( dungeon_feature_type  feat  ) 

dungeon_feature_type feat_by_desc ( std::string  desc  ) 

Here is the call graph for this function:

bool feat_destroys_item ( dungeon_feature_type  feat,
const item_def item,
bool  noisy 
)

Here is the call graph for this function:

bool feat_has_solid_floor ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

bool feat_is_altar ( dungeon_feature_type  grid  ) 

Here is the call graph for this function:

bool feat_is_bidirectional_portal ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

bool feat_is_branch_stairs ( dungeon_feature_type  feat  ) 

bool feat_is_closed_door ( dungeon_feature_type  feat  ) 

bool feat_is_door ( dungeon_feature_type  feat  ) 

bool feat_is_escape_hatch ( dungeon_feature_type  feat  ) 

bool feat_is_floor ( dungeon_feature_type  feat  ) 

bool feat_is_gate ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

bool feat_is_malign_gateway_suitable ( dungeon_feature_type  feat  ) 

bool feat_is_opaque ( dungeon_feature_type  feat  ) 

bool feat_is_permarock ( dungeon_feature_type  feat  ) 

bool feat_is_player_altar ( dungeon_feature_type  grid  ) 

Here is the call graph for this function:

bool feat_is_portal ( dungeon_feature_type  feat  ) 

bool feat_is_rock ( dungeon_feature_type  feat  ) 

bool feat_is_secret_door ( dungeon_feature_type  feat  ) 

bool feat_is_solid ( dungeon_feature_type  feat  ) 

bool feat_is_stair ( dungeon_feature_type  gridc  ) 

Here is the call graph for this function:

bool feat_is_staircase ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

bool feat_is_statue_or_idol ( dungeon_feature_type  feat  ) 

bool feat_is_stone_stair ( dungeon_feature_type  feat  ) 

bool feat_is_test ( const coord_def c,
bool(*)(dungeon_feature_type checker 
)

bool feat_is_test ( dungeon_feature_type  feat,
bool(*)(dungeon_feature_type checker 
)

bool feat_is_trap ( dungeon_feature_type  feat,
bool  undiscovered_too 
)

bool feat_is_travelable_stair ( dungeon_feature_type  feat  ) 

bool feat_is_tree ( dungeon_feature_type  feat  ) 

bool feat_is_wall ( dungeon_feature_type  feat  ) 

bool feat_is_water ( dungeon_feature_type  feat  ) 

bool feat_is_watery ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

std::string feat_preposition ( dungeon_feature_type  feat,
bool  active,
const actor who 
)

Here is the call graph for this function:

bool feat_sealable_portal ( dungeon_feature_type  feat  ) 

command_type feat_stair_direction ( dungeon_feature_type  feat  ) 

void find_connected_identical ( const coord_def d,
dungeon_feature_type  ft,
std::set< coord_def > &  out 
)

Here is the call graph for this function:

bool find_secret_door_info ( const coord_def where,
dungeon_feature_type appearance,
coord_def gc 
)

Here is the call graph for this function:

void get_door_description ( int  door_size,
const char **  adjective,
const char **  noun 
)

Here is the call graph for this function:

dungeon_feature_type grid_appearance ( const coord_def gc  ) 

Here is the call graph for this function:

dungeon_feature_type grid_secret_door_appearance ( const coord_def where  ) 

Here is the call graph for this function:

void init_feat_desc_cache (  ) 

Here is the call graph for this function:

bool is_critical_feature ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

void nuke_wall ( const coord_def p  ) 

Here is the call graph for this function:

bool slide_feature_over ( const coord_def src,
coord_def  prefered_dest,
bool  announce 
)

Here is the call graph for this function:

bool slime_wall_neighbour ( const coord_def c  ) 

std::string stair_climb_verb ( dungeon_feature_type  feat  ) 

Here is the call graph for this function:

bool swap_features ( const coord_def pos1,
const coord_def pos2,
bool  swap_everything,
bool  announce 
)

Here is the call graph for this function:


Variable Documentation

const char* dngn_feature_names[]


Generated on Thu Jan 13 13:28:03 2011 by  doxygen 1.5.6