From 2d971303df529463e968ab80f292d7178c69dccd Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 25 Oct 2009 17:21:02 +0100 Subject: Method alternatives to losparam operators. This adds variants bounds_func::call(p) of bounds_func::operator()(p) and similar which I know how to call from gdb. --- crawl-ref/source/losparam.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/losparam.h') diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h index 7a152a0225..b2d378192b 100644 --- a/crawl-ref/source/losparam.h +++ b/crawl-ref/source/losparam.h @@ -21,12 +21,24 @@ struct opacity_func { virtual ~opacity_func() {} virtual opacity_type operator()(const coord_def& p) const = 0; + + // XXX: to be able to call from gdb. + virtual opacity_type call(const coord_def& p) const + { + return (*this)(p); + } }; struct bounds_func { virtual ~bounds_func() {} virtual bool operator()(const coord_def& p) const = 0; + + // XXX: to be able to call from gdb. + virtual bool call(const coord_def& p) const + { + return (*this)(p); + } }; // Default LOS rules. -- cgit v1.2.3-54-g00ecf