aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/OwnerHurtTargetGoal.h
blob: 7107964512fcd5f5bd0e69d4b729d868430a7a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
};