summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2015-05-18 09:30:43 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2015-05-18 09:30:43 +0200
commit007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9 (patch)
tree8330aefdc4693303f3a944940a919d8bd2333bac /src/Mobs/Monster.h
parentUpdated the defaults for the overworld world generator (diff)
parentMerge pull request #2049 from mc-server/sapling-probability (diff)
downloadcuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar.gz
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar.bz2
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar.lz
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar.xz
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.tar.zst
cuberite-007bac638bb732aad7ca63dd3e7a79f5dbb9d2b9.zip
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r--src/Mobs/Monster.h7
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.