aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TemptGoal.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/TemptGoal.h')
-rw-r--r--Minecraft.World/TemptGoal.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Minecraft.World/TemptGoal.h b/Minecraft.World/TemptGoal.h
new file mode 100644
index 00000000..78fbe1d8
--- /dev/null
+++ b/Minecraft.World/TemptGoal.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "Goal.h"
+
+class TemptGoal : public Goal
+{
+private:
+ PathfinderMob *mob;
+ float speed;
+ double px, py, pz, pRotX, pRotY;
+ weak_ptr<Player> player;
+ int calmDown ;
+ bool _isRunning;
+ int itemId;
+ bool canScare;
+ bool oldAvoidWater;
+
+public:
+ TemptGoal(PathfinderMob *mob, float speed, int itemId, bool canScare);
+
+ bool canUse();
+ bool canContinueToUse();
+ void start();
+ void stop();
+ void tick();
+ bool isRunning();
+}; \ No newline at end of file