The Battle for Wesnoth  1.19.0-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 (const ter_map &)=default
 
 ter_map (ter_map &&)=default
 
 ter_map (int w, int h, terrain_code fill=terrain_code())
 
ter_mapoperator= (const ter_map &)=default
 
ter_mapoperator= (ter_map &&)=default
 
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
 
int h
 

Detailed Description

Definition at line 78 of file translation.hpp.

Constructor & Destructor Documentation

◆ ter_map() [1/4]

t_translation::ter_map::ter_map ( )
default

◆ ter_map() [2/4]

t_translation::ter_map::ter_map ( const ter_map )
default

◆ ter_map() [3/4]

t_translation::ter_map::ter_map ( ter_map &&  )
default

◆ ter_map() [4/4]

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

Definition at line 84 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 90 of file translation.hpp.

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

◆ operator=() [1/2]

ter_map& t_translation::ter_map::operator= ( const ter_map )
default

◆ operator=() [2/2]

ter_map& t_translation::ter_map::operator= ( ter_map &&  )
default

◆ operator[]() [1/2]

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

Definition at line 95 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 96 of file translation.hpp.

References data, and h.

Member Data Documentation

◆ data

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

Definition at line 92 of file translation.hpp.

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

◆ h

int t_translation::ter_map::h

◆ w

int t_translation::ter_map::w

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