#pragma once
#include "Entity.h"
//颗粒实体：生命恢复效果（产生器）
class PeLifeRecover :
    public Entity
{
public:
    PeLifeRecover(std::weak_ptr<Entity> target, bool (*LeaveFunc)(std::weak_ptr<Entity> e), float dx = 0, float dy = 0, int range_dx = 8);
    void Step() override;
    float dx = 0;
    float dy = 0;
    int range_dx = 0;
    bool (*LeaveFunc)(std::weak_ptr<Entity> e) = nullptr;
    bool leave = false;
    int lastHp = 0;
};

