diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-09-27 19:20:03 +0200 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-09-28 07:52:08 +0200 |
commit | db40172b64251d5837e454f351e6f9b267cc050f (patch) | |
tree | 8e3609c909c24a167071721b849984c66baa67fc /src/Mobs/Monster.h | |
parent | Merge pull request #2505 from cuberite/SettableWeather (diff) | |
download | cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar.gz cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar.bz2 cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar.lz cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar.xz cuberite-db40172b64251d5837e454f351e6f9b267cc050f.tar.zst cuberite-db40172b64251d5837e454f351e6f9b267cc050f.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index f9b271bf9..22280110c 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -120,8 +120,8 @@ public: char GetAge (void) const { return m_Age; } void SetAge(char a_Age) { m_Age = a_Age; } // tolua_end - - + + // tolua_begin /** Returns true if the monster has a custom name. */ @@ -178,6 +178,7 @@ protected: /* If 0, will give up reaching the next m_NextWayPointPosition and will re-compute path. */ int m_GiveUpCounter; + int m_TicksSinceLastPathReset; /** Coordinates of the next position that should be reached */ Vector3d m_NextWayPointPosition; @@ -185,6 +186,16 @@ protected: /** Coordinates for the ultimate, final destination. */ Vector3d m_FinalDestination; + /** 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. |