aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/OwnerHurtByTargetGoal.h
blob: 2cdc937810928f504d7e847276add875b23f7c52 (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 OwnerHurtByTargetGoal : public TargetGoal
{
private:
	TamableAnimal *tameAnimal; // Owner of this goal
	weak_ptr<LivingEntity> ownerLastHurtBy;
	int timestamp;

public:
	OwnerHurtByTargetGoal(TamableAnimal *tameAnimal);

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