summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-28 17:49:03 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-28 17:49:03 +0000
commit9af02159866bdf8b87800293d2a93916e1c0e96a (patch)
treea6d63fabfcac5071de29c0587d853b733ab650e4 /crawl-ref/source/libutil.h
parentee86ed7bc40c5e93a424f0625ac71be7dda158f6 (diff)
downloadcrawl-ref-9af02159866bdf8b87800293d2a93916e1c0e96a.tar.gz
crawl-ref-9af02159866bdf8b87800293d2a93916e1c0e96a.zip
[1849483] Warn player when fire_items_start option is blocking selection of the only available missile (note that this doesn't entirely address the problem).
[1852034] Added greedy_items option to explore_stop to force greedy explore to stop and announce even items that it plans to pick up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3137 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.h')
-rw-r--r--crawl-ref/source/libutil.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h
index 6ee786b452..f0f4c1a4ce 100644
--- a/crawl-ref/source/libutil.h
+++ b/crawl-ref/source/libutil.h
@@ -167,6 +167,17 @@ public:
{
val = oldval;
}
+
+ T value() const
+ {
+ return val;
+ }
+
+ T original_value() const
+ {
+ return oldval;
+ }
+
private:
T &val;
T oldval;