diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-02-12 18:17:16 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-02-13 16:35:17 +0100 |
commit | b57fd26f68166c063d4a0a2e065ad199a4ee132c (patch) | |
tree | c06771526f663176212b4c2ffcc2bbd6efa3c115 /crawl-ref/source/l_debug.cc | |
parent | 715d59a0cfb32ff14da269d15902bd2e372a1ace (diff) | |
download | crawl-ref-b57fd26f68166c063d4a0a2e065ad199a4ee132c.tar.gz crawl-ref-b57fd26f68166c063d4a0a2e065ad199a4ee132c.zip |
handle_monster_move lua debug wrapper.
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r-- | crawl-ref/source/l_debug.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc index 3c4d4ef4f8..7321032c40 100644 --- a/crawl-ref/source/l_debug.cc +++ b/crawl-ref/source/l_debug.cc @@ -18,6 +18,7 @@ #include "godwrath.h" #include "libutil.h" #include "message.h" +#include "mon-act.h" #include "mon-iter.h" #include "mon-stuff.h" #include "mon-util.h" @@ -213,6 +214,16 @@ LUAFN(debug_god_wrath) return (0); } +LUAFN(debug_handle_monster_move) +{ + MonsterWrap *mw = clua_get_userdata< MonsterWrap >(ls, MONS_METATABLE); + if (!mw || !mw->mons) + return (0); + + handle_monster_move(mw->mons); + return (0); +} + const struct luaL_reg debug_dlib[] = { { "goto_place", debug_goto_place }, @@ -225,6 +236,7 @@ const struct luaL_reg debug_dlib[] = { "cull_monsters", debug_cull_monsters}, { "dismiss_adjacent", debug_dismiss_adjacent}, { "god_wrath", debug_god_wrath}, +{ "handle_monster_move", debug_handle_monster_move }, { NULL, NULL } }; |