mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-26 12:02:55 +00:00
17 lines
311 B
C++
17 lines
311 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class TamableAnimal;
|
|
|
|
class OwnerHurtTargetGoal : public TargetGoal {
|
|
private:
|
|
TamableAnimal* tameAnimal; // Owner of this goal
|
|
std::weak_ptr<Mob> ownerLastHurt;
|
|
|
|
public:
|
|
OwnerHurtTargetGoal(TamableAnimal* tameAnimal);
|
|
|
|
bool canUse();
|
|
void start();
|
|
}; |