mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 03:43:38 +00:00
18 lines
339 B
C++
18 lines
339 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtTargetGoal : public TargetGoal {
|
|
private:
|
|
TamableAnimal* tameAnimal; // Owner of this goal
|
|
std::weak_ptr<LivingEntity> ownerLastHurt;
|
|
int timestamp;
|
|
|
|
public:
|
|
OwnerHurtTargetGoal(TamableAnimal* tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |