summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/coord-circle.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix compilation on gcc.Adam Borowski2009-11-181-0/+3
|
* Fix circle_def's ignoring global LOS radius.Robert Vollmert2009-11-181-1/+2
| | | | | | circle_def::contains was disregarding the los_radius field. This led to lantern of shadows not working (reported by peten on ##crawl).
* Add translating constructor to circle_def.Robert Vollmert2009-11-131-0/+13
|
* Make circle_def aware of map bounds.Robert Vollmert2009-11-131-0/+4
| | | | | circle_def now has two modes, depending on whether origin is set. This is a little ugly.
* Add method to intersect rectangles.Robert Vollmert2009-11-131-0/+15
| | | | | Also define rectangle RECT_MAP_BOUNDS and add containment check to rect_def.
* Reimplement radius_iterator on the basis of circle_def.Robert Vollmert2009-11-131-29/+10
|
* coord-circle.cc: set radius_sq before useMatthew Cline2009-11-111-1/+1
|
* Create coord-circle.cc containing circle_def.Robert Vollmert2009-11-081-0/+106
circle_def unifies the shapes that a radius_iterator can iterate over. It's meant to replace bounds_func in losparam.h and eventually provide a base for radius_iterator.