mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-15 20:52:11 +00:00
18 lines
345 B
C++
18 lines
345 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtByTargetGoal : public TargetGoal {
|
|
private:
|
|
TamableAnimal* tameAnimal; // Owner of this goal
|
|
std::weak_ptr<LivingEntity> ownerLastHurtBy;
|
|
int timestamp;
|
|
|
|
public:
|
|
OwnerHurtByTargetGoal(TamableAnimal* tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |