mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-02 08:52:59 +00:00
17 lines
317 B
C++
17 lines
317 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtByTargetGoal : public TargetGoal {
|
|
private:
|
|
TamableAnimal* tameAnimal; // Owner of this goal
|
|
std::weak_ptr<Mob> ownerLastHurtBy;
|
|
|
|
public:
|
|
OwnerHurtByTargetGoal(TamableAnimal* tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |