mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-24 21:02:54 +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();
|
|
}; |