From b58fbcfafc44bc2810863a3722bee2e6a8f7d22d Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 7 Dec 2006 07:51:48 +0000 Subject: *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 --- crawl-ref/source/FixAry.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/FixAry.h') 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 TYPE& operator () (const Indexer &i) + { + return mData[i.x][i.y]; + } + + template const TYPE& operator () (const Indexer &i) + const + { + return mData[i.x][i.y]; + } //----------------------------------- // Member Data -- cgit v1.2.3-54-g00ecf