| 1 | #pragma once |
| 2 | |
| 3 | #include <math/seadQuat.h> |
| 4 | |
| 5 | namespace al { |
| 6 | struct ActorInitInfo; |
| 7 | class KeyPoseKeeper; |
| 8 | class LiveActor; |
| 9 | class PlacementInfo; |
| 10 | |
| 11 | KeyPoseKeeper* createKeyPoseKeeper(const ActorInitInfo& info); |
| 12 | KeyPoseKeeper* createKeyPoseKeeper(const PlacementInfo& info); |
| 13 | void resetKeyPose(KeyPoseKeeper* keyPoseKeeper); |
| 14 | void nextKeyPose(KeyPoseKeeper* keyPoseKeeper); |
| 15 | void restartKeyPose(KeyPoseKeeper* keyPoseKeeper, sead::Vector3f* pos, sead::Quatf* orientation); |
| 16 | void reverseKeyPose(KeyPoseKeeper* keyPoseKeeper); |
| 17 | const sead::Vector3f& getCurrentKeyTrans(const KeyPoseKeeper* keyPoseKeeper); |
| 18 | const sead::Vector3f& getNextKeyTrans(const KeyPoseKeeper* keyPoseKeeper); |
| 19 | const sead::Quatf& getCurrentKeyQuat(const KeyPoseKeeper* keyPoseKeeper); |
| 20 | const sead::Quatf& getNextKeyQuat(const KeyPoseKeeper* keyPoseKeeper); |
| 21 | const PlacementInfo& getCurrentKeyPlacementInfo(const KeyPoseKeeper* keyPoseKeeper); |
| 22 | const PlacementInfo& getNextKeyPlacementInfo(const KeyPoseKeeper* keyPoseKeeper); |
| 23 | s32 getKeyPoseCount(const KeyPoseKeeper* keyPoseKeeper); |
| 24 | void getKeyPoseTrans(sead::Vector3f* out, const KeyPoseKeeper* keyPoseKeeper, s32 idx); |
| 25 | void getKeyPoseQuat(sead::Quatf* out, const KeyPoseKeeper* keyPoseKeeper, s32 idx); |
| 26 | void calcLerpKeyTrans(sead::Vector3f* out, const KeyPoseKeeper* keyPoseKeeper, f32 rate); |
| 27 | void calcSlerpKeyQuat(sead::Quatf* out, const KeyPoseKeeper* keyPoseKeeper, f32 rate); |
| 28 | bool isMoveSignKey(const KeyPoseKeeper* keyPoseKeeper); |
| 29 | bool isLastKey(const KeyPoseKeeper* keyPoseKeeper); |
| 30 | bool isFirstKey(const KeyPoseKeeper* keyPoseKeeper); |
| 31 | bool isGoingToEnd(const KeyPoseKeeper* keyPoseKeeper); |
| 32 | bool isStop(const KeyPoseKeeper* keyPoseKeeper); |
| 33 | bool isRestart(const KeyPoseKeeper* keyPoseKeeper); |
| 34 | f32 calcDistanceNextKeyTrans(const KeyPoseKeeper* keyPoseKeeper); |
| 35 | s32 calcTimeToNextKeyMove(const KeyPoseKeeper* keyPoseKeeper, f32 speed); |
| 36 | void calcDirToNextKey(sead::Vector3f* out, const KeyPoseKeeper* keyPoseKeeper); |
| 37 | f32 calcKeyMoveSpeed(const KeyPoseKeeper* keyPoseKeeper); |
| 38 | f32 calcKeyMoveSpeedByTime(const KeyPoseKeeper* keyPoseKeeper); |
| 39 | s32 calcKeyMoveWaitTime(const KeyPoseKeeper* keyPoseKeeper); |
| 40 | s32 calcKeyMoveMoveTime(const KeyPoseKeeper* keyPoseKeeper); |
| 41 | void calcKeyMoveClippingInfo(sead::Vector3f*, f32*, const KeyPoseKeeper*, f32); |
| 42 | void setKeyMoveClippingInfo(LiveActor*, sead::Vector3f*, const KeyPoseKeeper*); |
| 43 | } // namespace al |
| 44 | |