summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-05-20 23:40:25 +0200
committerworktycho <work.tycho@gmail.com>2015-05-20 23:40:25 +0200
commit1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6 (patch)
tree68b959cc0ca2eaee66add4887fed70785e4ce283 /src/Mobs/Path.h
parentMerge pull request #2074 from SafwatHalaby/rmUnique (diff)
parentPath recalculation improvements (diff)
downloadcuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar.gz
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar.bz2
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar.lz
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar.xz
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.tar.zst
cuberite-1bdd205eb8195c4e44d2072aa2e1ddb0a11745c6.zip
Diffstat (limited to 'src/Mobs/Path.h')
-rw-r--r--src/Mobs/Path.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Mobs/Path.h b/src/Mobs/Path.h
index acc56ef2d..b296bbdf5 100644
--- a/src/Mobs/Path.h
+++ b/src/Mobs/Path.h
@@ -1,16 +1,13 @@
#pragma once
-/* Wanna use the pathfinder? Put this in your header file:
-
-// Fwd: cPath
+/*
+// Needed Fwds: cPath
enum class ePathFinderStatus;
class cPath;
-
-Put this in your .cpp:
-#include "...Path.h"
*/
+#include "../FastRandom.h"
#ifdef COMPILING_PATHFIND_DEBUGGER
/* Note: the COMPILING_PATHFIND_DEBUGGER flag is used by Native / WiseOldMan95 to debug
this class outside of MCServer. This preprocessor flag is never set when compiling MCServer. */
@@ -166,6 +163,7 @@ private:
Vector3i m_Source;
int m_StepsLeft;
cPathCell * m_NearestPointToTarget;
+ cFastRandom m_Rand;
/* Control fields */
ePathFinderStatus m_Status;