summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-02 16:54:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-02 16:54:20 +0000
commit882095e2a137991f94fb71584a9290bbc333d42b (patch)
tree3f626430f1b76875efaf35e83ea13394c5aa4afd /crawl-ref/source/view.h
parent35f7fe0aa994262518157cae2c4fc22e19939806 (diff)
downloadcrawl-ref-882095e2a137991f94fb71584a9290bbc333d42b.tar.gz
crawl-ref-882095e2a137991f94fb71584a9290bbc333d42b.zip
This is an experimental attempt at selecting more intuitive beams for
targeting (see 1725723): - The default beam selected for targeting is the shortest available beam that is closest to the Bresenham line between src->targ. - Targeting beams convert aliased perpendiculars into diagonals, which look better. This requires an immortal fudge to make sure the diagonal conversion doesn't happen at the wrong places (when the conversion would cause the beam to miss the target square). - Tweaked beam bounce behaviour to look more natural. Comments and suggestions welcome. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1511 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 099f39e48e..841e33c3ab 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -156,7 +156,8 @@ void viewwindow(bool draw_it, bool do_updates);
void fire_monster_alerts();
bool find_ray( int sourcex, int sourcey, int targetx, int targety,
- bool allow_fallback, ray_def& ray, int cycle_dir = 0 );
+ bool allow_fallback, ray_def& ray, int cycle_dir = 0,
+ bool find_shortest = false );
dungeon_char_type dchar_by_name(const std::string &name);