summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/teleport.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-14 15:55:47 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-14 16:56:31 +0100
commit56340c3e0560dd4791617784e5f09363bfe06373 (patch)
tree40f136c33a13148a17186878145c8c10652c14d7 /crawl-ref/source/teleport.h
parentead894c0109cf61ddd4830cc6b090efc7f70e595 (diff)
downloadcrawl-ref-56340c3e0560dd4791617784e5f09363bfe06373.tar.gz
crawl-ref-56340c3e0560dd4791617784e5f09363bfe06373.zip
Implement blink_range and blink_away.
This is done by generalizing random_close_space to random_space weighted. Also tweak the weights a little. These might still need work.
Diffstat (limited to 'crawl-ref/source/teleport.h')
-rw-r--r--crawl-ref/source/teleport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/teleport.h b/crawl-ref/source/teleport.h
index 2224c0958c..a330edc78e 100644
--- a/crawl-ref/source/teleport.h
+++ b/crawl-ref/source/teleport.h
@@ -1,7 +1,12 @@
#ifndef TELEPORT_H
#define TELEPORT_H
+class actor;
+class monsters;
+
void blink_closer(actor* victim, const coord_def& target);
+void blink_away(monsters* mon);
+void blink_range(monsters* mon);
bool random_near_space(const coord_def& origin, coord_def& target,
bool allow_adjacent = false, bool restrict_LOS = true,