#pragma once
#include "Entity.h"
//捕获者炸弹冲击波（抛射物）
class CS_JackCatcherBombBlaster :
    public Entity
{
public:
    CS_JackCatcherBombBlaster(std::shared_ptr<Entity> parent, int styleIndex);
    void Step() override;
    void Attack(std::weak_ptr<Entity> dst, int* outDamage, float* outAngle, bool* outTakedown, int* outElemType, float* outShockForce, float* outHeavy) override;
    bool Hurt(std::weak_ptr<Entity> src, int getDamage, float angle, bool bTakedown, int elemType, float shockForce, float heavy, int* outRealDamage) override;
    void SetStyle(int styleIndex);
    int sleepTime_counter = 0;//延时时间
    int birthTime_counter = 4;//前8帧没有捕捉效果
    int blasterTime_counter = 20;//捕捉效果持续时间
    std::wstring endAni;
};

void SetCS_JackCatcherBombBlaster(std::shared_ptr<Entity> parent, int styleIndex, float x, float y, int sleepTime = 0);