ScummVM API documentation
Hollywood::RandomIdleAnimation Struct Reference

Public Types

enum  Event { kNoEvent , kShortStarted , kLongStarted , kLongFinished }
 

Public Member Functions

void configure (uint32 frameMillis, byte idle, byte shortStart, byte longStart, byte longEnd, byte shortRandom, byte longRandom)
 
void reset ()
 
void setStateAndFrame (byte newState, byte newFrame)
 
void setFrame (byte newFrame)
 
Event advanceTick (Common::RandomSource &random, bool canStartSequence=true)
 
void advance (Common::RandomSource &random, uint32 delta, bool canStartSequence=true)
 

Public Attributes

TimedAnimationChannel channel
 
byte state
 
byte idleFrame
 
byte shortFrame
 
byte longFirstFrame
 
byte longLastFrame
 
byte shortRandomMax
 
byte longRandomMax
 
bool returnToIdleAfterLongSequence
 

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