summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.h
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-13 15:38:23 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-13 17:19:02 -0700
commitd22ebac678fa1c1d0a60048a72ba445e3ed190d1 (patch)
treea63ccd59b4bb01408be9fc5843c20f2f878e2cd2 /crawl-ref/source/monster.h
parent5562ea36cc1ba917da155a9dd93e6bf71d022771 (diff)
downloadcrawl-ref-d22ebac678fa1c1d0a60048a72ba445e3ed190d1.tar.gz
crawl-ref-d22ebac678fa1c1d0a60048a72ba445e3ed190d1.zip
Separate 'permanent' and 'temporary' monster hit dice
As part of a wider scheme to make draining temporary.
Diffstat (limited to 'crawl-ref/source/monster.h')
-rw-r--r--crawl-ref/source/monster.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h
index 53d286793a..f52674b73d 100644
--- a/crawl-ref/source/monster.h
+++ b/crawl-ref/source/monster.h
@@ -29,7 +29,6 @@ public:
int hit_points;
int max_hit_points;
- int hit_dice;
int ac;
int ev;
int speed;
@@ -83,6 +82,8 @@ public:
void reset_client_id();
void ensure_has_client_id();
+ void set_hit_dice(int new_hd);
+
mon_attitude_type temp_attitude() const;
// Returns true if the monster is named with a proper name, or is
@@ -206,6 +207,7 @@ public:
// actor interface
int mindex() const;
+ int get_hit_dice() const;
int get_experience_level() const;
god_type deity() const;
bool alive() const;
@@ -520,6 +522,9 @@ public:
void remove_avatars();
private:
+ int hit_dice;
+
+private:
void init_with(const monster& mons);
void swap_slots(mon_inv_type a, mon_inv_type b);
bool need_message(int &near) const;