The Battle for Wesnoth  1.19.6+dev
Public Member Functions | Public Attributes | List of all members
editor::tile_info Struct Reference

This represents a tile along with information about it, namely the terrain, possibly other information. More...

#include <map_fragment.hpp>

Public Member Functions

 tile_info (const gamemap &map, const map_location &offset)
 Create a tile info – the constructor grabs required data from the map. More...
 

Public Attributes

map_location offset
 
t_translation::terrain_code terrain
 

Detailed Description

This represents a tile along with information about it, namely the terrain, possibly other information.

It is a less compact representation that what is used in the map, but is more convenient in some situations.

Definition at line 27 of file map_fragment.hpp.

Constructor & Destructor Documentation

◆ tile_info()

editor::tile_info::tile_info ( const gamemap map,
const map_location offset 
)
inline

Create a tile info – the constructor grabs required data from the map.

Definition at line 32 of file map_fragment.hpp.

Member Data Documentation

◆ offset

map_location editor::tile_info::offset

Definition at line 37 of file map_fragment.hpp.

◆ terrain

t_translation::terrain_code editor::tile_info::terrain

Definition at line 38 of file map_fragment.hpp.


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