| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <math/seadVector.h> |
| 4 | |
| 5 | class PlayerConst; |
| 6 | |
| 7 | class PlayerContinuousJump { |
| 8 | public: |
| 9 | PlayerContinuousJump(const PlayerConst* pConst); |
| 10 | void update(bool shouldCountDown); |
| 11 | void clear(); |
| 12 | void countUp(const sead::Vector3f& jumpDir); |
| 13 | |
| 14 | private: |
| 15 | const PlayerConst* mConst; |
| 16 | u32 mCount = 0; |
| 17 | u32 mTimer = 0; |
| 18 | sead::Vector3f mLastJumpDir = {0.0f, 0.0f, 0.0f}; |
| 19 | }; |
| 20 |