| 1 | #include "Player/PlayerJudgeEnableStandUp.h" |
|---|---|
| 2 | |
| 3 | #include "Player/IUsePlayerCeilingCheck.h" |
| 4 | #include "Util/PlayerCollisionUtil.h" |
| 5 | |
| 6 | PlayerJudgeEnableStandUp::PlayerJudgeEnableStandUp(const IUsePlayerCollision* collider, |
| 7 | const IUsePlayerCeilingCheck* ceilingChecker) |
| 8 | : mCollider(collider), mCeilingChecker(ceilingChecker) {} |
| 9 | |
| 10 | bool PlayerJudgeEnableStandUp::judge() const { |
| 11 | return mCeilingChecker->isEnableStandUp() || !rs::isCollidedGround(mCollider); |
| 12 | } |
| 13 |