#include <terrain.hpp>
Definition at line 25 of file terrain.hpp.
terrain_type::terrain_type | ( | ) |
Definition at line 31 of file terrain.cpp.
terrain_type::terrain_type | ( | const config & | cfg | ) |
Definition at line 58 of file terrain.cpp.
References _, t_translation::t_terrain::base, combined_, def_type_, editor_image_, t_string::empty(), height_adjust_, income_description_, income_description_ally_, income_description_enemy_, income_description_own_, minimap_image_, t_translation::MINUS, missing_mandatory_wml_key(), mvt_type_, name_, t_translation::NO_LAYER, t_translation::NONE_TERRAIN, number_, overlay_, t_translation::PLUS, t_translation::read_list(), halo::remove(), union_type_, VALIDATE, village_, and t_translation::write_terrain_code().
terrain_type::terrain_type | ( | const terrain_type & | base, | |
const terrain_type & | overlay | |||
) |
Definition at line 164 of file terrain.cpp.
References t_translation::t_terrain::base, castle_, def_type_, editor_group_, editor_image_, heals_, height_adjust_, id_, income_description_, income_description_ally_, income_description_enemy_, income_description_own_, keep_, light_modification_, merge_alias_lists(), minimap_image_, minimap_image_overlay_, t_translation::MINUS, mvt_type_, name_, number_, t_translation::t_terrain::overlay, t_translation::PLUS, halo::remove(), submerge_, union_type_, and village_.
const std::string& terrain_type::minimap_image | ( | ) | const [inline] |
Definition at line 33 of file terrain.hpp.
References minimap_image_.
Referenced by game_display::draw(), display::get_fog_shroud_graphics(), and image::getMinimap().
const std::string& terrain_type::minimap_image_overlay | ( | ) | const [inline] |
Definition at line 34 of file terrain.hpp.
References minimap_image_overlay_.
Referenced by image::getMinimap().
const std::string& terrain_type::editor_image | ( | ) | const [inline] |
Definition at line 35 of file terrain.hpp.
References editor_image_.
Referenced by map_editor::terrain_palette::draw().
const t_string& terrain_type::name | ( | ) | const [inline] |
Definition at line 36 of file terrain.hpp.
References name_.
Referenced by editor_display::draw(), reports::generate_report(), map_editor::terrain_palette::get_terrain_string(), and help::unit_topic_generator::operator()().
const std::string& terrain_type::id | ( | ) | const [inline] |
Definition at line 37 of file terrain.hpp.
References id_.
Referenced by terrain_callable::get_value(), and help::unit_topic_generator::operator()().
t_translation::t_terrain terrain_type::number | ( | ) | const [inline] |
Definition at line 40 of file terrain.hpp.
References number_.
Referenced by create_terrain_maps(), terrain_filter::match_internal(), help::unit_topic_generator::operator()(), and gamemap::try_merge_terrains().
const t_translation::t_list& terrain_type::mvt_type | ( | ) | const [inline] |
const t_translation::t_list& terrain_type::def_type | ( | ) | const [inline] |
const t_translation::t_list& terrain_type::union_type | ( | ) | const [inline] |
Definition at line 45 of file terrain.hpp.
References union_type_.
Referenced by help::unit_topic_generator::operator()().
bool terrain_type::is_nonnull | ( | ) | const [inline] |
Definition at line 47 of file terrain.hpp.
References t_translation::NONE_TERRAIN, number_, and t_translation::VOID_TERRAIN.
Referenced by help::unit_topic_generator::operator()().
int terrain_type::light_modification | ( | ) | const [inline] |
int terrain_type::unit_height_adjust | ( | ) | const [inline] |
Definition at line 51 of file terrain.hpp.
References height_adjust_.
Referenced by unit::overlaps(), and unit::redraw_unit().
double terrain_type::unit_submerge | ( | ) | const [inline] |
Definition at line 52 of file terrain.hpp.
References submerge_.
Referenced by unit::overlaps(), and unit::redraw_unit().
int terrain_type::gives_healing | ( | ) | const [inline] |
Definition at line 54 of file terrain.hpp.
References heals_.
Referenced by gamemap::gives_healing().
bool terrain_type::is_village | ( | ) | const [inline] |
Definition at line 55 of file terrain.hpp.
References village_.
Referenced by gamemap::is_village().
bool terrain_type::is_castle | ( | ) | const [inline] |
bool terrain_type::is_keep | ( | ) | const [inline] |
const t_string& terrain_type::income_description | ( | ) | const [inline] |
Definition at line 61 of file terrain.hpp.
References income_description_.
Referenced by reports::generate_report().
const t_string& terrain_type::income_description_ally | ( | ) | const [inline] |
Definition at line 62 of file terrain.hpp.
References income_description_ally_.
Referenced by reports::generate_report().
const t_string& terrain_type::income_description_enemy | ( | ) | const [inline] |
Definition at line 63 of file terrain.hpp.
References income_description_enemy_.
Referenced by reports::generate_report().
const t_string& terrain_type::income_description_own | ( | ) | const [inline] |
Definition at line 64 of file terrain.hpp.
References income_description_own_.
Referenced by reports::generate_report().
const std::string& terrain_type::editor_group | ( | ) | const [inline] |
Definition at line 66 of file terrain.hpp.
References editor_group_.
Referenced by map_editor::terrain_palette::terrain_palette().
bool terrain_type::is_overlay | ( | ) | const [inline] |
bool terrain_type::is_combined | ( | ) | const [inline] |
Definition at line 69 of file terrain.hpp.
References combined_.
Referenced by image::getMinimap(), and map_editor::terrain_palette::terrain_palette().
t_translation::t_terrain terrain_type::default_base | ( | ) | const [inline] |
Definition at line 71 of file terrain.hpp.
References editor_default_base_.
Referenced by map_editor::terrain_palette::draw(), and gamemap::merge_terrains().
t_translation::t_terrain terrain_type::terrain_with_default_base | ( | ) | const |
Definition at line 226 of file terrain.cpp.
References t_translation::t_terrain::base, editor_default_base_, t_translation::NONE_TERRAIN, number_, t_translation::t_terrain::overlay, and overlay_.
Referenced by map_editor::draw_terrain(), gamemap::merge_terrains(), and map_editor::perform_flood_fill().
std::string terrain_type::minimap_image_ [private] |
The image used in the minimap.
Definition at line 76 of file terrain.hpp.
Referenced by minimap_image(), and terrain_type().
std::string terrain_type::minimap_image_overlay_ [private] |
Definition at line 77 of file terrain.hpp.
Referenced by minimap_image_overlay(), and terrain_type().
std::string terrain_type::editor_image_ [private] |
The image used in the editor pallete if not defined in WML it will be initialized with the value of minimap_image_.
Definition at line 81 of file terrain.hpp.
Referenced by editor_image(), and terrain_type().
std::string terrain_type::id_ [private] |
t_string terrain_type::name_ [private] |
Definition at line 89 of file terrain.hpp.
Referenced by is_nonnull(), number(), terrain_type(), and terrain_with_default_base().
t_translation::t_list terrain_type::mvt_type_ [private] |
t_translation::t_list terrain_type::def_type_ [private] |
int terrain_type::height_adjust_ [private] |
double terrain_type::submerge_ [private] |
int terrain_type::light_modification_ [private] |
int terrain_type::heals_ [private] |
t_string terrain_type::income_description_ [private] |
Definition at line 101 of file terrain.hpp.
Referenced by income_description_ally(), and terrain_type().
Definition at line 102 of file terrain.hpp.
Referenced by income_description_enemy(), and terrain_type().
Definition at line 103 of file terrain.hpp.
Referenced by income_description_own(), and terrain_type().
std::string terrain_type::editor_group_ [private] |
bool terrain_type::village_ [private] |
bool terrain_type::castle_ [private] |
bool terrain_type::keep_ [private] |
bool terrain_type::overlay_ [private] |
Definition at line 109 of file terrain.hpp.
Referenced by is_overlay(), terrain_type(), and terrain_with_default_base().
bool terrain_type::combined_ [private] |
Definition at line 110 of file terrain.hpp.
Referenced by default_base(), and terrain_with_default_base().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |