summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/act-iter.h
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite monster_iterator.Adam Borowski2013-10-311-0/+16
| | | | | 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/+22
| | | | | | | | | | | | 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-11/+10
|
* Get rid of most types of actor_iterator.Adam Borowski2013-10-311-6/+0
|
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Update actor::get_los to use global LOS.Robert Vollmert2010-03-221-2/+2
| | | | | | | | | | | | 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/+38