The Battle for Wesnoth  1.13.11+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::terrain_code 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

 terrain_code (const std::string &b, const std::string &o)
 
 terrain_code (const std::string &b, ter_layer o=NO_LAYER)
 
 terrain_code (ter_layer b, ter_layer o)
 
 terrain_code ()
 

Public Attributes

ter_layer base
 
ter_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 49 of file translation.hpp.

Constructor & Destructor Documentation

t_translation::terrain_code::terrain_code ( const std::string &  b,
const std::string &  o 
)

Definition at line 157 of file translation.cpp.

t_translation::terrain_code::terrain_code ( const std::string &  b,
ter_layer  o = NO_LAYER 
)

Definition at line 153 of file translation.cpp.

t_translation::terrain_code::terrain_code ( ter_layer  b,
ter_layer  o 
)
inline

Definition at line 52 of file translation.hpp.

t_translation::terrain_code::terrain_code ( )
inline

Definition at line 53 of file translation.hpp.

Member Data Documentation

ter_layer t_translation::terrain_code::base
ter_layer t_translation::terrain_code::overlay

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