summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/viewgeom.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!
* Fix compilation (johnstein)Neil Moore2014-07-281-0/+1
|
* Remove the show_gold_turns option.Shmuale Mark2014-07-021-3/+2
| | | | | | There's really no reason not to show the line; in other options, having the default always be the case can be annoying, but if you don't want to look at the gold/turns display, you can just not.
* Melt away lava orcs.Steve Melenchuk2014-05-141-1/+4
| | | | | | | | | | | | | | | | When you strip away the fundamentally broken tension mechanic, you're left with a species that is essentially "Hill Orcs WITH FIRE". No effort has come forward with code to fix either aspect of them despite the length of time they've been around in trunk, and the code is littered with a very large number of special cases in their presence. Current lava orcs should be able to finish their games fine, but new starts are disallowed. There are a couple of bits I've left present but which will have no function for the moment, mostly related to interactions with lava (as there are a couple of species proposals floating around that benefit from having those interactions).
* Increase hardcoded message window height in Webtiles to 6.Florian Diebold2014-05-011-1/+5
| | | | | This coincides with the actual client-side height and still fits into 24 lines. Of course, this still needs a more permanent solution.
* Ignore msg_min_height for Webtiles games.Florian Diebold2014-04-261-1/+11
| | | | | Since they are recorded at 80x24, the game could otherwise fail to start because there's not enough vertical space.
* Drop some useless parentheses around comparisons.Adam Borowski2014-01-101-1/+1
|
* Indentation fixes.Adam Borowski2013-12-041-3/+3
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-4/+4
|
* Give a better message when the terminal is too small for the layout.Neil Moore2013-07-191-5/+16
| | | | | | | | | | | | | | It was possible to get e.g. "Terminal too small (80,25); need at least (79,24)". Now we have a slightly different message when the problem is the layout rather than the absolute (79,24) limit; and we include the actual required size. The required size reported by this commit isn't perfect because there doesn't seem to be a good way of asking for the true minimum size along a sufficiently-large axis (leftover_x() is zero even though things could be shrunk). We currently report the absolute minimum for such axes, even though the true limit could in fact be somewhere between that and the current size.
* Don't let Lava Orcs incinerate ZotDef (#7150).Steve Melenchuk2013-06-061-1/+2
| | | | This is exceedingly kludgy, but it works.
* Fixed arena mode tiles misalignment.AriaB2013-03-261-0/+4
| | | | Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
* Use std namespace.Raphael Langella2012-08-261-5/+5
| | | | | | | | | | | | | 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.
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-6/+6
|
* Drop pointless braces after if/for/while everywhere.Adam Borowski2012-04-201-2/+0
|
* Remove some more options: classic_hud, classic_item_coloursChris Campbell2011-10-251-13/+4
|
* Make Webtiles output happen in parallel to the console display, and make the ↵Florian Diebold2011-10-151-3/+3
| | | | | | | | | | | | | | | | | | server record ttyrecs. Crawl compiled with WEBTILES=y should now be playable normally (i.e. indistinguishable from one compiled without WEBTILES) when run from a terminal. (This is not yet completely the case.) The Webtiles data is written on a Unix-domain datagram socket; the Crawl parameter -webtiles-socket determines a path on which the Crawl process receives control messages. The Webtiles server then runs Crawl in a pseudo-terminal and records its console output into a ttyrec file. The goal of all this is of course to be able to watch Webtiles games from ssh, and later the reverse.
* Use ZP rather than XP for Zot abilities.Adam Borowski2011-05-091-1/+2
| | | | | The display sucks, it could be inserted into the gold_turns line, except that some heretics might have it disabled.
* Don't start the game if terminal is smaller than 80x24.Raphael Langella2011-03-181-10/+6
| | | | | I don't really understand the point of lay_inline.valid and crawl_state.need_save, so I've left them as a safety.
* Silence a gcc-4.5 warning for a tautological assert.Adam Borowski2011-01-011-0/+4
| | | | | | | | | | Sadly, we can't do this in the ASSERT() #define itself, as in GCC versions up to 4.5 warning pragmas are global, setting them in any place in the file affects the entire compilation unit no matter where you specify it. GCC 4.6 and new Clangs allow you to flip warnings as often as you please, so we'll be able to do this properly then.
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-9/+9
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Use the crawl_view coordinate transformations in some places.Robert Vollmert2010-09-051-2/+2
|
* Refactor crawl view buffer.Enne Walker2010-05-301-6/+37
| | | | | | | Rather than using explicit offsets (e.g. buffy[0] and buffy[1]), store colour, glyph, and tiles for each cell in the view buffer in a struct with named members. This refactoring will also theoretically allow for the tiles version to display glyphs instead of tiles.
* Make tiles use viewwindow for 'X' map display.Enne Walker2010-02-231-3/+6
| | | | | | This eliminates a duplicate function that had gotten out of sync with the original viewwindow. (In particular, this fixes a bug where using X in the Abyss would show out of sight tiles and the presence of items.)
* Reduce minimum message window height to 5.Robert Vollmert2009-12-031-2/+1
| | | | | | | | | | This is FR 2814313. This required adding a new option msg_min_height defaulting to 6 to keep the same default layout. I don't believe anything requires a message window of more than 5 lines (acquirement is fine with that).
* Optionally display message window at top of terminal.Robert Vollmert2009-11-291-2/+10
| | | | | | | | | | | | Set messages_at_top=true to use. This is not quite aesthetically pleasing since character name and title which form a kind of heading for the screen are now in the middle. It might be better to display them in an extra line across the top. Also, the layout should really be moved out to lua and made completely user configurable.
* Allow the message window to use the bottom right terminal position.Robert Vollmert2009-11-291-4/+1
| | | | | | | | | This was causing scrolling problems, but now that scrolling is off, this shouldn't occur anymore. For reference, if problems with writing to the bottom right corner of the terminal show up: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311345
* Make tiles and non-tiles use the "same" screen_buffer_t buffy.Robert Vollmert2009-11-131-8/+20
| | | | This change also gets rid of the ugly intermediate macroing.
* Generalize crawl_view_buffer to also handle the tile buffers.Robert Vollmert2009-11-131-20/+8
| | | | Also make view.cc use crawl_view_geometry.tbuf for tiles drawing.
* Replace you.pos() with last_player_pos.Robert Vollmert2009-11-061-1/+1
| | | | | Before, the code implicitly assumed that you.pos() hadn't already been updated.
* Split up view.cc.Robert Vollmert2009-11-041-0/+382