aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/DefendVillageTargetGoal.h
blob: 9956ae0a46c338fff78e50ff44c0ef8c20aa08be (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 VillagerGolem;

class DefendVillageTargetGoal : public TargetGoal
{
private:
	VillagerGolem *golem; // Owner of this goal
	weak_ptr<LivingEntity> potentialTarget;

public:
	DefendVillageTargetGoal(VillagerGolem *golem);

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