mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
20 lines
335 B
C++
20 lines
335 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtByTargetGoal : public TargetGoal
|
|
{
|
|
private:
|
|
TamableAnimal *tameAnimal; // Owner of this goal
|
|
weak_ptr<LivingEntity> ownerLastHurtBy;
|
|
int timestamp;
|
|
|
|
public:
|
|
OwnerHurtByTargetGoal(TamableAnimal *tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
void stop();
|
|
}; |