LuaAI: added a new file

This commit is contained in:
Dmitry Kovalenko 2012-04-15 20:27:27 +00:00
parent 8f99e3f995
commit ca9f107ee1

30
data/ai/lua/debug.lua Normal file
View file

@ -0,0 +1,30 @@
--! #textdomain wesnoth
return { -- TODO: Disable the ability to register this library
-- if wesnoth started without -d argument
init = function(ai)
ai.debug = {}
function ai.debug.get_dst_src()
ai.recalculate_move_maps()
return ai.get_dst_src()
end
function ai.debug.get_src_dst()
ai.recalculate_move_maps()
return ai.get_src_dst()
end
function ai.debug.get_enemy_dst_src()
ai.recalculate_enemy_move_maps()
return ai.get_enemy_dst_src()
end
function ai.debug.get_enemy_src_dst()
ai.recalculate_enemy_move_maps()
return ai.get_enemy_src_dst()
end
end
}