1#include "Player/PlayerJudgeStartSquat.h"
2
3#include "Player/PlayerCarryKeeper.h"
4#include "Player/PlayerCounterForceRun.h"
5#include "Player/PlayerInput.h"
6
7PlayerJudgeStartSquat::PlayerJudgeStartSquat(const PlayerInput* input,
8 const PlayerCounterForceRun* counterForceRun,
9 const PlayerCarryKeeper* carryKeeper)
10 : mInput(input), mCounterForceRun(counterForceRun), mCarryKeeper(carryKeeper) {}
11
12bool PlayerJudgeStartSquat::judge() const {
13 return !mCarryKeeper->isCarry() && mInput->isHoldSquat() && !mCounterForceRun->isForceRun();
14}
15