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