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

Public Member Functions | |
| building_rule () | |
| bool | operator< (building_rule const &that) const |
| unsigned int | get_hash () const |
Public Attributes | |
| constraint_set | constraints |
| The set of [tile] constraints of this rule. | |
| map_location | location_constraints |
| The location on which this map may match. | |
| int | probability |
| The probability of this rule to match, when all conditions are met. | |
| int | precedence |
| Ordering relation between the rules. | |
| bool | local |
| Indicate if the rule is only for this scenario. | |
Private Attributes | |
| unsigned int | hash_ |
The in-memory representation of a [terrain_graphics] WML rule.
Definition at line 354 of file builder.hpp.
| terrain_builder::building_rule::building_rule | ( | ) | [inline] |
Definition at line 356 of file builder.hpp.
| unsigned int terrain_builder::building_rule::get_hash | ( | ) | const |
Definition at line 1000 of file builder.cpp.
References constraints, terrain_builder::DUMMY_HASH, hash_, hash_str(), terrain_builder::rule_image_variant::image_string, terrain_builder::terrain_constraint::images, and terrain_builder::rule_image::variants.
Referenced by terrain_builder::apply_rule(), and terrain_builder::rule_matches().


| bool terrain_builder::building_rule::operator< | ( | building_rule const & | that | ) | const [inline] |
Definition at line 394 of file builder.hpp.
References precedence.
The set of [tile] constraints of this rule.
Definition at line 368 of file builder.hpp.
Referenced by terrain_builder::apply_rule(), terrain_builder::build_terrains(), get_hash(), terrain_builder::load_images(), terrain_builder::parse_config(), terrain_builder::parse_mapstring(), terrain_builder::replace_rotate_tokens(), terrain_builder::rotate_rule(), and terrain_builder::rule_matches().
unsigned int terrain_builder::building_rule::hash_ [mutable, private] |
Definition at line 399 of file builder.hpp.
Referenced by get_hash().
Indicate if the rule is only for this scenario.
Definition at line 392 of file builder.hpp.
Referenced by terrain_builder::parse_config().
The location on which this map may match.
Set to a valid map_location if the "x" and "y" parameters of the [terrain_graphics] rule are set.
Definition at line 375 of file builder.hpp.
Referenced by terrain_builder::parse_config(), and terrain_builder::rule_matches().
Ordering relation between the rules.
Definition at line 387 of file builder.hpp.
Referenced by operator<(), and terrain_builder::parse_config().
The probability of this rule to match, when all conditions are met.
Defined if the "probability" parameter of the [terrain_graphics] element is set.
Definition at line 382 of file builder.hpp.
Referenced by terrain_builder::parse_config(), and terrain_builder::rule_matches().
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:37 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |