diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 00:04:33 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-02 00:04:33 +0200 |
commit | abf87d7922ea9fde6720d26a67e2b8460690a3f3 (patch) | |
tree | af431d7b6879e71243a6ad6c9aefa9f0ec80c1b1 /src/Mobs/Monster.h | |
parent | Lambda merge fix (diff) | |
download | cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.gz cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.bz2 cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.lz cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.xz cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.zst cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index be3d64e06..f8cac4e7a 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -68,6 +68,12 @@ public: /** Engage pathfinder and tell it to calculate a path to a given position, and move the mob accordingly. */ virtual void MoveToPosition(const Vector3d & a_Position); // tolua_export + // mobTodo - MoveToPosition export is probably broken. The AI will keep overriding the + // destination. + + /** Stops pathfinding. Calls ResetPathFinding and sets m_IsFollowingPath to false */ + void StopMovingToPosition(); + // tolua_begin eMonsterType GetMobType(void) const { return m_MobType; } eFamily GetMobFamily(void) const; @@ -267,9 +273,6 @@ protected: /** Move in a straight line to the next waypoint in the path, will jump if needed. */ void MoveToWayPoint(cChunk & a_Chunk); - /** Stops pathfinding. Calls ResetPathFinding and sets m_IsFollowingPath to false */ - void StopMovingToPosition(); - /** Sets the body yaw and head yaw */ void SetPitchAndYawFromDestination(bool a_IsFollowingPath); |