summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-12 23:08:37 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-12 23:08:37 +1000
commit3031fc6db1f969fd9b3bfa9687b263713cda20a0 (patch)
tree94967c6bbd40d84e2ed774f891f205c9d5502720 /crawl-ref/source/actor.h
parent832d0ed62141a910d95e86a6284d72b244577e90 (diff)
downloadcrawl-ref-3031fc6db1f969fd9b3bfa9687b263713cda20a0.tar.gz
crawl-ref-3031fc6db1f969fd9b3bfa9687b263713cda20a0.zip
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.
Diffstat (limited to 'crawl-ref/source/actor.h')
-rw-r--r--crawl-ref/source/actor.h4
1 files changed, 2 insertions, 2 deletions
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); }