summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-24 16:45:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-24 16:45:11 +0200
commitfd3b6afd91dc0746a4e1801c4ffa06c092a1bf96 (patch)
treee6cb789d7a55bb0ceb4f495e63a3ac14f9609981 /crawl-ref/source/stash.h
parente49405bfe934a0450369918aa8e7409df24804a1 (diff)
downloadcrawl-ref-fd3b6afd91dc0746a4e1801c4ffa06c092a1bf96.tar.gz
crawl-ref-fd3b6afd91dc0746a4e1801c4ffa06c092a1bf96.zip
Let ^F and item memory work in Labs and the Abyss.
It's a pain in the butt to have to return to every item you just ran past (LOS in the Abyss tends to be spotty). This commit makes the memory last until the map cell rots away.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r--crawl-ref/source/stash.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h
index 7f7078bc3c..91bd45d116 100644
--- a/crawl-ref/source/stash.h
+++ b/crawl-ref/source/stash.h
@@ -34,6 +34,7 @@ class Stash
{
public:
Stash(int xp = -1, int yp = -1);
+ Stash(const Stash &other) { *this = other; };
static bool is_boring_feature(dungeon_feature_type feat);
@@ -261,6 +262,7 @@ public:
void no_stash(int x = -1, int y = -1);
void kill_stash(const Stash &s);
+ void move_stash(const coord_def& from, const coord_def& to);
void save(writer&) const;
void load(reader&);
@@ -297,11 +299,6 @@ public:
class StashTracker
{
public:
- static bool is_level_untrackable()
- {
- return !is_map_persistent();
- }
-
StashTracker() : levels(), last_corpse_update(0)
{
}
@@ -336,6 +333,7 @@ public:
// location if no parameters are supplied, return true if a stash was
// updated.
bool update_stash(const coord_def& c);
+ void move_stash(const coord_def& from, const coord_def& to);
// Add stash at (x,y), or player's current location if no parameters are
// supplied.