Beispiel #1
0
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));
}
Beispiel #2
0
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));
}
Beispiel #3
0
void attack_candidate_action::update_callable_map(game_logic::map_formula_callable& callable)
{
	callable.add("me", my_unit_);
	callable.add("target", enemy_unit_);
}
Beispiel #4
0
void move_candidate_action::update_callable_map(game_logic::map_formula_callable& callable)
{
	callable.add("me", my_unit_);
}