From 928479a2ce6674d27d6ef03d7a06f81803ccdfae Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 27 Oct 2009 01:35:41 +0100 Subject: Convert some ints to monster_type. There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions. --- crawl-ref/source/monster.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monster.h') diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h index 133c0df54f..41c17ecbfd 100644 --- a/crawl-ref/source/monster.h +++ b/crawl-ref/source/monster.h @@ -62,7 +62,7 @@ public: public: std::string mname; - int type; + monster_type type; int hit_points; int max_hit_points; int hit_dice; @@ -187,7 +187,7 @@ public: actor *get_foe() const; // actor interface - int id() const; + monster_type id() const; int mindex() const; int get_experience_level() const; god_type deity() const; -- cgit v1.2.3-54-g00ecf