summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/target.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-05-07 12:03:16 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-05-08 02:56:55 +0200
commitc72633f3ac3476c597f3ecc322c7bacda0010822 (patch)
treef7463d9426217e88fd7096e924cbea050a1c86ba /crawl-ref/source/target.h
parent6eee55f5ed2591e255302a41763eed449adc2547 (diff)
downloadcrawl-ref-c72633f3ac3476c597f3ecc322c7bacda0010822.tar.gz
crawl-ref-c72633f3ac3476c597f3ecc322c7bacda0010822.zip
Let targetters return a custom reason why targetting failed.
This fixes nearby walls being "out of range".
Diffstat (limited to 'crawl-ref/source/target.h')
-rw-r--r--crawl-ref/source/target.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/target.h b/crawl-ref/source/target.h
index e950a4d1c2..290be60fd7 100644
--- a/crawl-ref/source/target.h
+++ b/crawl-ref/source/target.h
@@ -21,6 +21,7 @@ public:
coord_def origin;
coord_def aim;
const actor* agent;
+ std::string why_not;
virtual bool set_aim(coord_def a);
virtual bool valid_aim(coord_def a) = 0;