static terrain_filter variant_to_value(const variant &var)
	{
		static config c("not");
		terrain_filter value(vconfig(c),manager::get_ai_info().units);
		variant_to_value(var,value);
		return value;
	}
Beispiel #2
0
	static terrain_filter variant_to_value(const variant &var)
	{
		static config c("not");
		terrain_filter value(vconfig(c),*resources::units);
		variant_to_value(var,value);
		return value;
	}
	static terrain_filter variant_to_value(const wfl::variant &var)
	{
		static config c("not");
		terrain_filter value(vconfig(c),resources::filter_con);
		variant_to_value(var,value);
		return value;
	}
	static attacks_vector variant_to_value(const variant &var)
	{
		attacks_vector value;
		variant_to_value(var,value);
		return value;
	}
	static std::string variant_to_value(const variant &var)
	{
		std::string value;
		variant_to_value(var,value);
		return value;
	}
	static bool variant_to_value(const variant &var)
	{
		bool value;
		variant_to_value(var,value);
		return value;
	}
	static int variant_to_value(const variant &var)
	{
		int value;
		variant_to_value(var,value);
		return value;
	}
Beispiel #8
0
	static T variant_to_value(const variant &var)
	{
		T value = T();
		variant_to_value(var,value);
		return value;
	}