summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r--crawl-ref/source/losparam.h12
1 files changed, 12 insertions, 0 deletions
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.