2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "TargetGoal.h"
|
|
|
|
|
|
|
|
|
|
class HurtByTargetGoal : public TargetGoal
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
bool alertSameType;
|
2026-03-02 17:37:16 +07:00
|
|
|
shared_ptr<Mob> oldHurtByMob;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
HurtByTargetGoal(Mob *mob, bool alertSameType);
|
|
|
|
|
|
|
|
|
|
bool canUse();
|
|
|
|
|
void start();
|
|
|
|
|
void tick();
|
|
|
|
|
};
|