This structure can be used for matching terrain strings. More...
#include <terrain_translation.hpp>

Public Member Functions | |
| t_match () | |
| t_match (const std::string &str, const t_layer filler=NO_LAYER) | |
| t_match (const t_terrain &tcode) | |
Public Attributes | |
| t_list | terrain |
| t_list | mask |
| t_list | masked_terrain |
| bool | has_wildcard |
| bool | is_empty |
This structure can be used for matching terrain strings.
It optimized for strings that need to be matched often, and caches the wildcard info required for matching.
Definition at line 82 of file terrain_translation.hpp.
| t_translation::t_match::t_match | ( | ) |
Definition at line 159 of file terrain_translation.cpp.
Definition at line 167 of file terrain_translation.cpp.
References t_translation::get_mask_(), mask, and masked_terrain.

| t_translation::t_match::t_match | ( | const t_terrain & | tcode | ) |
Definition at line 184 of file terrain_translation.cpp.
References t_translation::get_mask_(), mask, and masked_terrain.

Definition at line 90 of file terrain_translation.hpp.
Definition at line 91 of file terrain_translation.hpp.
Referenced by terrain_filter::match_internal(), and terrain_builder::terrain_matches().
Definition at line 88 of file terrain_translation.hpp.
Referenced by t_match().
Definition at line 89 of file terrain_translation.hpp.
Referenced by t_match().
Definition at line 87 of file terrain_translation.hpp.
Referenced by terrain_builder::add_constraints().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:39 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |