summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/los_def.h')
-rw-r--r--crawl-ref/source/los_def.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/los_def.h b/crawl-ref/source/los_def.h
index 25e197218f..42ac3b58ee 100644
--- a/crawl-ref/source/los_def.h
+++ b/crawl-ref/source/los_def.h
@@ -1,6 +1,8 @@
#ifndef LOS_DEF_H
#define LOS_DEF_H
+#include "coord-circle.h"
+#include "los.h"
#include "losparam.h"
class los_def
@@ -8,20 +10,20 @@ class los_def
env_show_grid show;
coord_def center;
opacity_func const * opc;
- bounds_func const * bds;
+ circle_def bds;
public:
los_def();
los_def(const coord_def& c, const opacity_func &o = opc_default,
- const bounds_func &b = bds_default);
+ const circle_def &b = BDS_DEFAULT);
los_def(const los_def& l);
~los_def();
los_def& operator=(const los_def& l);
void init(const coord_def& center, const opacity_func& o,
- const bounds_func& b);
+ const circle_def& b);
void set_center(const coord_def& center);
void set_opacity(const opacity_func& o);
- void set_bounds(const bounds_func& b);
+ void set_bounds(const circle_def& b);
void update();
bool in_bounds(const coord_def& p) const;