22 #ifndef TWINE_SCENE_ANIMATIONS_H 23 #define TWINE_SCENE_ANIMATIONS_H 25 #include "common/scummsys.h" 26 #include "twine/parser/anim.h" 30 struct AnimTimerDataStruct;
37 int16 patchInterAngle(int32 deltaTime, int32 keyFrameLength, int16 newAngle1, int16 lastAngle1)
const;
38 int16 patchInterStep(int32 deltaTime, int32 keyFrameLength, int16 newPos, int16 lastPos)
const;
48 void copyKeyFrameToState(
const KeyFrame *keyframe,
BodyData &bodyData, int32 numBones)
const;
49 void copyStateToKeyFrame(
KeyFrame *keyframe,
const BodyData &bodyData)
const;
53 int _animKeyframeBufIdx = 0;
57 int16 _animMasterRot = 0;
59 int16 _animStepBeta = 0;
60 int16 _animStepAlpha = 0;
61 int16 _animStepGamma = 0;
89 return doSetInterAnimObjet(keyframeIdx, animData, bodyData, animTimerDataPtr,
true);
93 return doSetInterAnimObjet(keyframeIdx, animData, bodyData, animTimerDataPtr,
false);
101 int32
searchAnim(AnimationTypes animIdx, int32 actorIdx = OWN_ACTOR_SCENE_INDEX);
117 bool initAnim(AnimationTypes newAnim, AnimType animType, AnimationTypes animExtra, int32 actorIdx);
129 void doAnim(int32 actorIdx);
void stockInterAnim(const BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
void processAnimActions(int32 actorIdx)
bool initAnim(AnimationTypes newAnim, AnimType animType, AnimationTypes animExtra, int32 actorIdx)
void setAnimObjet(int32 keyframeIdx, const AnimData &animData, BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
Definition: animations.h:34
AnimationTypes _currentActorAnimExtraPtr
Definition: animations.h:70
Definition: achievements_tables.h:27
bool setInterAnimObjet(int32 keyframeIdx, const AnimData &animData, BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
Definition: animations.h:88
void doAnim(int32 actorIdx)
int32 searchAnim(AnimationTypes animIdx, int32 actorIdx=OWN_ACTOR_SCENE_INDEX)