Public Member Functions | Public Attributes

t_translation::t_match Struct Reference

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

#include <terrain_translation.hpp>

Collaboration diagram for t_translation::t_match:
Collaboration graph
[legend]

List of all members.

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 82 of file terrain_translation.hpp.


Constructor & Destructor Documentation

t_translation::t_match::t_match (  ) 

Definition at line 159 of file terrain_translation.cpp.

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

Definition at line 167 of file terrain_translation.cpp.

References t_translation::get_mask_(), mask, and masked_terrain.

Here is the call graph for this function:

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.

Here is the call graph for this function:


Member Data Documentation

Definition at line 90 of file terrain_translation.hpp.

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().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:39 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs