The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
t_translation::t_match Struct Reference

This structure can be used for matching terrain strings. More...

#include <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
 

Detailed Description

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 83 of file translation.hpp.

Constructor & Destructor Documentation

t_translation::t_match::t_match ( )

Definition at line 160 of file translation.cpp.

t_translation::t_match::t_match ( const std::string str,
const t_layer  filler = NO_LAYER 
)

Definition at line 168 of file translation.cpp.

References t_translation::get_mask_(), i, masked_terrain, and terrain.

t_translation::t_match::t_match ( const t_terrain tcode)

Definition at line 185 of file translation.cpp.

References t_translation::get_mask_(), i, masked_terrain, and terrain.

Member Data Documentation

bool t_translation::t_match::has_wildcard

Definition at line 91 of file translation.hpp.

Referenced by t_translation::terrain_matches().

bool t_translation::t_match::is_empty
t_list t_translation::t_match::mask

Definition at line 89 of file translation.hpp.

Referenced by t_translation::terrain_matches().

t_list t_translation::t_match::masked_terrain

Definition at line 90 of file translation.hpp.

Referenced by t_match(), and t_translation::terrain_matches().

t_list t_translation::t_match::terrain

The documentation for this struct was generated from the following files: