aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/NonTameRandomTargetGoal.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/NonTameRandomTargetGoal.h')
-rw-r--r--Minecraft.World/NonTameRandomTargetGoal.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Minecraft.World/NonTameRandomTargetGoal.h b/Minecraft.World/NonTameRandomTargetGoal.h
new file mode 100644
index 00000000..8adba7df
--- /dev/null
+++ b/Minecraft.World/NonTameRandomTargetGoal.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "NearestAttackableTargetGoal.h"
+
+class TamableAnimal;
+
+class NonTameRandomTargetGoal : public NearestAttackableTargetGoal
+{
+private:
+ TamableAnimal *tamableMob; // Owner of this goal
+
+public:
+ NonTameRandomTargetGoal(TamableAnimal *mob, const type_info& targetType, float within, int randomInterval, bool mustSee);
+
+ bool canUse();
+}; \ No newline at end of file