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_terrain Struct Reference

A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separated by a caret and each group consists of 2 to 4 characters if no second layer is defined it is stored as 0xFFFFFFFF, if the second layer is empty (needed for matching) the layer has the value 0. More...

#include <translation.hpp>

Public Member Functions

 t_terrain (const std::string &b, const std::string &o)
 
 t_terrain (const std::string &b, t_layer o=NO_LAYER)
 
 t_terrain (t_layer b, t_layer o)
 
 t_terrain ()
 

Public Attributes

t_layer base
 
t_layer overlay
 

Detailed Description

A terrain string which is converted to a terrain is a string with 1 or 2 layers the layers are separated by a caret and each group consists of 2 to 4 characters if no second layer is defined it is stored as 0xFFFFFFFF, if the second layer is empty (needed for matching) the layer has the value 0.

Definition at line 47 of file translation.hpp.

Constructor & Destructor Documentation

t_translation::t_terrain::t_terrain ( const std::string b,
const std::string o 
)

Definition at line 156 of file translation.cpp.

t_translation::t_terrain::t_terrain ( const std::string b,
t_layer  o = NO_LAYER 
)

Definition at line 152 of file translation.cpp.

t_translation::t_terrain::t_terrain ( t_layer  b,
t_layer  o 
)
inline

Definition at line 50 of file translation.hpp.

t_translation::t_terrain::t_terrain ( )
inline

Definition at line 51 of file translation.hpp.

Member Data Documentation

t_layer t_translation::t_terrain::base
t_layer t_translation::t_terrain::overlay

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