ScummVM API documentation
hpl::cAnimationState Class Reference
Inheritance diagram for hpl::cAnimationState:
hpl::iSaveObject

Public Member Functions

 cAnimationState (cAnimation *apAnimation, const tString &asName, cAnimationManager *apAnimationManager)
 
const char * GetName ()
 
void Update (float afTimeStep)
 
bool IsFading ()
 
bool IsOver ()
 
void FadeIn (float afTime)
 
void FadeOut (float afTime)
 
void SetLength (float afLength)
 
float GetLength ()
 
void SetWeight (float afWeight)
 
float GetWeight ()
 
void SetSpeed (float afSpeed)
 
float GetSpeed ()
 
void SetBaseSpeed (float afSpeed)
 
float GetBaseSpeed ()
 
void SetTimePosition (float afPosition)
 
float GetTimePosition ()
 
float GetPreviousTimePosition ()
 
void SetRelativeTimePosition (float afPosition)
 
float GetRelativeTimePosition ()
 
bool IsActive ()
 
void SetActive (bool abActive)
 
bool IsLooping ()
 
void SetLoop (bool abLoop)
 
bool IsPaused ()
 
void SetPaused (bool abPaused)
 
void SetSpecialEventTime (float afT)
 
float GetSpecialEventTime ()
 
bool IsAfterSpecialEvent ()
 
bool IsBeforeSpecialEvent ()
 
void AddTimePosition (float afAdd)
 
cAnimationGetAnimation ()
 
cAnimationEventCreateEvent ()
 
cAnimationEventGetEvent (int alIdx)
 
int GetEventNum ()
 
float GetFadeStep ()
 
void SetFadeStep (float afX)
 
virtual iSaveDataCreateSaveData ()
 
virtual void SaveToSaveData (iSaveData *apSaveData)
 
virtual void LoadFromSaveData (iSaveData *apSaveData)
 
virtual void SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
 
- Public Member Functions inherited from hpl::iSaveObject
int GetSaveObjectId ()
 
void SetIsSaved (bool abX)
 
bool IsSaved ()
 

Additional Inherited Members

- Protected Attributes inherited from hpl::iSaveObject
iSaveDatampSaveData
 

Member Function Documentation

◆ IsOver()

bool hpl::cAnimationState::IsOver ( )

If the animation has reached the end.

◆ SetRelativeTimePosition()

void hpl::cAnimationState::SetRelativeTimePosition ( float  afPosition)

Set the relative position. 0 = start, 1 = end

Parameters
afPosition

◆ GetRelativeTimePosition()

float hpl::cAnimationState::GetRelativeTimePosition ( )

Get the relative position. 0 = start, 1 = end

◆ CreateSaveData()

virtual iSaveData* hpl::cAnimationState::CreateSaveData ( )
virtual

Creates the SaveData that this class uses.

Implements hpl::iSaveObject.

◆ SaveToSaveData()

virtual void hpl::cAnimationState::SaveToSaveData ( iSaveData apSaveData)
virtual

Save it's data to a SaveData

Reimplemented from hpl::iSaveObject.

◆ LoadFromSaveData()

virtual void hpl::cAnimationState::LoadFromSaveData ( iSaveData apSaveData)
virtual

Load it's data from a SaveData

Reimplemented from hpl::iSaveObject.

◆ SaveDataSetup()

virtual void hpl::cAnimationState::SaveDataSetup ( cSaveObjectHandler apSaveObjectHandler,
cGame apGame 
)
virtual

After all objects have been created, this function is called to enable setup.

Reimplemented from hpl::iSaveObject.


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