summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/act-iter.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite monster_iterator.Adam Borowski2013-10-311-0/+50
| | | | | It degenerated to a simple loop over menv, hardly worth any syntactic sugar. I kept it for now, though.
* monster_near_iteratorAdam Borowski2013-10-311-0/+64
| | | | | | | | | | | | Does the "in view" part of functionality of monster_iterator, is simpler, allows using los models other than LOS_DEFAULT, and gets rid of a lot of uses of get_los(). The code is nearly identical as actor_near_iterator, but the old delegation used more code than either of those. Still, perhaps templating could work? This commit also fixes a buttload of ignoring invis / see invis / sense invis (ie, visible_to()) and act-through-glass bugs.
* Simplify actor_iterator and some of its users, rename to actor_near_iterator.Adam Borowski2013-10-311-32/+34
|
* Get rid of most types of actor_iterator.Adam Borowski2013-10-311-30/+2
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-1/+0
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Drop a bunch of parentheses from return statements.Adam Borowski2012-08-081-2/+2
| | | | | This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
* Some more return deparenthesization.Adam Borowski2012-07-051-5/+5
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-3/+3
|
* Fix arena with global LOS.Robert Vollmert2010-03-221-0/+2
| | | | | | | | For one, fix several crash bugs related to the player being outside LOS. These are prevented by checking against actor->alive() to check actor validity, and having you.alive() return false in the arena. Then, make sure LOS is actually invalidated for the arena, since that doesn't go through the usual level initialization path.
* Update actor::get_los to use global LOS.Robert Vollmert2010-03-221-1/+1
| | | | | | | | | | | | This is all not very nice. los_base is now an abstract base class for both los_def and los_glob (global LOS-backed los_def variant), and interators now take a *los_base. actor::update_los is gone. Arena LOS is quite probably broken again at the moment.
* actor_iterator, a variant of monster_iterator that includes the player.Robert Vollmert2010-03-211-0/+95