utils: wesnoth-ai support.