summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-01 21:55:17 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-01 21:55:17 +0200
commitf8b9400713cbb96f61c1515132aa6af99c73d600 (patch)
tree7ec1ca42f4d23426b103ec89169c4dd57f7c6194 /src/Mobs/PathFinder.h
parentmerge (diff)
downloadcuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.gz
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.bz2
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.lz
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.xz
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.zst
cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.zip
Diffstat (limited to 'src/Mobs/PathFinder.h')
-rw-r--r--src/Mobs/PathFinder.h13
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.