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


Constructor & Destructor Documentation

t_translation::t_match::t_match (  ) 

Definition at line 146 of file terrain_translation.cpp.

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

Definition at line 154 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 171 of file terrain_translation.cpp.

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


Member Data Documentation

Definition at line 82 of file terrain_translation.hpp.

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

Definition at line 83 of file terrain_translation.hpp.

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


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs