The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::t_match terrain_types_match
 
std::vector< std::stringset_flag
 
std::vector< std::stringno_flag
 
std::vector< std::stringhas_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 251 of file builder.hpp.

Constructor & Destructor Documentation

terrain_builder::terrain_constraint::terrain_constraint ( )
inline

Definition at line 253 of file builder.hpp.

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

Definition at line 263 of file builder.hpp.

Member Data Documentation

std::vector<std::string> terrain_builder::terrain_constraint::has_flag
rule_imagelist terrain_builder::terrain_constraint::images
map_location terrain_builder::terrain_constraint::loc
bool terrain_builder::terrain_constraint::no_draw

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

Definition at line 280 of file builder.hpp.

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

std::vector<std::string> terrain_builder::terrain_constraint::no_flag
std::vector<std::string> terrain_builder::terrain_constraint::set_flag
t_translation::t_match terrain_builder::terrain_constraint::terrain_types_match

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