From 8f81aa0a6fcb839a91b70e29d006f6858fb303b6 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 13 Nov 2009 22:09:17 +0100 Subject: Add los_def::get_bounds. --- crawl-ref/source/los_def.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/los_def.cc') diff --git a/crawl-ref/source/los_def.cc b/crawl-ref/source/los_def.cc index d53b71c1dc..3e2a3eae2e 100644 --- a/crawl-ref/source/los_def.cc +++ b/crawl-ref/source/los_def.cc @@ -68,6 +68,11 @@ void los_def::set_bounds(const circle_def &b) bds = b; } +circle_def los_def::get_bounds() const +{ + return (circle_def(center, bds)); +} + bool los_def::in_bounds(const coord_def& p) const { return (bds.contains(p)); -- cgit v1.2.3-54-g00ecf