mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-30 22:42:53 +00:00
17 lines
275 B
C++
17 lines
275 B
C++
#pragma once
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
class HurtByTargetGoal : public TargetGoal {
|
|
private:
|
|
bool alertSameType;
|
|
std::shared_ptr<Mob> oldHurtByMob;
|
|
|
|
public:
|
|
HurtByTargetGoal(Mob* mob, bool alertSameType);
|
|
|
|
bool canUse();
|
|
void start();
|
|
void tick();
|
|
};
|