summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-09-03 21:18:27 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-03 21:34:33 +0200
commit5602fed78dac19419cc905ebeefb5dfff4680490 (patch)
treef05fa5a884c6d29f30d9b90f5aa2296604642313 /crawl-ref/source/directn.h
parenta8768fd11e36aa1b32b11bd18a890a07512fab85 (diff)
downloadcrawl-ref-5602fed78dac19419cc905ebeefb5dfff4680490.tar.gz
crawl-ref-5602fed78dac19419cc905ebeefb5dfff4680490.zip
A new command: "pick item at cursor" (xg).
It marks the item for autopickup then issues a move command. In case the move is interrupted, autoexplore will go there although unlike the initial movement, it won't necessarily go for it first if other valid items to pickup are closer. That's probably ok, you might have walked around (to kill the monster, etc) before restarting. TODO: what if autopickup is off (Ctrl-A)?
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index d5ee4b417d..33f6c06eb5 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -144,6 +144,9 @@ private:
bool select_compass_direction(const coord_def& delta);
bool select_previous_target();
+ // Mark item for pickup, initiate movement.
+ bool pickup_item();
+
// Return true if we need to abort targeting due to a signal.
bool handle_signals();