| 1 | #include "Player/PlayerJudgeStartGroundSpin.h" |
|---|---|
| 2 | |
| 3 | #include "Player/PlayerInput.h" |
| 4 | #include "Util/PlayerCollisionUtil.h" |
| 5 | |
| 6 | PlayerJudgeStartGroundSpin::PlayerJudgeStartGroundSpin(const al::LiveActor* player, |
| 7 | const IUsePlayerCollision* collider, |
| 8 | const PlayerInput* input) |
| 9 | : mPlayer(player), mCollider(collider), mInput(input) {} |
| 10 | |
| 11 | bool PlayerJudgeStartGroundSpin::judge() const { |
| 12 | return mInput->isSpinInput() && rs::isOnGround(mPlayer, mCollider); |
| 13 | } |
| 14 |