#pragma once

#include "character/states/jobs/swordman/SwordmanActionHandler.h"

namespace frostbite2D {

class SwordmanBasicAttackHandler : public SwordmanActionHandlerBase {
public:
  SwordmanBasicAttackHandler();

  void OnEnter(CharacterStateContext& context,
               const CharacterActionDefinition& action) override;
  SwordmanActionUpdateResult OnUpdate(CharacterStateContext& context,
                                      const CharacterActionDefinition& action) override;
  void OnExit(CharacterStateContext& context,
              const CharacterActionDefinition& action) override;

private:
  void BeginComboStep(CharacterStateContext& context, int comboStep);

  int comboStep_ = 0;
};

} // namespace frostbite2D
