summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 0e773c455f..e94cc0c68c 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -620,6 +620,16 @@ public:
{
*this = item_def();
}
+
+ // Sets this item as being held by a given monster.
+ void set_holding_monster(int midx);
+
+ // Returns monster holding this item. NULL if none.
+ monsters* holding_monster() const;
+
+ // Returns true if a monster is holding this item.
+ bool held_by_monster() const;
+
private:
std::string name_aux(description_level_type desc,
bool terse, bool ident,