From 3031fc6db1f969fd9b3bfa9687b263713cda20a0 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Thu, 12 Nov 2009 23:08:37 +1000 Subject: Rename can_sleep/put_to_sleep to can_hibernate/hibernate. This reflects the fact that these functions are currently only used to player and monster ensorcelled hibernation/metabolic englaciation, and thus both check monster's cold resistance. --- crawl-ref/source/actor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/actor.h') diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h index 43ca3d25b8..10dd3f7bda 100644 --- a/crawl-ref/source/actor.h +++ b/crawl-ref/source/actor.h @@ -157,8 +157,8 @@ public: virtual void confuse(actor *attacker, int strength) = 0; virtual void expose_to_element(beam_type element, int strength = 0) = 0; virtual void drain_stat(int stat, int amount, actor* attacker) { } - virtual bool can_sleep(bool holi_only = false) const = 0; - virtual void put_to_sleep(int power = 0) = 0; + virtual bool can_hibernate(bool holi_only = false) const = 0; + virtual void hibernate(int power = 0) = 0; virtual void check_awaken(int disturbance) = 0; virtual bool wearing_light_armour(bool = false) const { return (true); } -- cgit v1.2.3-54-g00ecf