diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-03 19:28:16 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-03 19:32:23 +1000 |
commit | 01dc5b84b8e4111ac2f91a6ea642b5d88ecfc140 (patch) | |
tree | 75c80ea19e9c85856ae3c44775c1ed592a0bb2d3 /crawl-ref/source/spells3.h | |
parent | 6858bd1384348612321c7ec52dd6173358512516 (diff) | |
download | crawl-ref-01dc5b84b8e4111ac2f91a6ea642b5d88ecfc140.tar.gz crawl-ref-01dc5b84b8e4111ac2f91a6ea642b5d88ecfc140.zip |
Teleport code refactor, you_teleport_to.
Move the post-teleport update to its own function so that it can be
called from other functions. Provide a new function that accepts a
coord_def; try hard to move the player here, moving monsters if allowed,
but return false if we weren't able to.
Lua wrappers for you_teleport_to.
Diffstat (limited to 'crawl-ref/source/spells3.h')
-rw-r--r-- | crawl-ref/source/spells3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.h b/crawl-ref/source/spells3.h index 3d9d899ad5..b41a35ae3a 100644 --- a/crawl-ref/source/spells3.h +++ b/crawl-ref/source/spells3.h @@ -66,6 +66,6 @@ void you_teleport(); void you_teleport_now(bool allow_control, bool new_abyss_area = false, bool wizard_tele = false); - - +bool you_teleport_to(const coord_def where, + bool move_monsters = false); #endif |