From f8b9400713cbb96f61c1515132aa6af99c73d600 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Fri, 1 Sep 2017 22:55:17 +0300 Subject: Sunlight fixes, config fixes --- src/Mobs/PathFinder.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Mobs/PathFinder.h') 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. -- cgit v1.2.3