summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/FixAry.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-07 07:51:48 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-07 07:51:48 +0000
commitb58fbcfafc44bc2810863a3722bee2e6a8f7d22d (patch)
tree22a1199ad8ca845bfad04590d9dc5e9891ae8960 /crawl-ref/source/FixAry.h
parentcf61c793d3d3783b2b5a39a8cf01b857806411b2 (diff)
downloadcrawl-ref-b58fbcfafc44bc2810863a3722bee2e6a8f7d22d.tar.gz
crawl-ref-b58fbcfafc44bc2810863a3722bee2e6a8f7d22d.zip
*Breaks save compatibility* - changed monster flags to long, added "god" field for future fun.
dungeon.cc cleanup and rework to support floating vaults. Updated levcomp to support the float orientation. coord_def now has a constructor. USE_RIVERS and USE_NEW_UNRANDS are no longer conditional. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@585 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/FixAry.h')
-rw-r--r--crawl-ref/source/FixAry.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/FixAry.h b/crawl-ref/source/FixAry.h
index 4270949150..3db9d49abd 100644
--- a/crawl-ref/source/FixAry.h
+++ b/crawl-ref/source/FixAry.h
@@ -58,6 +58,16 @@ public:
// ----- Access -----
Column& operator[](unsigned long index) {return mData[index];}
const Column& operator[](unsigned long index) const {return mData[index];}
+ template<class Indexer> TYPE& operator () (const Indexer &i)
+ {
+ return mData[i.x][i.y];
+ }
+
+ template<class Indexer> const TYPE& operator () (const Indexer &i)
+ const
+ {
+ return mData[i.x][i.y];
+ }
//-----------------------------------
// Member Data