Functions | |
bool | have_unit (const vconfig &cfg) |
bool | have_location (const vconfig &cfg) |
bool | variable_matches (const vconfig &values) |
Variables | |
std::vector< std::pair< int, int > > | default_counts = utils::parse_ranges_unsigned("1-infinity") |
bool game_events::builtin_conditions::have_location | ( | const vconfig & | cfg | ) |
Definition at line 88 of file conditional_wml.cpp.
References default_counts, resources::filter_con, vconfig::has_attribute(), and utils::parse_ranges_unsigned().
Referenced by game_lua_kernel::game_lua_kernel().
bool game_events::builtin_conditions::have_unit | ( | const vconfig & | cfg | ) |
Definition at line 51 of file conditional_wml.cpp.
References default_counts, resources::gameboard, vconfig::has_attribute(), i, in_ranges(), utils::parse_ranges_unsigned(), team::recall_list(), team::save_id_or_number(), utf8::size(), and t.
Referenced by game_lua_kernel::game_lua_kernel().
bool game_events::builtin_conditions::variable_matches | ( | const vconfig & | values | ) |
Definition at line 98 of file conditional_wml.cpp.
References config::attribute_count(), game_config::images::blank, ERR_WML, resources::gamedata, vconfig::get_config(), game_data::get_variable_const(), lg::log_to_chat(), n, TEST_BOL_ATTR, TEST_NUM_ATTR, and TEST_STR_ATTR.
Referenced by game_lua_kernel::game_lua_kernel().
std::vector<std::pair<int,int> > game_events::builtin_conditions::default_counts = utils::parse_ranges_unsigned("1-infinity") |
Definition at line 49 of file conditional_wml.cpp.
Referenced by have_location(), have_unit(), and terrain_filter::match_internal().