ScummVM API documentation
TwinE::Animations Class Reference

Public Member Functions

 Animations (TwinEEngine *engine)
 
void setAnimObjet (int32 keyframeIdx, const AnimData &animData, BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
 
bool setInterAnimObjet (int32 keyframeIdx, const AnimData &animData, BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
 
bool setInterAnimObjet2 (int32 keyframeIdx, const AnimData &animData, BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
 
int32 searchAnim (AnimationTypes animIdx, int32 actorIdx=OWN_ACTOR_SCENE_INDEX)
 
void stockInterAnim (const BodyData &bodyData, AnimTimerDataStruct *animTimerDataPtr)
 
bool initAnim (AnimationTypes newAnim, AnimType animType, AnimationTypes animExtra, int32 actorIdx)
 
void processAnimActions (int32 actorIdx)
 
void doAnim (int32 actorIdx)
 

Public Attributes

AnimationTypes _currentActorAnimExtraPtr = AnimationTypes::kAnimNone
 

Member Function Documentation

◆ setAnimObjet()

void TwinE::Animations::setAnimObjet ( int32  keyframeIdx,
const AnimData animData,
BodyData bodyData,
AnimTimerDataStruct animTimerDataPtr 
)

Set animation keyframe

Parameters
keyframIdxAnimation keyframe index
animDataAnimation data
bodyDataBody model data
animTimerDataPtrAnimation time data

◆ setInterAnimObjet()

bool TwinE::Animations::setInterAnimObjet ( int32  keyframeIdx,
const AnimData animData,
BodyData bodyData,
AnimTimerDataStruct animTimerDataPtr 
)
inline

Set new body animation

Parameters
keyframeIdxAnimation key frame index
animDataAnimation data
bodyDataBody model data
animTimerDataPtrAnimation time data

◆ searchAnim()

int32 TwinE::Animations::searchAnim ( AnimationTypes  animIdx,
int32  actorIdx = OWN_ACTOR_SCENE_INDEX 
)

Get entity anim index (This is taken from File3D entities)

Parameters
animIdxEntity animation index
actorIdxActor index

◆ stockInterAnim()

void TwinE::Animations::stockInterAnim ( const BodyData bodyData,
AnimTimerDataStruct animTimerDataPtr 
)

Stock animation - copy the next keyFrame from a different buffer

Parameters
bodyDataBody model data
animTimerDataPtrAnimation time data

◆ initAnim()

bool TwinE::Animations::initAnim ( AnimationTypes  newAnim,
AnimType  animType,
AnimationTypes  animExtra,
int32  actorIdx 
)

Initialize animation

Parameters
newAnimanimation to init
animTypeanimation type
animExtraanimation actions extra data
actorIdxactor index

◆ processAnimActions()

void TwinE::Animations::processAnimActions ( int32  actorIdx)

Process acotr animation actions

Parameters
actorIdxActor index

◆ doAnim()

void TwinE::Animations::doAnim ( int32  actorIdx)

Process main loop actor animations

Parameters
actorIdxActor index

Member Data Documentation

◆ _currentActorAnimExtraPtr

AnimationTypes TwinE::Animations::_currentActorAnimExtraPtr = AnimationTypes::kAnimNone

Current actor anim extra pointer


The documentation for this class was generated from the following file: