summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix exclude_set iteration.Robert Vollmert2010-01-131-1/+1
| | | | | This should fix unreachable excludes not being coloured in the level map.
* Autoannotate exclusions placed on staircases with "up/downstairs".Johanna Ploog2010-01-121-0/+10
|
* Update exclusion annotations for flamethrower exclusions.Johanna Ploog2010-01-121-1/+8
| | | | | If a flamethrower cell is already excluded, add a description if it doesn't have one already.
* Remove resist slowing, increment tag major version.Darshan Shaligram2010-01-101-13/+3
|
* fix exclude.cc compileJesse Luehrs2010-01-091-0/+2
|
* Combine identical exclusion annotation descriptions.Johanna Ploog2010-01-101-2/+44
| | | | | | | | | A typical annotation may now look as follows: exclusion: 5 flame clouds, oklob plant and 2 more exclusions FIXME: The 2 more are probably also flame clouds but don't get described as such seeing how they were already added as flame cloud neighbours earlier when they were harmless floor themselves.
* Also list cloud type for fog generator exclusion annotations.Johanna Ploog2010-01-101-26/+45
| | | | | | Increases minor version by one as travel_exclude now stores a string rather than the monster type, which is more versatile and can also be used for cloud names.
* Don't annotate fog generator exclusions as monster-triggered.Johanna Ploog2010-01-101-4/+9
|
* Add a message when an autoexclusion is placed because of a monster.Johanna Ploog2010-01-091-0/+7
|
* Fix exclusions not being listed on the overmap screen.Johanna Ploog2010-01-051-6/+6
|
* Hopefully fix tiles compile.Jude Brown2009-12-031-0/+1
|
* Optionally defer set_exclude updates.Robert Vollmert2009-12-021-2/+18
| | | | | This is a bit of a hack to get around cloud autoexclusions each resulting in a floodfind through _exclude_update.
* Remove unnecessary header-header includes.Robert Vollmert2009-11-271-0/+1
|
* Travel exclude speedupMatthew Cline2009-11-151-50/+182
| | | | | | | | | | Speed up is_excluded() by making the class exclude_set, which caches the set of excluded points, calculating the set only when exclusions are added or removed (or when an old level is loaded). NOTE: This recomputes the set of excluded points once upon entering level-map mode and once upon exiting it. If this takes to long on slow machines, this can be improved.
* Reset tag_minor_version to 0Matthew Cline2009-11-141-5/+2
|
* Make level_excursion clear and load exclusionsCharles Otto2009-11-131-1/+4
| | | | | | | | | | Make level_excursions::go_to clear and load exclusions. This avoids exclusions leaking across levels when using apply_to_all_dungeons with a function that can set exclusions. Also when applying an auto-exclusion to an out of sight stationary monster you have seen before (oklob plants after renouncing Fedhas) associate the monster species with the exclusion.
* Improve Fedhas' interaction with auto-exclusionsCharles Otto2009-11-131-1/+3
| | | | | | | | | Make neutralization work on monsters that are out of sight, also make it clear auto-exclusions for e.g. oklobs that previously got auto-ann. but are now out of sight. Make the monster_hostile stuff put auto-exclusions on oklobs you have already seen (if it turns them hostile).
* exclude.cc: revert _find_exclude_root() speed-upMatthew Cline2009-11-131-23/+6
| | | | Was causing memory problems.
* exclude.cc: Speed up finding exclude rootsMatthew Cline2009-11-121-6/+23
|
* Allow radius 1 exclusions.Robert Vollmert2009-11-121-8/+9
| | | | | Special-case to not require LOS calculations. Also make cycling not crash when exclusions have radius != 0, LOS_RADIUS.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-2/+0
| | | | Also add a few previously indirect includes.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-2/+2
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-3/+4
| | | | | | | | map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player.
* Replace bounds_func with circle_def.Robert Vollmert2009-11-081-3/+3
| | | | | | | The various LOS objects and functions now accept a circle_def instead of a bounds_func. This is a little less generic, but should eventually help with iterating over coordinates in any los_def.
* Avoid an infinite loop in tilse related to Feawn neutralizing plantsCharles Otto2009-11-071-1/+4
| | | | | | | | | | | Avoid an infinite loop caused caused by calling remove_auto_exclude on plants that get neutralized by Feawn. feawn_neutralise is called via viewwindow, and it was calling remove_auto_exclude, in tiles remove_auto_exclude calls viewwindow creating an infinite loop. Instead of calling remove_auto_exclude directly I added an attitude check to maybe_remove_autoexclusion which is (safely) called from viewwindow already.
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-2/+2
| | | | | | | | | | | | | env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects.
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Add whitespace fixes.David Lawrence Ramsey2009-10-311-2/+2
|
* Combine mons_is_sleeping(monsters *m) into monsters::asleep()abrahamwl2009-10-301-1/+1
| | | | ...and replace all references to mons_is_sleeping with asleep.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Bug #2887690: fixed by Robert's patch (fc6f5d1b)Matthew Cline2009-10-291-15/+0
|
* Fix initialisation of autoex in travel_exclude.Robert Vollmert2009-10-291-3/+3
| | | | Hopefully this fixes the autoremove-on-restore bug (2887690).
* exclude.cc: was passing too many parms to mprf()Matthew Cline2009-10-291-1/+1
|
* Bug 2887690: hack to fix false-autoexclude problemMatthew Cline2009-10-291-1/+16
| | | | | | GCC 4.3.2 -O1 and -O2 optimization causes some weirdness with maybe_remove_autoexclusion() in exclude.cc. This hack fixes the problem and gives a diagnostic message when the problem is encountered.
* Move exclusion marshalling code to exclude.cc.Robert Vollmert2009-10-271-0/+40
|
* Move most exclusion code from travel.cc to exclude.cc.Robert Vollmert2009-10-271-2/+289
|
* Fix missing tiles include.Robert Vollmert2009-10-271-0/+1
|
* Move autoexclude code from misc.cc to exclude.cc.Robert Vollmert2009-10-271-0/+77