diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 22:05:59 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 22:51:34 +0100 |
commit | bb4f0a1ac81da867dbe57bfaea364b69fb02d68a (patch) | |
tree | f7278f31bc269f7b527276722200c28b1e832947 /crawl-ref/source/coord-circle.h | |
parent | d15c5257fbe4fc12651fa1b59745550d87f4df8d (diff) | |
download | crawl-ref-bb4f0a1ac81da867dbe57bfaea364b69fb02d68a.tar.gz crawl-ref-bb4f0a1ac81da867dbe57bfaea364b69fb02d68a.zip |
Add translating constructor to circle_def.
Diffstat (limited to 'crawl-ref/source/coord-circle.h')
-rw-r--r-- | crawl-ref/source/coord-circle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/coord-circle.h b/crawl-ref/source/coord-circle.h index 9a8dc088d2..c9fc3f7263 100644 --- a/crawl-ref/source/coord-circle.h +++ b/crawl-ref/source/coord-circle.h @@ -48,6 +48,8 @@ class circle_def public: // Circle around (0,0) with radius that tracks global LOS radius. circle_def(); + // Circle around origin with shape of given circle. + circle_def(const coord_def &origin_, const circle_def &bds); // Circle around (0,0) of specified shape and size. explicit circle_def(int param, circle_type ctype = C_SQUARE); // Circle around given origin of specified shape and size. @@ -61,6 +63,7 @@ public: private: void init(int param, circle_type ctype); + void init_bbox(); }; #endif |