aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/OwnerHurtTargetGoal.h
blob: 1eba5957ef566b8632555fdacf62c8335b387533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "TargetGoal.h"

class TamableAnimal;

class OwnerHurtTargetGoal : public TargetGoal
{
private:
	TamableAnimal *tameAnimal; // Owner of this goal
	weak_ptr<LivingEntity> ownerLastHurt;
	int timestamp;

public:
	OwnerHurtTargetGoal(TamableAnimal *tameAnimal);

	bool canUse();
	void start();
};