diff options
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index 21bedd446f..6419609046 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -215,6 +215,11 @@ struct coord_def { return (!x && !y); } + + bool zero() const + { + return origin(); + } }; class actor @@ -731,8 +736,14 @@ public: KillMaster* kills; level_area_type level_type; + + // Human-readable name for portal vault. Will be set to level_type_tag + // if not explicitly set by the entry portal. std::string level_type_name; + // .des file tag for portal vault + std::string level_type_tag; + entry_cause_type entry_cause; god_type entry_cause_god; |