summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-mon.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .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!
* Move redraw functions from stuff.cc -> output.ccNicholas Feinberg2014-07-281-0/+1
|
* 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.
* Allow viewing remembered info about out of LOS stuff.Adam Borowski2013-10-281-1/+1
|
* Use std namespace.Raphael Langella2012-08-261-6/+6
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Remove parentheses around return (simple_function_call).Adam Borowski2012-07-051-2/+2
| | | | For way too paranoid and underinclusive values of "simple".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-16/+16
|
* Remove a good deal of header inclusion.Adam Borowski2012-05-231-1/+0
| | | | | | | | | These accumulate but never get removed; no wonder compilation times keep rising. The includes.sh script has lots of false negatives (and positives...), and can't check .h files which cause the biggest slowdown, it'd be nice to run multidelta on those somehow.
* Merge branch 'tiles-monster-info'Florian Diebold2011-12-151-13/+14
|\
| * Make monster_info::pos grid- instead of player-relative.Florian Diebold2011-11-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | It was converted back everywhere it was used anywhere, and it became useless after the player moved. Mostly, the monster position is needed to refer back to the grid cell the monster is in, so as long as map_knowledge uses the normal grid coordinate system, monster_info should too. Note that Webtiles obscures coordinates in a better way already anyway, by using the coordinate of the first cell sent as origin and sticking to that coordinate system as long as the level doesn't change.
| * Fix an invalid read indicated by valgrind.Florian Diebold2011-11-231-1/+1
| | | | | | | | It was probably inconsequential, but still.
| * Use monster_info in the Tiles monster region.Florian Diebold2011-11-231-12/+13
| | | | | | | | All that was needed there was the monster's position, anyway.
* | Shorten the name of describe-templates.hAdam Borowski2011-12-061-1/+1
| | | | | | | | Its length makes "ls" use few wide columns.
* | Split templates out of describe.h, to speed testing of changes to them.Samuel Bronson2011-12-051-0/+1
|/ | | | | Few files use these templates: for console, describe.cc alone uses them; for tiles, only a few other files do.
* Merge branch 'master' into unified_combat_controlRobert Burnham2011-10-251-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/Makefile.obj crawl-ref/source/dbg-scan.cc crawl-ref/source/decks.cc crawl-ref/source/describe.cc crawl-ref/source/directn.cc crawl-ref/source/evoke.cc crawl-ref/source/fight.cc crawl-ref/source/fight.h crawl-ref/source/ghost.cc crawl-ref/source/ghost.h crawl-ref/source/item_use.cc crawl-ref/source/items.cc crawl-ref/source/map_knowledge.cc crawl-ref/source/melee_attack.h crawl-ref/source/mon-abil.cc crawl-ref/source/mon-act.cc crawl-ref/source/mon-stuff.cc crawl-ref/source/monster.cc crawl-ref/source/monster.h crawl-ref/source/player.cc crawl-ref/source/player.h crawl-ref/source/shopping.cc crawl-ref/source/spl-damage.cc crawl-ref/source/spl-summoning.cc crawl-ref/source/spl-transloc.cc crawl-ref/source/stairs.cc crawl-ref/source/stuff.cc crawl-ref/source/tags.cc crawl-ref/source/traps.cc crawl-ref/source/xom.cc
| * First prototype of webtiles.Florian Diebold2011-06-261-1/+1
| | | | | | | | | | | | Conflicts: crawl-ref/source/startup.cc
* | Merge branch 'master' into unified_combat_controlRobert Burnham2011-04-261-4/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/actor.cc crawl-ref/source/delay.cc crawl-ref/source/directn.cc crawl-ref/source/directn.h crawl-ref/source/fight.cc crawl-ref/source/files.cc crawl-ref/source/mon-act.cc crawl-ref/source/monster.cc crawl-ref/source/mpr.h crawl-ref/source/player.cc crawl-ref/source/shopping.cc
| * Doxygenization and junk purging that was missed by my script.Adam Borowski2011-04-021-4/+0
| |
* | Replace DESC_NOCAP_A and DESC_CAP_A with DESC_ARobert Burnham2011-03-251-1/+1
|/
* Re-implement certain tile flags as packed_cell struct members. (Tiles)Jude Brown2011-01-011-1/+1
| | | | | | | | | | | | | | | | | | | | | Previously, viewgeom.h:struct_cell_t contained tile_fg and tile_bg members. These were modified in tileview.cc:tile_apply_properties and view.cc:viewwindow. Whenever a silenced, haloed, bloody or moldy area was encountered, TILE_FLAG_x was OR'd into the tile_bg. This functionality was perfect only until the tile_flags enum stayed within the bounds of a 32 bit unsigned integer. We've now reached the limit of tile_flags, so any further interaction would either have to be done in the buffer (which would add more dependency on the game state to the tiles code, which we're trying to avoid), or have more attributes added into screen_cell_t and tilegdnbuf.h:packed_cell. Hence, I went with the latter option: extend screen_cell_t to contained boolean flags for silence, halo, etc. Instead of having to add new members to screen_cell_t *and* packed_cell, I instead added a packed_cell into screen_cell_t. And it works now, hooray!
* Update monster tab before drawing it.Raphael Langella2010-12-301-0/+1
| | | | This fix #3092 and probably other bugs with the monster tab.
* Split icons out from main.png. Fixes #2981.Johanna Ploog2010-12-161-2/+3
| | | | This should also allow us to draw clouds beneath monsters.
* Rename class "monsters" to "monster".Robert Vollmert2010-09-051-6/+6
|
* Fix tiles compile error (Napkin).Robert Vollmert2010-09-041-1/+1
|
* Simplify some coordinate transformations.Robert Vollmert2010-09-051-1/+1
|
* Fix tiles compilation (KiloByte)Eino Keskitalo2010-07-281-1/+1
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Change player last_clicked globals to members.Enne Walker2010-06-091-3/+3
|
* Split off tilepick files into tileview.Enne Walker2010-05-301-0/+1
| | | | | | tileview.h/cc now contains all the functions that change what is shown to the player via env. tilepick now contains only "const" functions to look up tiles.
* Split up tiles.h.Enne Walker2010-05-301-0/+1
| | | | | | Most of it has gone into tilepick.h, but also into enum.h and initfile.cc. Unlike tiles.h which was included everywhere, tilepick.h is now only a dependency of about half the files.
* Use tileidx_t for tile indices. Also, cleanup.Enne Walker2010-05-301-2/+2
| | | | | | | | This new type defines to unsigned int, but it cleans up a lot of the int/unsigned int/short confusion all over the codebase for tile indices. This commit also cleans up tiles code to use coord_def more and to change function signatures to pass const refs and non-const pointers.
* Fix tiles build on non-MSVC.Adam Borowski2010-05-271-0/+1
|
* Merge ActorRegion and MonsterRegion.Enne Walker2010-05-261-1/+178
|
* Add monster list for tiles.Enne Walker2010-05-261-0/+44
This is currently implemented as an additional tab. Possibly improvements might be to always display it on screen if there's room or to simply pop to the tab when new monsters appear.