diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-05-17 22:21:52 +0200 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-05-17 22:21:52 +0200 |
commit | b7b088494c601576750e014204635f5b21600eb1 (patch) | |
tree | 9600532fc83329798b39ce3e09714060dcd81839 /src/Mobs/Monster.h | |
parent | properly this time? (diff) | |
parent | Pathfinder - approximated paths when original destination unreachable (diff) | |
download | cuberite-b7b088494c601576750e014204635f5b21600eb1.tar cuberite-b7b088494c601576750e014204635f5b21600eb1.tar.gz cuberite-b7b088494c601576750e014204635f5b21600eb1.tar.bz2 cuberite-b7b088494c601576750e014204635f5b21600eb1.tar.lz cuberite-b7b088494c601576750e014204635f5b21600eb1.tar.xz cuberite-b7b088494c601576750e014204635f5b21600eb1.tar.zst cuberite-b7b088494c601576750e014204635f5b21600eb1.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 5d20ba810..c4043b0e5 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -180,6 +180,13 @@ protected: /** Coordinates for the ultimate, final destination last given to the pathfinder. */ Vector3d m_PathFinderDestination; + /** True if there's no path to target and we're walking to an approximated location. */ + bool m_NoPathToTarget; + + /** Whether The mob has finished their path, note that this does not imply reaching the destination, + the destination may sometimes differ from the current path. */ + bool m_NoMoreWayPoints; + /** Finds the lowest non-air block position (not the highest, as cWorld::GetHeight does) If current Y is nonsolid, goes down to try to find a solid block, then returns that + 1 If current Y is solid, goes up to find first nonsolid block, and returns that. |