aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/OwnerHurtTargetGoal.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/OwnerHurtTargetGoal.h')
-rw-r--r--Minecraft.World/OwnerHurtTargetGoal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Minecraft.World/OwnerHurtTargetGoal.h b/Minecraft.World/OwnerHurtTargetGoal.h
new file mode 100644
index 00000000..71079645
--- /dev/null
+++ b/Minecraft.World/OwnerHurtTargetGoal.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "TargetGoal.h"
+
+class TamableAnimal;
+
+class OwnerHurtTargetGoal : public TargetGoal
+{
+private:
+ TamableAnimal *tameAnimal; // Owner of this goal
+ weak_ptr<Mob> ownerLastHurt;
+
+public:
+ OwnerHurtTargetGoal(TamableAnimal *tameAnimal);
+
+ bool canUse();
+ void start();
+}; \ No newline at end of file