void get_screen_size_variables(game_logic::map_formula_callable& variable) { variable.add("screen_width", variant(settings::screen_width)); variable.add("screen_height", variant(settings::screen_height)); variable.add("gamemap_width", variant(settings::gamemap_width)); variable.add("gamemap_height", variant(settings::gamemap_height)); variable.add("gamemap_x_offset", variant(settings::gamemap_x_offset)); }
void get_screen_size_variables(game_logic::map_formula_callable& variable) { variable.add("screen_width", variant(settings::screen_width)); variable.add("screen_height", variant(settings::screen_height)); variable.add("hdpi_ratio", variant(twidget::hdpi_ratio)); variable.add("default_gui", variant(!game_config::tiny_gui)); variable.add("vga", variant(settings::screen_width >= 640 * twidget::hdpi_ratio && settings::screen_height >= 480 * twidget::hdpi_ratio)); }
void attack_candidate_action::update_callable_map(game_logic::map_formula_callable& callable) { callable.add("me", my_unit_); callable.add("target", enemy_unit_); }
void move_candidate_action::update_callable_map(game_logic::map_formula_callable& callable) { callable.add("me", my_unit_); }