| 1 | #include "Player/PlayerJudgeDrawForward.h" |
|---|---|
| 2 | |
| 3 | #include "Player/PlayerJudgeDeadWipeStart.h" |
| 4 | #include "System/GameDataFunction.h" |
| 5 | #include "System/GameDataHolderAccessor.h" |
| 6 | |
| 7 | PlayerJudgeDrawForward::PlayerJudgeDrawForward( |
| 8 | const al::LiveActor* playerActor, const PlayerJudgeDeadWipeStart* playerJudgeDeadWipeStart) |
| 9 | : mPlayerActor(playerActor), mPlayerJudgeDeadWipeStart(playerJudgeDeadWipeStart) {} |
| 10 | |
| 11 | bool PlayerJudgeDrawForward::judge() const { |
| 12 | if (!GameDataFunction::isPlayerLifeZero(accessor: mPlayerActor)) |
| 13 | return false; |
| 14 | return mPlayerJudgeDeadWipeStart->isDeadTypeDrawForward(); |
| 15 | } |
| 16 |