| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <math/seadVector.h> |
| 4 | |
| 5 | #include "Library/Nerve/NerveStateBase.h" |
| 6 | |
| 7 | class IJudge; |
| 8 | class IUsePlayerCollision; |
| 9 | class PlayerActionDiveInWater; |
| 10 | class PlayerAnimator; |
| 11 | class PlayerJudgePreInputJump; |
| 12 | class PlayerWallActionHistory; |
| 13 | class PlayerStateNormalWallSlide; |
| 14 | class PlayerStateNormalWallJump; |
| 15 | class PlayerConst; |
| 16 | class PlayerInput; |
| 17 | class PlayerTrigger; |
| 18 | |
| 19 | class PlayerStateWallAir : public al::ActorStateBase { |
| 20 | public: |
| 21 | PlayerStateWallAir(al::LiveActor* player, const PlayerConst* pConst, const PlayerInput* input, |
| 22 | const PlayerTrigger* trigger, IUsePlayerCollision* collision, |
| 23 | IJudge* judgeWallKeep, PlayerJudgePreInputJump* judgePreInputJump, |
| 24 | PlayerAnimator* animator, PlayerWallActionHistory* wallActionHistory, |
| 25 | PlayerActionDiveInWater* actionDiveInWater); |
| 26 | |
| 27 | void appear() override; |
| 28 | bool isAir() const; |
| 29 | bool isJustJump() const; |
| 30 | bool isEnableReactionCapCatch() const; |
| 31 | void startSlideSpinAttack(); |
| 32 | void calcSnapMoveCutDir(sead::Vector3f* cutDir) const; |
| 33 | void exeSlide(); |
| 34 | void exeJump(); |
| 35 | |
| 36 | private: |
| 37 | const PlayerConst* mConst; |
| 38 | PlayerStateNormalWallSlide* mStateNormalWallSlide = nullptr; |
| 39 | PlayerStateNormalWallJump* mStateNormalWallJump = nullptr; |
| 40 | IJudge* mJudgeWallKeep; |
| 41 | PlayerJudgePreInputJump* mJudgePreInputJump; |
| 42 | const IUsePlayerCollision* mCollision; |
| 43 | PlayerWallActionHistory* mWallActionHistory; |
| 44 | }; |
| 45 |