summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-05 19:17:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-05 19:17:37 +0000
commitf878a03c781fd57fea8447caaecee847ab576d8b (patch)
treed612610f88c87f0fa4b274f9fa74a4326c1965cd /crawl-ref/source/mapdef.h
parent14e0ee2e84e8f858bd8656b9ecf26a15d27bfebd (diff)
downloadcrawl-ref-f878a03c781fd57fea8447caaecee847ab576d8b.tar.gz
crawl-ref-f878a03c781fd57fea8447caaecee847ab576d8b.zip
Add support for block shuffling in maps (proposed by David).
For instance: SHUFFLE: wW, 8$ will, if it swaps w and 8, also swap W and $. Block shuffles may have any number of comma-separated entries, provided each segment is the same length. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@923 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 25f3b7ef5a..3b104336a0 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -82,6 +82,7 @@ private:
std::string remove_unreferenced(const symbol_frequency_t &freq,
std::string s);
std::string shuffle(std::string s);
+ std::string block_shuffle(const std::string &s);
private:
std::vector<std::string> lines;