#include <terrain.hpp>
Definition at line 21 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 68 of file terrain.cpp.
References _(), def_type_, editor_image_, t_string::empty(), hide_in_editor_, 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::NONE_TERRAIN, number_, t_translation::PLUS, t_translation::read_list(), schema_validation::remove, sort(), union_type_, VALIDATE, village_, vision_type_, and t_translation::write_terrain_code().
terrain_type::terrain_type | ( | const terrain_type & | base, |
const terrain_type & | overlay | ||
) |
Definition at line 197 of file terrain.cpp.
References def_type_, description(), description_, t_string::empty(), height_adjust_, height_adjust_set_, income_description_, income_description_ally_, income_description_enemy_, income_description_own_, merge_alias_lists(), t_translation::MINUS, mvt_type_, t_translation::PLUS, schema_validation::remove, sort(), submerge_, submerge_set_, union_type_, village_, and vision_type_.
|
inline |
Definition at line 47 of file terrain.hpp.
References def_type_.
|
inline |
Definition at line 79 of file terrain.hpp.
References editor_default_base_.
Referenced by editor::terrain_palette::draw_item(), and terrain_type_data::merge_terrains().
|
inline |
Definition at line 35 of file terrain.hpp.
References description_, t_string::empty(), and name_.
Referenced by editor_name(), terrain_type_data::get_terrain_editor_string(), terrain_type_data::get_terrain_string(), terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), terrain_type(), and unit_defense().
|
inline |
Definition at line 73 of file terrain.hpp.
References editor_group_.
Referenced by create_terrain_maps(), help::terrain_topic_generator::operator()(), and editor::terrain_palette::setup().
|
inline |
Definition at line 32 of file terrain.hpp.
References editor_image_.
Referenced by editor::terrain_palette::draw_item(), game_lua_kernel::intf_get_terrain_info(), help::terrain_topic_generator::operator()(), and editor::mouse_action::set_terrain_mouse_overlay().
|
inline |
Definition at line 34 of file terrain.hpp.
References description(), editor_name_, and t_string::empty().
Referenced by help::generate_terrain_sections(), terrain_type_data::get_terrain_editor_string(), terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), help::terrain_topic_generator::operator()(), help::print_behavior_description(), and editor::terrain_palette::setup().
|
inline |
Definition at line 61 of file terrain.hpp.
References heals_.
Referenced by terrain_callable::get_value(), terrain_type_data::gives_healing(), game_lua_kernel::intf_get_terrain_info(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 36 of file terrain.hpp.
References help_topic_text_.
Referenced by help::terrain_topic_generator::operator()().
|
inline |
Definition at line 39 of file terrain.hpp.
References hide_help_.
Referenced by help::generate_terrain_sections(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 40 of file terrain.hpp.
References hide_in_editor_.
Referenced by help::terrain_topic_generator::operator()(), editor::terrain_palette::setup(), and help::show_terrain_description().
|
inline |
Definition at line 29 of file terrain.hpp.
References icon_image_.
Referenced by terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), help::terrain_topic_generator::operator()(), and REPORT_GENERATOR().
|
inline |
Definition at line 37 of file terrain.hpp.
References id_.
Referenced by create_terrain_maps(), help::generate_terrain_sections(), editor::terrain_palette::get_id(), terrain_callable::get_value(), image::getMinimap(), game_lua_kernel::intf_get_terrain_info(), help::terrain_topic_generator::operator()(), help::unit_topic_generator::operator()(), REPORT_GENERATOR(), help::show_terrain_description(), and unit_box_at().
|
inline |
Definition at line 68 of file terrain.hpp.
References income_description_.
Referenced by help::terrain_topic_generator::operator()(), and REPORT_GENERATOR().
|
inline |
Definition at line 69 of file terrain.hpp.
References income_description_ally_.
Referenced by REPORT_GENERATOR().
|
inline |
Definition at line 70 of file terrain.hpp.
References income_description_enemy_.
Referenced by REPORT_GENERATOR().
|
inline |
Definition at line 71 of file terrain.hpp.
References income_description_own_.
Referenced by REPORT_GENERATOR().
|
inline |
Definition at line 63 of file terrain.hpp.
References castle_.
Referenced by terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), terrain_type_data::is_castle(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 77 of file terrain.hpp.
References combined_.
Referenced by help::generate_terrain_sections(), image::getMinimap(), help::terrain_topic_generator::operator()(), editor::terrain_palette::setup(), and help::show_terrain_description().
|
inline |
Definition at line 64 of file terrain.hpp.
References keep_.
Referenced by terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), terrain_type_data::is_keep(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 51 of file terrain.hpp.
References t_translation::NONE_TERRAIN, number_, and t_translation::VOID_TERRAIN.
Referenced by help::generate_terrain_sections(), help::terrain_topic_generator::operator()(), help::unit_topic_generator::operator()(), and unit_moves().
|
inline |
Definition at line 76 of file terrain.hpp.
References overlay_.
Referenced by help::generate_terrain_sections(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 62 of file terrain.hpp.
References village_.
Referenced by terrain_callable::get_value(), image::getMinimap(), game_lua_kernel::intf_get_terrain_info(), terrain_type_data::is_village(), and help::terrain_topic_generator::operator()().
Returns the light (lawful) bonus for this terrain when the time of day gives a base bonus.
Definition at line 55 of file terrain.hpp.
References bounded_add(), light_modification_, max_light_, and min_light_.
Referenced by tod_manager::get_illuminated_time_of_day(), terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), and help::terrain_topic_generator::operator()().
|
inline |
Definition at line 30 of file terrain.hpp.
References minimap_image_.
Referenced by image::getMinimap(), and terrain_builder::rebuild_terrain().
|
inline |
Definition at line 31 of file terrain.hpp.
References minimap_image_overlay_.
Referenced by image::getMinimap(), and terrain_builder::rebuild_terrain().
|
inline |
Definition at line 46 of file terrain.hpp.
References mvt_type_.
|
inline |
Definition at line 33 of file terrain.hpp.
References name_.
Referenced by create_terrain_maps(), terrain_type_data::get_underlying_terrain_string(), terrain_callable::get_value(), game_lua_kernel::intf_get_terrain_info(), help::unit_topic_generator::operator()(), editor::terrain_palette::setup(), and unit_moves().
|
inline |
Definition at line 43 of file terrain.hpp.
References number_.
Referenced by create_terrain_maps(), terrain_filter::match_internal(), help::terrain_topic_generator::operator()(), help::unit_topic_generator::operator()(), editor::terrain_palette::setup(), terrain_type_data::try_merge_terrains(), and unit_moves().
bool terrain_type::operator== | ( | const terrain_type & | other | ) | const |
Definition at line 292 of file terrain.cpp.
References t_string::base_str(), castle_, editor_default_base_, editor_image_, editor_name_, heals_, height_adjust_, height_adjust_set_, hide_help_, hide_in_editor_, id_, keep_, light_modification_, max_light_, min_light_, minimap_image_, minimap_image_overlay_, name_, number_, submerge_, submerge_set_, and village_.
|
inline |
Definition at line 74 of file terrain.hpp.
References editor_group_.
Referenced by create_terrain_maps().
t_translation::t_terrain terrain_type::terrain_with_default_base | ( | ) | const |
Definition at line 285 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 editor::map_context::draw_terrain(), and terrain_type_data::merge_terrains().
|
inline |
Definition at line 49 of file terrain.hpp.
References union_type_.
Referenced by help::terrain_topic_generator::operator()(), help::unit_topic_generator::operator()(), and unit_moves().
|
inline |
Definition at line 58 of file terrain.hpp.
References height_adjust_.
Referenced by unit_animation_component::invalidate(), and unit_drawer::redraw_unit().
|
inline |
Definition at line 59 of file terrain.hpp.
References submerge_.
Referenced by unit_drawer::redraw_unit().
|
inline |
Definition at line 48 of file terrain.hpp.
References vision_type_.
|
private |
Definition at line 131 of file terrain.hpp.
Referenced by is_castle(), and operator==().
|
private |
Definition at line 133 of file terrain.hpp.
Referenced by is_combined().
|
private |
Definition at line 110 of file terrain.hpp.
Referenced by def_type(), and terrain_type().
|
private |
Definition at line 100 of file terrain.hpp.
Referenced by description(), and terrain_type().
|
private |
Definition at line 134 of file terrain.hpp.
Referenced by default_base(), operator==(), and terrain_with_default_base().
|
private |
Definition at line 129 of file terrain.hpp.
Referenced by editor_group(), and set_editor_group().
|
private |
The image used in the editor palette if not defined in WML it will be initialized with the value of minimap_image_.
Definition at line 96 of file terrain.hpp.
Referenced by editor_image(), operator==(), and terrain_type().
|
private |
Definition at line 99 of file terrain.hpp.
Referenced by editor_name(), and operator==().
|
private |
Definition at line 122 of file terrain.hpp.
Referenced by gives_healing(), and operator==().
|
private |
Definition at line 113 of file terrain.hpp.
Referenced by operator==(), terrain_type(), and unit_height_adjust().
|
private |
Definition at line 114 of file terrain.hpp.
Referenced by operator==(), and terrain_type().
|
private |
Definition at line 101 of file terrain.hpp.
Referenced by help_topic_text().
|
private |
Definition at line 135 of file terrain.hpp.
Referenced by hide_help(), and operator==().
|
private |
Definition at line 135 of file terrain.hpp.
Referenced by hide_in_editor(), operator==(), and terrain_type().
|
private |
The image used as symbol icon.
Definition at line 86 of file terrain.hpp.
Referenced by icon_image().
|
private |
Definition at line 97 of file terrain.hpp.
Referenced by id(), and operator==().
|
private |
Definition at line 124 of file terrain.hpp.
Referenced by income_description(), and terrain_type().
|
private |
Definition at line 125 of file terrain.hpp.
Referenced by income_description_ally(), and terrain_type().
|
private |
Definition at line 126 of file terrain.hpp.
Referenced by income_description_enemy(), and terrain_type().
|
private |
Definition at line 127 of file terrain.hpp.
Referenced by income_description_own(), and terrain_type().
|
private |
Definition at line 131 of file terrain.hpp.
Referenced by is_keep(), and operator==().
|
private |
Definition at line 119 of file terrain.hpp.
Referenced by light_bonus(), and operator==().
|
private |
Definition at line 120 of file terrain.hpp.
Referenced by light_bonus(), and operator==().
|
private |
Definition at line 121 of file terrain.hpp.
Referenced by light_bonus(), and operator==().
|
private |
The image used in the minimap.
Definition at line 89 of file terrain.hpp.
Referenced by minimap_image(), operator==(), and terrain_type().
|
private |
Definition at line 90 of file terrain.hpp.
Referenced by minimap_image_overlay(), and operator==().
|
private |
Definition at line 108 of file terrain.hpp.
Referenced by mvt_type(), and terrain_type().
|
private |
Definition at line 98 of file terrain.hpp.
Referenced by description(), name(), operator==(), and terrain_type().
|
private |
Definition at line 107 of file terrain.hpp.
Referenced by is_nonnull(), number(), operator==(), terrain_type(), and terrain_with_default_base().
|
private |
Definition at line 133 of file terrain.hpp.
Referenced by is_overlay(), and terrain_with_default_base().
|
private |
Definition at line 116 of file terrain.hpp.
Referenced by operator==(), terrain_type(), and unit_submerge().
|
private |
Definition at line 117 of file terrain.hpp.
Referenced by operator==(), and terrain_type().
|
private |
Definition at line 111 of file terrain.hpp.
Referenced by terrain_type(), and union_type().
|
private |
Definition at line 131 of file terrain.hpp.
Referenced by is_village(), operator==(), and terrain_type().
|
private |
Definition at line 109 of file terrain.hpp.
Referenced by terrain_type(), and vision_type().