/dports/games/wesnoth/wesnoth-1.14.17/src/ai/formula/ |
H A D | ai.hpp | 41 namespace wfl { namespace 46 namespace wfl { namespace 106 typedef wfl::position_callable::move_map_backup move_map_backup; 110 wfl::variant get_keeps() const; 121 void handle_exception(const wfl::formula_error& e) const; 145 bool execute_candidate_action(wfl::candidate_action_ptr fai_ca); 149 wfl::variant make_action(wfl::const_formula_ptr formula_, const wfl::formula_callable& variables); 160 mutable wfl::variant keeps_cache_; 161 wfl::attack_map_callable attacks_callable; 164 wfl::map_formula_callable vars_; [all …]
|
H A D | stage_unit_formulas.cpp | 56 wfl::unit_formula_set units_with_formulas; in do_play_stage() 69 wfl::map_formula_callable callable(fai_.fake_ptr()); in do_play_stage() 70 callable.add("me", wfl::variant(std::make_shared<wfl::unit_callable>(*i))); in do_play_stage() 75 } catch(wfl::formula_error& e) { in do_play_stage() 81 } catch(const wfl::type_error& e) { in do_play_stage() 102 wfl::map_formula_callable callable(fai_.fake_ptr()); in do_play_stage() 103 callable.add("me", wfl::variant(std::make_shared<wfl::unit_callable>(*i))); in do_play_stage() 109 catch(wfl::formula_error& e) { in do_play_stage() 124 wfl::map_formula_callable callable(fai_.fake_ptr()); in do_play_stage() 125 callable.add("me", wfl::variant(std::make_shared<wfl::unit_callable>(*i))); in do_play_stage() [all …]
|
/dports/irc/unreal/Unreal3.2.10.7/src/modules/ |
H A D | m_who.c | 144 } wfl; variable 155 memset(&wfl, 0, sizeof(wfl)); in m_who() 191 if (wfl.channel && wfl.want_channel == WHO_WANT && in m_who() 313 DOIT(wfl.channel, wfl.want_channel); in parse_who_options() 324 DOIT(wfl.server, wfl.want_server); in parse_who_options() 327 DOIT(wfl.host, wfl.want_host); in parse_who_options() 338 DOIT(wfl.nick, wfl.want_nick); in parse_who_options() 341 DOIT(wfl.user, wfl.want_user); in parse_who_options() 475 if (((wfl.want_host == WHO_WANT) && match(wfl.host, host)) || in can_see() 491 if (((wfl.want_ip == WHO_WANT) && match(wfl.ip, ip)) || in can_see() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/composite/ |
H A D | value_translator.hpp | 226 wfl::variant var; in value_to_variant() 250 var = wfl::variant(value); in value_to_variant() 255 wfl::variant var; in value_to_variant() 280 var = wfl::variant(value); in value_to_variant() 285 wfl::variant var; in value_to_variant() 311 var = wfl::variant(value); in value_to_variant() 316 wfl::variant var; in value_to_variant() 342 std::vector<wfl::variant> vars; in value_to_variant() 346 var = wfl::variant(vars); in value_to_variant() 351 wfl::variant var; in value_to_variant() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/src/gui/auxiliary/ |
H A D | typed_formula.hpp | 90 T operator()(const wfl::map_formula_callable& variables, 91 wfl::function_symbol_table* functions = nullptr) const; 121 T execute(wfl::variant& v) const; 151 operator()(const wfl::map_formula_callable& variables, wfl::function_symbol_table* functions) const in operator ()() 157 wfl::variant v = wfl::formula(formula_, functions).evaluate(variables); in operator ()() 172 inline bool typed_formula<bool>::execute(wfl::variant& v) const in execute() 185 inline int typed_formula<int>::execute(wfl::variant& v) const in execute() 192 inline unsigned typed_formula<unsigned>::execute(wfl::variant& v) const in execute() 214 inline t_string typed_formula<t_string>::execute(wfl::variant& v) const in execute() 240 inline color_t typed_formula<color_t>::execute(wfl::variant& v) const in execute() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/src/gui/widgets/ |
H A D | text_box.cpp | 198 tmp.set_variable("text", wfl::variant(get_value())); in update_canvas() 199 tmp.set_variable("text_x_offset", wfl::variant(text_x_offset_)); in update_canvas() 200 tmp.set_variable("text_y_offset", wfl::variant(text_y_offset_)); in update_canvas() 205 wfl::variant(get_cursor_position(start + length).x)); in update_canvas() 209 tmp.set_variable("text_wrap_mode", wfl::variant(ellipse_mode)); in update_canvas() 214 tmp.set_variable("hint_text", wfl::variant(hint_text_)); in update_canvas() 215 tmp.set_variable("hint_image", wfl::variant(hint_image_)); in update_canvas() 284 wfl::map_formula_callable variables; in update_offsets() 285 variables.add("height", wfl::variant(get_height())); in update_offsets() 286 variables.add("width", wfl::variant(get_width())); in update_offsets() [all …]
|
H A D | helper.cpp | 99 void get_screen_size_variables(wfl::map_formula_callable& variable) in get_screen_size_variables() 101 variable.add("screen_width", wfl::variant(settings::screen_width)); in get_screen_size_variables() 102 variable.add("screen_height", wfl::variant(settings::screen_height)); in get_screen_size_variables() 103 variable.add("gamemap_width", wfl::variant(settings::gamemap_width)); in get_screen_size_variables() 104 variable.add("gamemap_height", wfl::variant(settings::gamemap_height)); in get_screen_size_variables() 105 variable.add("gamemap_x_offset", wfl::variant(settings::gamemap_x_offset)); in get_screen_size_variables() 108 wfl::map_formula_callable get_screen_size_variables() in get_screen_size_variables() 110 wfl::map_formula_callable result; in get_screen_size_variables()
|
H A D | styled_widget.cpp | 376 canvas.set_variable("text", wfl::variant(label_)); in update_canvas() 377 canvas.set_variable("text_markup", wfl::variant(use_markup_)); in update_canvas() 382 std::vector<wfl::variant> link_color_as_list { in update_canvas() 383 wfl::variant(link_color.r), in update_canvas() 384 wfl::variant(link_color.g), in update_canvas() 385 wfl::variant(link_color.b), in update_canvas() 386 wfl::variant(link_color.a) in update_canvas() 391 wfl::variant(encode_text_alignment(text_alignment_))); in update_canvas() 392 canvas.set_variable("text_maximum_width", wfl::variant(max_width)); in update_canvas() 393 canvas.set_variable("text_maximum_height", wfl::variant(max_height)); in update_canvas() [all …]
|
H A D | helper.hpp | 29 namespace wfl namespace 107 void get_screen_size_variables(wfl::map_formula_callable& variable); 117 wfl::map_formula_callable get_screen_size_variables();
|
/dports/games/wesnoth/wesnoth-1.14.17/src/scripting/ |
H A D | lua_formula_bridge.hpp | 21 namespace wfl { namespace 36 std::shared_ptr<wfl::formula> formula_ptr; 38 fwrapper(const std::string& code, wfl::function_symbol_table* functions = nullptr); 40 …wfl::variant evaluate(const wfl::formula_callable& variables, wfl::formula_debugger* fdb = nullptr…
|
/dports/security/p5-openxpki/openxpki-3.16.1/core/server/OpenXPKI/Client/Service/Role/ |
H A D | PickupWorkflow.pm | 36 my $wfl = $client->run_command('get_data_pool_entry', { 40 if ($wfl->{value}) { 41 $wf_id = $wfl->{value}; 49 my $wfl = $client->run_command('search_workflow_instances', { 55 if (@$wfl > 1) { 57 } elsif (@$wfl == 1) { 58 $wf_id = $wfl->[0]->{workflow_id};
|
/dports/security/p5-openxpki-i18n/openxpki-3.16.1/core/server/OpenXPKI/Client/Service/Role/ |
H A D | PickupWorkflow.pm | 36 my $wfl = $client->run_command('get_data_pool_entry', { 40 if ($wfl->{value}) { 41 $wf_id = $wfl->{value}; 49 my $wfl = $client->run_command('search_workflow_instances', { 55 if (@$wfl > 1) { 57 } elsif (@$wfl == 1) { 58 $wf_id = $wfl->[0]->{workflow_id};
|
/dports/games/wesnoth/wesnoth-1.14.17/src/gui/core/ |
H A D | canvas_private.hpp | 35 wfl::map_formula_callable& variables) override; 71 wfl::map_formula_callable& variables) override; 116 wfl::map_formula_callable& variables) override; 162 wfl::map_formula_callable& variables) override; 186 image_shape(const config& cfg, wfl::action_function_symbol_table& functions); 191 wfl::map_formula_callable& variables) override; 237 wfl::formula actions_formula_; 257 wfl::map_formula_callable& variables) override;
|
H A D | canvas.hpp | 28 namespace wfl { class variant; } namespace 71 wfl::map_formula_callable& variables) = 0; 171 void set_variable(const std::string& key, const wfl::variant& value) in set_variable() 213 wfl::map_formula_callable variables_; 216 wfl::action_function_symbol_table functions_;
|
H A D | canvas.cpp | 591 wfl::map_formula_callable& variables) in draw() 680 wfl::map_formula_callable& variables) in draw() 794 wfl::map_formula_callable& variables) in draw() 906 wfl::map_formula_callable& variables) in draw() 1046 wfl::map_formula_callable& variables) in draw() 1077 wfl::map_formula_callable local_variables(variables); in draw() 1096 local_variables.add("clip_x", wfl::variant(clip_x)); in draw() 1097 local_variables.add("clip_y", wfl::variant(clip_y)); in draw() 1269 wfl::map_formula_callable& variables) in draw() 1398 variables_.add("width", wfl::variant(w_)); in draw() [all …]
|
/dports/games/wesnoth/wesnoth-1.14.17/src/units/ |
H A D | formula_manager.cpp | 23 void unit_formula_manager::add_formula_var(std::string str,wfl:: variant var) in add_formula_var() 25 if(!formula_vars_) formula_vars_ = std::make_shared<wfl::map_formula_callable>(); in add_formula_var() 37 formula_vars_ = std::make_shared<wfl::map_formula_callable>(); in read() 39 wfl::variant var; in read() 45 formula_vars_ = wfl::map_formula_callable_ptr(); in read() 70 …for(wfl::map_formula_callable::const_iterator i = formula_vars_->begin(); i != formula_vars_->end(… in write()
|
H A D | formula_manager.hpp | 31 …formula_vars_(o.formula_vars_ ? std::make_shared<wfl::map_formula_callable>(*o.formula_vars_) : o.… in unit_formula_manager() 34 const wfl::map_formula_callable_ptr& formula_vars() const { return formula_vars_; } in formula_vars() 35 void add_formula_var(std::string str, wfl::variant var); 50 wfl::map_formula_callable_ptr formula_vars_;
|
H A D | abilities.cpp | 491 wfl::map_formula_callable callable(std::make_shared<wfl::unit_callable>(*u_itor)); in __anon128cb03b0502() 494 callable.add("other", wfl::variant(std::make_shared<wfl::unit_callable>(*u_itor))); in __anon128cb03b0502() 496 return formula_handler(wfl::formula(s, new wfl::gamestate_function_symbol_table), callable); in __anon128cb03b0502() 497 } catch(const wfl::formula_error& e) { in __anon128cb03b0502() 520 …_ability_value((*p.first)[key], def, p.second, loc(),[&](const wfl::formula& formula, wfl::map_for… in get_extremum() 1186 callable.add("base_value", wfl::variant(def)); in effect() 1205 …le_ability_value(*v, def, ability.second, list.loc(),[&](const wfl::formula& formula, wfl::map_for… in effect() 1206 callable.add("base_value", wfl::variant(def)); in effect() 1216 callable.add("base_value", wfl::variant(def)); in effect() 1226 callable.add("base_value", wfl::variant(def)); in effect() [all …]
|
/dports/security/p5-openxpki-i18n/openxpki-3.16.1/core/server/OpenXPKI/Server/Workflow/Condition/ |
H A D | WorkflowHasState.pm | 18 my $wfl; 25 $wfl = $result->[0] if ($result->[0]); 28 if (!$wfl) { 34 my $res = ($state ne $wfl->{workflow_proc_state}); 42 my $res = ($state ne $wfl->{workflow_state});
|
/dports/security/p5-openxpki/openxpki-3.16.1/core/server/OpenXPKI/Server/Workflow/Condition/ |
H A D | WorkflowHasState.pm | 18 my $wfl; 25 $wfl = $result->[0] if ($result->[0]); 28 if (!$wfl) { 34 my $res = ($state ne $wfl->{workflow_proc_state}); 42 my $res = ($state ne $wfl->{workflow_state});
|
/dports/games/wesnoth/wesnoth-1.14.17/src/ai/default/ |
H A D | attack.cpp | 43 extern ai_context& get_ai_context(wfl::const_formula_callable_ptr for_fai); 341 wfl::variant attack_analysis::get_value(const std::string& key) const in get_value() 343 using namespace wfl; in get_value() 417 wfl::variant attack_analysis::execute_self(wfl::variant ctxt) { in execute_self() 421 return wfl::variant(false); in execute_self() 429 return wfl::variant(false); in execute_self() 439 …return wfl::variant(std::make_shared<wfl::safe_call_result>(fake_ptr(), attack_result::E_EMPTY_DEF… in execute_self() 447 …return wfl::variant(std::make_shared<wfl::safe_call_result>(fake_ptr(), move_result::E_NO_UNIT, mo… in execute_self() 454 …return wfl::variant(std::make_shared<wfl::safe_call_result>(fake_ptr(), result->get_status(), resu… in execute_self() 463 return wfl::variant(std::make_shared<wfl::safe_call_result>(fake_ptr(), result->get_status())); in execute_self() [all …]
|
H A D | contexts.hpp | 51 class attack_analysis : public wfl::action_callable 55 wfl::action_callable(), in attack_analysis() 81 wfl::variant get_value(const std::string& key) const override; 82 void get_inputs(wfl::formula_input_vector& inputs) const override; 134 wfl::variant execute_self(wfl::variant ctxt) override;
|
/dports/games/wesnoth/wesnoth-1.14.17/src/gui/dialogs/ |
H A D | tooltip.cpp | 127 window.set_variable("mouse_x", wfl::variant(mouse_.x)); in pre_show() 128 window.set_variable("mouse_y", wfl::variant(mouse_.y)); in pre_show() 130 window.set_variable("source_x", wfl::variant(source_rect_.x)); in pre_show() 131 window.set_variable("source_y", wfl::variant(source_rect_.y)); in pre_show() 132 window.set_variable("source_w", wfl::variant(source_rect_.w)); in pre_show() 133 window.set_variable("source_h", wfl::variant(source_rect_.h)); in pre_show()
|
H A D | formula_debugger.hpp | 19 namespace wfl namespace 32 explicit formula_debugger(wfl::formula_debugger& fdb) : fdb_(fdb) in formula_debugger() 52 wfl::formula_debugger& fdb_;
|
/dports/deskutils/mindforger/mindforger-1.52.0/lib/src/mind/ai/nlp/ |
H A D | markdown_tokenizer.cpp | 32 void MarkdownTokenizer::tokenize(CharProvider& md, WordFrequencyList& wfl, bool useBlacklist, bool … in tokenize() argument 128 handleWord(wfl, w, stem, useBlacklist); in tokenize() 133 handleWord(wfl, w, stem, useBlacklist); in tokenize() 149 void MarkdownTokenizer::handleWord(WordFrequencyList& wfl, string &w, bool stem, bool useBlacklist) in handleWord() argument 161 ++wfl[&(we->word)]; in handleWord()
|