ScummVM API documentation
MADS::Animation Class Reference

Public Member Functions

void load (MSurface &backSurface, DepthSurface &depthSurface, const Common::Path &resName, int flags, Common::Array< PaletteCycle > *palCycles, SceneInfo *sceneInfo)
 
void preLoad (const Common::Path &resName, int level)
 
void startAnimation (int endTrigger)
 
void update ()
 
void eraseSprites ()
 
void setNextFrameTimer (uint32 newTimer)
 
uint32 getNextFrameTimer () const
 
void setCurrentFrame (int frameNumber)
 
int getCurrentFrame () const
 
bool freeFlag () const
 
int roomNumber () const
 
void resetSpriteSetsCount ()
 
SpriteAssetgetSpriteSet (int idx)
 
Common::Point getFramePosAdjust (int idx)
 

Static Public Member Functions

static Animationinit (MADSEngine *vm, Scene *scene)
 

Public Attributes

AAHeader _header
 
Common::Array< int > _spriteListIndexes
 
Common::Array< AnimFrameEntry_frameEntries
 
Common::Array< AnimUIEntry_uiEntries
 
Common::Array< AnimMessage_messages
 
bool _resetFlag
 
bool _canChangeView
 
int _currentFrame
 
int _oldFrameEntry
 
int _dynamicHotspotIndex
 

Protected Member Functions

 Animation (MADSEngine *vm, Scene *scene)
 

Member Function Documentation

◆ load()

void MADS::Animation::load ( MSurface backSurface,
DepthSurface depthSurface,
const Common::Path resName,
int  flags,
Common::Array< PaletteCycle > *  palCycles,
SceneInfo sceneInfo 
)

Loads animation data

◆ preLoad()

void MADS::Animation::preLoad ( const Common::Path resName,
int  level 
)

Preload animation data for the scene

◆ startAnimation()

void MADS::Animation::startAnimation ( int  endTrigger)

Setups up a loaded animation for playback

◆ update()

void MADS::Animation::update ( )

Update the animation

◆ eraseSprites()

void MADS::Animation::eraseSprites ( )

Erases any sprites from the previous animation frame


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