summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_view.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-2/+2
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* The great mon-stuff migration.Shmuale Mark2014-06-221-0/+1
| | | | | | | | | A good deal of functions move to the two new files, mon-poly and mon-message. Of the others, some go to where they are used, some to mon-util, and a few are made member methods of monster. This probably breaks Xcode compilation, and I'm not able to test the changes I made to MSVC that will (hopefully) keep it working.
* A couple of tidbits of dlua functionality.Steve Melenchuk2014-06-061-0/+9
| | | | | | | | mons.speak prompts a monster to speak using the specified key. view.update_monsters calls update_monsters_in_view(). These are both used in a vault that I'll commit in a moment.
* Have clua view. funcs give return vals with out-of-bounds coords (gw).Steve Melenchuk2014-05-281-0/+9
| | | | | They didn't have anything specified to return then, leading to undefined and odd behaviour.
* Runed doors aren't safe (qw, wheals).elliptic2014-05-081-1/+2
| | | | | This stops autofight/automagic from opening runed doors to get to enemies who are visible through glass.
* Replace Q cloud displacement with cloud immunity (Bloax, elliptic).Steve Melenchuk2014-05-071-3/+2
| | | | | | | Because getting trampled into your own clouds is terrible. Also disables this when under penance, which was an oversight for the former.
* Let clua view.is_safe_square interact correctly with Qazlal displacement.Steve Melenchuk2014-05-071-1/+7
| | | | Fixes tab behaviour with Qazlal.
* Give lua the information of which squares are forbidden because of mesm/fear.elliptic2014-02-231-0/+11
|
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Fix view.feature_at() not handling unseen squares properly.elliptic2013-11-051-2/+1
| | | | It returned garbage, now it returns "unseen".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-11/+11
|
* Add feat_is_reachable_past to handle trees correctly.elliptic2012-04-041-2/+2
|
* Autofight: don't try to reach through glass or trees.elliptic2012-04-041-0/+28
|
* Make some more functions static/gone.Adam Borowski2012-03-251-5/+0
|
* Ignore player swimming etc for connectivity checks.Neil Moore2012-01-041-1/+1
| | | | | | | | | | | | | | The dungeon should not arrange itself to suit the player's abilities. Besides this general philosophical objection, there are a few actual bugs caused by this behaviour: * Entering a vaults level in bat form (which cannot open doors) causes a level generation failure. * travel_avoid_terrain = shallow_water can cause vaults to be vetoed. * Permanent flight or levitation could allow item shifting to push an item (even a critical item) into lava or deep water while trying to save it. Fixes #4722.
* Lua function view.is_safe_square().elliptic2011-12-031-0/+35
| | | | | | It might be preferable to call something like _is_travelsafe_square(), but that function does some things that we might not want here. For now, the function just combines simple checks for cloud/trap/feature safety.
* Fix a lua view.feature_at() crash.Adam Borowski2011-03-301-0/+3
|
* 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.
* Fix spacing.Robert Vollmert2010-07-291-1/+1
|
* Make map_cell store feat+cloud+item+mons instead of only the topmost one ↵Luca Barbieri2010-07-291-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (BREAKS SAVES) (v3) Changes in v3 (rob): - update to current master - fix colouring of out-of-LOS clouds - fix reload crash due to env.cgrid Changes in v2: - Features and monsters should now be properly grayed Currently map_cell only stores the topmost "thing" in a cell. This is good enough for the console view, but not for more sophisticated clients (e.g. tiles). This commit refactors the code so that all player knowledge about a cell (including detailed monster and item information) is represented in map_cell, and so that map_cell is used to build the console view. Save compatibility is broken since the new map_cell is serialized instead of the old one. This will allow, for instance, to load console savegames in the tiles version, and still get proper tiles for the explored area. Furthermore, this new map_cell will be the basis of the Crawl protocol for the client/server split. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove env.show in favor of using env.map_knowledgeLuca Barbieri2010-07-291-3/+3
| | | | | | | | | | | | | | Currently env.show stores information about the LOS rectangle, while env.map_knowledge stores the rest of the map. This unnecessarily complicates the code, makes serialization harder, and makes it hard to change the LOS model. This code uses map_knowledge for both kinds of data. Regressions are quite possible. Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Remove libutil.h from AppHdr.h and include explicitly.Robert Vollmert2010-01-201-0/+1
| | | | | | | Also extract unwind_var template to unwind.h. The latter is now included from AppHdr.h, though it needn't really be. This means it's now possible to use coord_def in libutil.h.
* Rewrite view.feature_at.Robert Vollmert2009-11-171-1/+5
| | | | Now returns the feature name of the appearance of a feature in view.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+1
| | | | Also add a few previously indirect includes.
* Refer to env.grid instead of env.show for actual data in l_view.cc.Robert Vollmert2009-10-271-1/+3
|
* Add lua binding for inspecting env.show.Robert Vollmert2009-10-271-0/+37