From 6a883aea39bceefb34718c699ee3877d33b6d2ba Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 10:01:11 +0100 Subject: Add a general halo interface to actor. Also convert the TSO halo to use this. actor::haloed() is still specific to the player TSO halo. --- crawl-ref/source/actor.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/actor.h') diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h index 000eba813f..0ca4e19c33 100644 --- a/crawl-ref/source/actor.h +++ b/crawl-ref/source/actor.h @@ -200,8 +200,15 @@ public: virtual bool confused() const = 0; virtual bool caught() const = 0; virtual bool asleep() const { return (false); } + virtual bool backlit(bool check_haloed = true) const = 0; - virtual bool haloed() const = 0; + // Within player halo. + virtual bool haloed() const; + // Halo radius. + virtual int halo_radius() const = 0; + // Is the given point within this actor's halo? + virtual bool inside_halo(const coord_def &c) const; + virtual bool petrified() const = 0; virtual bool handle_trap(); -- cgit v1.2.3-54-g00ecf