diff options
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/PathFinder.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Mobs/PathFinder.h b/src/Mobs/PathFinder.h index 19f1d0c14..252ac29ff 100644 --- a/src/Mobs/PathFinder.h +++ b/src/Mobs/PathFinder.h @@ -40,10 +40,16 @@ public: ePathFinderStatus GetNextWayPoint(cChunk & a_Chunk, const Vector3d & a_Source, Vector3d * a_Destination, Vector3d * a_OutputWaypoint); /** Sets the dontCare value. See the GetNextWayPoint documentation for details. */ - void setDontCare(bool a_DontCare); + void SetDontCare(bool a_DontCare); /** Returns the current dontCare value. */ - bool getDontCare(); + bool GetDontCare(); + + /** If true, the mob will try avoiding sunlight. */ + void SetAvoidSunlight(bool a_AvoidSunlight); + + /** Returns the current AvoidSunlight value. */ + bool GetAvoidSunlight(); private: /** The width of the Mob which owns this PathFinder. */ @@ -85,6 +91,9 @@ private: in an GetNextWayPoint call. */ bool m_DontCare; + /** If true, */ + bool m_AvoidSunlight; + /** Ensures the location is not in the air or under water. May change the Y coordinate of the given vector. 1. If a_Vector is the position of water, a_Vector's Y will be modified to point to the first air block above it. |