The Battle for Wesnoth  1.19.18+dev
Public Member Functions | Public Attributes | List of all members
t_translation::ter_map Struct Reference

#include <translation.hpp>

Public Member Functions

 ter_map ()=default
 
 ter_map (int w, int h, terrain_code fill=NONE_TERRAIN)
 
terrain_codeget (int x, int y)
 
const terrain_codeget (int x, int y) const
 
std::vector< terrain_code >::iterator operator[] (int x)
 
std::vector< terrain_code >::const_iterator operator[] (int x) const
 

Public Attributes

std::vector< terrain_codedata
 
int w {0}
 
int h {0}
 

Detailed Description

Definition at line 78 of file translation.hpp.

Constructor & Destructor Documentation

◆ ter_map() [1/2]

t_translation::ter_map::ter_map ( )
default

◆ ter_map() [2/2]

t_translation::ter_map::ter_map ( int  w,
int  h,
terrain_code  fill = NONE_TERRAIN 
)
inline

Definition at line 81 of file translation.hpp.

Member Function Documentation

◆ get() [1/2]

terrain_code& t_translation::ter_map::get ( int  x,
int  y 
)
inline

◆ get() [2/2]

const terrain_code& t_translation::ter_map::get ( int  x,
int  y 
) const
inline

Definition at line 84 of file translation.hpp.

References data, h, and utf8::index().

◆ operator[]() [1/2]

std::vector<terrain_code>::iterator t_translation::ter_map::operator[] ( int  x)
inline

Definition at line 89 of file translation.hpp.

References data, and h.

◆ operator[]() [2/2]

std::vector<terrain_code>::const_iterator t_translation::ter_map::operator[] ( int  x) const
inline

Definition at line 90 of file translation.hpp.

References data, and h.

Member Data Documentation

◆ data

std::vector<terrain_code> t_translation::ter_map::data

Definition at line 86 of file translation.hpp.

Referenced by get(), gamemap_base::on_board_with_border(), and operator[]().

◆ h

int t_translation::ter_map::h {0}

◆ w

int t_translation::ter_map::w {0}

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