summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-03-17 17:03:44 +0000
committerkwolekr <kwolekr@minetest.net>2013-04-06 11:24:03 -0400
commit69367aa7998d3817db1d4b101f36a6e25b1becf8 (patch)
treeeed4ec1b61f6f6cefe372c31f5a2ace42a513af6 /src/environment.h
parent97f0bb03423b6d2e22058166b677e568c53d7567 (diff)
downloadminetest-69367aa7998d3817db1d4b101f36a6e25b1becf8.tar.gz
minetest-69367aa7998d3817db1d4b101f36a6e25b1becf8.tar.bz2
minetest-69367aa7998d3817db1d4b101f36a6e25b1becf8.zip
Add Dijkstra A* and A* without prefetching pathfind algorithms
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index 7f73a5461..a3e43dbb4 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -298,6 +298,9 @@ public:
// This makes stuff happen
void step(f32 dtime);
+ //check if there's a line of sight between two positions
+ bool line_of_sight(v3f pos1, v3f pos2, float stepsize=1.0);
+
private:
/*