#pragma once
#include "Entity.h"
#include "EntityStateSplash.h"
#define CS_ENEMY_SEASMILE_CREATENAME L"CS_enemy_seasmile"
//µÐÈË£ºº£Ê·À³Ä·
class CS_Enemy_SeaSmile :
    public Entity
{
public:
    CS_Enemy_SeaSmile();
    void Init(std::weak_ptr<Entity> self) override;
    void Step() override;
    void SetState(int stateID, int lr) 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 Flip();
    EntityStateSplash stateSplash;
    bool bInvert = false;
    bool bLanding = true;
    int flash_counter = 0;
    int flip_interval_counter = 0;
    int flip_interval_counter_max = 60;
    const float jumpSpeed = 0x800 / ts;
};

std::shared_ptr<Entity> CreateCS_Enemy_SeaSmile();