#include "Player/PlayerJudgeDrawForward.h"

#include "Player/PlayerJudgeDeadWipeStart.h"
#include "System/GameDataFunction.h"
#include "System/GameDataHolderAccessor.h"

PlayerJudgeDrawForward::PlayerJudgeDrawForward(
    const al::LiveActor* playerActor, const PlayerJudgeDeadWipeStart* playerJudgeDeadWipeStart)
    : mPlayerActor(playerActor), mPlayerJudgeDeadWipeStart(playerJudgeDeadWipeStart) {}

bool PlayerJudgeDrawForward::judge() const {
    if (!GameDataFunction::isPlayerLifeZero(mPlayerActor))
        return false;
    return mPlayerJudgeDeadWipeStart->isDeadTypeDrawForward();
}
