summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ray.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ray.h')
-rw-r--r--crawl-ref/source/ray.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h
index 17a2547e8a..015b8ef723 100644
--- a/crawl-ref/source/ray.h
+++ b/crawl-ref/source/ray.h
@@ -34,6 +34,11 @@ public:
void advance_and_bounce();
void regress();
+ // Gets/sets the slope in terms of degrees, with 0 = east, 90 = north,
+ // 180 = west, 270 = south, 360 = east, -90 = south, etc
+ double get_degrees() const;
+ void set_degrees(double deg);
+
private:
int raw_advance();
double reflect(bool x, double oldc, double newc) const;