The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
terrain_builder::terrain_constraint Struct Reference

The in-memory representation of a [tile] WML rule inside of a [terrain_graphics] WML rule. More...

#include <builder.hpp>

Public Member Functions

 terrain_constraint ()
 
 terrain_constraint (map_location loc)
 

Public Attributes

map_location loc
 
t_translation::ter_match terrain_types_match
 
std::vector< std::string > set_flag
 
std::vector< std::string > no_flag
 
std::vector< std::string > has_flag
 
bool no_draw
 Whether to actually draw the images onto this hex or not. More...
 
rule_imagelist images
 

Detailed Description

The in-memory representation of a [tile] WML rule inside of a [terrain_graphics] WML rule.

Definition at line 278 of file builder.hpp.

Constructor & Destructor Documentation

◆ terrain_constraint() [1/2]

terrain_builder::terrain_constraint::terrain_constraint ( )
inline

Definition at line 280 of file builder.hpp.

◆ terrain_constraint() [2/2]

terrain_builder::terrain_constraint::terrain_constraint ( map_location  loc)
inline

Definition at line 291 of file builder.hpp.

Member Data Documentation

◆ has_flag

std::vector<std::string> terrain_builder::terrain_constraint::has_flag

◆ images

rule_imagelist terrain_builder::terrain_constraint::images

◆ loc

map_location terrain_builder::terrain_constraint::loc

◆ no_draw

bool terrain_builder::terrain_constraint::no_draw

Whether to actually draw the images onto this hex or not.

Definition at line 309 of file builder.hpp.

Referenced by terrain_builder::add_constraints(), and terrain_builder::apply_rule().

◆ no_flag

std::vector<std::string> terrain_builder::terrain_constraint::no_flag

◆ set_flag

std::vector<std::string> terrain_builder::terrain_constraint::set_flag

◆ terrain_types_match

t_translation::ter_match terrain_builder::terrain_constraint::terrain_types_match

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