mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 05:12:19 +01:00
19 lines
333 B
C++
19 lines
333 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtTargetGoal : public TargetGoal
|
|
{
|
|
private:
|
|
TamableAnimal *tameAnimal; // Owner of this goal
|
|
weak_ptr<LivingEntity> ownerLastHurt;
|
|
int timestamp;
|
|
|
|
public:
|
|
OwnerHurtTargetGoal(TamableAnimal *tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |