diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-23 23:54:02 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-23 23:54:02 +0000 |
commit | 275ffdabdfae060ba0eb111813044a7ff2200620 (patch) | |
tree | a783a337e85611cf706846028f0fa227f9595214 /crawl-ref/source/travel.h | |
parent | 9cdeda9a8b2b02967cfe523082d69b3072a6a5ab (diff) | |
download | crawl-ref-275ffdabdfae060ba0eb111813044a7ff2200620.tar.gz crawl-ref-275ffdabdfae060ba0eb111813044a7ff2200620.zip |
Allow Lua to place vaults with dgn.place_map().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7564 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index c5a12529dc..65e2bcd08a 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -179,7 +179,9 @@ enum explore_stop_type //////////////////////////////////////////////////////////////////////////// // Structs for interlevel travel. -// Identifies a level. +// Identifies a level. Should never include virtual methods or +// dynamically allocated memory (see code to push level_id onto Lua +// stack in luadgn.cc) class level_id { public: @@ -233,6 +235,14 @@ public: || level_type != LEVEL_DUNGEON; } + const level_id &operator = (const level_id &id) + { + branch = id.branch; + depth = id.depth; + level_type = id.level_type; + return (*this); + } + bool operator == ( const level_id &id ) const { return (level_type == id.level_type |