summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Clean up colour munging.Robert Vollmert2009-11-131-9/+9
| | | | | | With the previous change to unseen cells, the check against buffy[bufcount] is not needed anymore, so we no longer need to fill buffy for the tiles build.
* Remove comment that doesn't apply (anymore?).Robert Vollmert2009-11-131-1/+0
|
* Don't treat off-map or unknown differently.Robert Vollmert2009-11-131-1/+1
|
* Extract player updates from main draw loop.Robert Vollmert2009-11-131-14/+19
|
* Collect view map updates.Robert Vollmert2009-11-131-75/+36
|
* Split up viewwindow.Robert Vollmert2009-11-131-166/+177
| | | | | | Since at the moment, different buffers need to be passed depending on whether or not we're doing a tiles build, this involves some ugly macroing.
* Generalize crawl_view_buffer to also handle the tile buffers.Robert Vollmert2009-11-131-4/+4
| | | | Also make view.cc use crawl_view_geometry.tbuf for tiles drawing.
* Extract player info updates from viewwindow.Robert Vollmert2009-11-131-33/+31
|
* Fix a couple compile errors caused by the merge.Charles Otto2009-11-131-4/+4
|
* Merge spore experiments branch.Charles Otto2009-11-131-5/+4
|\
| * Give giant spores a chance of spawning ballistos while wanderingCharles Otto2009-11-111-1/+1
| | | | | | | | | | | | Give giant spores a chance of creating a ballistomycete when they move while wandering. This ability is on a timer, so they can't create more than 1 ballisto per 20 turns. Numbers may need tweaking.
* | view.cc: Auto-exclude harmful cloudsMatthew Cline2009-11-121-0/+23
| | | | | | | | | | Automatically add exclusions for harmful clouds which are generated by nither monsters nor the player.
* | Further tweaks to Dowan/Duvessa death effects.Jude Brown2009-11-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New MF_GOING_BERSERK flag: monsters with this flag will go berserk the next turn after they see you. Remove sight limitations from Dowan/Duvessa death effects. Flavour messages will now always occur, as will Dowan's fear effect, even if you cannot see him. Duvessa's berserk effect is only triggered if you are in her line of sight upon Dowan's death. If you are not, she's given the MF_GOING_BERSERK flag, and will go berserk when she next sees you. Reasoning is that they have some magical ability to sense the other's death.
* | view.cc: Fix tiles compile errorMatthew Cline2009-11-111-1/+1
| |
* | Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | | | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* | Convert another 45 monster loops to monster_iterator.Robert Vollmert2009-11-111-44/+32
|/ | | | | | | A total of 53 have been converted; 39 left, of which some should stay. Now at a net loss of lines of code for monster_iterator. Occurrences of MAX_MONSTERS down to 65 from 116 in *.cc.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-11/+0
| | | | Also add a few previously indirect includes.
* Remove inside_level_bounds.Robert Vollmert2009-11-101-10/+0
| | | | | This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-518/+1
|
* Convert main viewwindow loop to use radius_iterator.Robert Vollmert2009-11-091-179/+172
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-218/+210
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Split up monster_grid into update and non-update part.Robert Vollmert2009-11-091-27/+46
|
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-2/+2
|
* Rename FeawnCharles Otto2009-11-081-1/+1
| | | | | In most places Feawn is now referred to as "Fedhas," its long name (used in the religion screen) is "Fedhas Madash"
* Split map knowledge and FPROPs.Robert Vollmert2009-11-081-20/+21
| | | | | | | | 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 mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-7/+7
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Move checks for the berserk state into actor::berserk().David Lawrence Ramsey2009-11-061-2/+2
|
* Move mons_is_friendly to monsters::friendly.Vsevolod Kozlov2009-11-061-2/+2
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Collect attitude changing code.Robert Vollmert2009-11-061-122/+2
|
* Split get_symbol from view.cc.Robert Vollmert2009-11-061-238/+6
|
* Unify mesmerisation code.Robert Vollmert2009-11-051-29/+6
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* Replace mons_is_paralysed with monsters::paralysed.Vsevolod Kozlov2009-11-051-3/+3
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Make many checks for monster (non)existence on squares use monster_at().David Lawrence Ramsey2009-11-051-1/+1
| | | | | | | Not all are changed yet, as there are several index checks still needed for debugging purposes. Also, make many checks for player/monster (non)existence use actor_at().
* Replace uses of player_is_swimming with you.swimming.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* view.cc: viewwindow() don't always update mon gridMatthew Cline2009-11-051-1/+1
| | | | | viewwindow() was always calling monster_grid() with "do_updates == true".
* Split up view.cc.Robert Vollmert2009-11-041-2114/+29
|
* Buff passive mapping, esp. at low levels.Stefan O'Rear2009-11-041-1/+1
|
* [ and ] respect dungeon topology (by)Stefan O'Rear2009-11-041-60/+7
|
* Get rid of multiple-meaning "int object" in env.show.Robert Vollmert2009-11-041-343/+60
| | | | | | | | | | | | | 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.
* Move feature_def and Feature array into feature.cc from view.cc.Robert Vollmert2009-11-041-755/+15
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* view.cc: Unitialized warnings in show_map()Matthew Cline2009-11-031-5/+5
|
* Support for X map multi-level viewing on tiles.Enne Walker2009-11-031-1/+16
| | | | | Fixes seeing in-LOS squares on incorrect levels. Fixes the minimap not updating. Fixes the player dot appearing on the minimap on wrong levels.
* Use G in the overmap to directly change levelsStefan O'Rear2009-11-021-0/+18
|
* Implement map viewing for other levelsStefan O'Rear2009-11-021-78/+212
| | | | | | | There are three new commands described on the X? screen. Interlevel travel works. Other levels are not currently highlighted by reachability; let me know if you want this. Interface stolen from TAEB :). dpeg's stair view is not yet in.
* Mapping should be able to see through closed doorsStefan O'Rear2009-11-021-1/+1
|
* Make same square teleport no-scatter no-fail and no-contamination.Adam Borowski2009-11-021-1/+7
| | | | | We can have either this, making SIGHUP on teleport control prompt make you randomly teleport, or forcing a teleport on reload.
* Magic mapping scrolls ignore sealed areasStefan O'Rear2009-11-021-0/+49
|
* Split up monstuff.ccMatthew Cline2009-11-011-0/+1
| | | | | | | A lot of monstuff.cc was moved into mon-abil.cc (monster abilities), mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and mon-cast.cc (monster spells). mstuff2.cc was completely merged into other files.