diff options
author | SafwatHalaby <SafwatHalaby@users.noreply.github.com> | 2015-05-16 13:05:33 +0200 |
---|---|---|
committer | SafwatHalaby <SafwatHalaby@users.noreply.github.com> | 2015-05-17 18:36:52 +0200 |
commit | 29e31c5be95abd6a7122a525f53d80f4576e49b2 (patch) | |
tree | d3fe3c82b0d27a9a35f120934eca16b3daf36829 /src/Mobs/Monster.h | |
parent | PathFinder uses UniquePtr for cell map. (diff) | |
download | cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar.gz cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar.bz2 cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar.lz cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar.xz cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.tar.zst cuberite-29e31c5be95abd6a7122a525f53d80f4576e49b2.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. |