LuaAI: added a new file
This commit is contained in:
parent
8f99e3f995
commit
ca9f107ee1
1 changed files with 30 additions and 0 deletions
30
data/ai/lua/debug.lua
Normal file
30
data/ai/lua/debug.lua
Normal 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
|
||||
}
|
Loading…
Add table
Reference in a new issue