2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
|
|
|
|
|
|
class VillagerGolem;
|
|
|
|
|
|
|
|
|
|
class DefendVillageTargetGoal : public TargetGoal
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
VillagerGolem *golem; // Owner of this goal
|
2026-03-01 11:00:23 -06:00
|
|
|
weak_ptr<LivingEntity> potentialTarget;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
DefendVillageTargetGoal(VillagerGolem *golem);
|
|
|
|
|
|
|
|
|
|
bool canUse();
|
|
|
|
|
void start();
|
|
|
|
|
};
|