mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 03:57:12 +00:00
17 lines
320 B
C++
17 lines
320 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class VillagerGolem;
|
|
|
|
class DefendVillageTargetGoal : public TargetGoal {
|
|
private:
|
|
VillagerGolem* golem; // Owner of this goal
|
|
std::weak_ptr<LivingEntity> potentialTarget;
|
|
|
|
public:
|
|
DefendVillageTargetGoal(VillagerGolem* golem);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |