ScummVM API documentation
Toon::AnimationInstance Class Reference

Public Member Functions

 AnimationInstance (ToonEngine *vm, AnimationInstanceType type)
 
void update (int32 timeIncrement)
 
void render ()
 
void renderOnPicture ()
 
void setAnimation (Animation *animation, bool setRange=true)
 
void playAnimation ()
 
void setAnimationRange (int32 rangeStart, int32 rangeEnd)
 
void setFps (int32 fps)
 
void setLooping (bool enable)
 
void stopAnimation ()
 
void setFrame (int32 position)
 
void forceFrame (int32 position)
 
void setPosition (int16 x, int16 y, int32 z, bool relative=false)
 
AnimationgetAnimation () const
 
void setScale (int32 scale, bool align=false)
 
void setVisible (bool visible)
 
bool getVisible () const
 
void setUseMask (bool useMask)
 
void moveRelative (int16 dx, int16 dy, int32 dz)
 
void getRect (int16 *x1, int16 *y1, int16 *x2, int16 *y2) const
 
int16 getX () const
 
int16 getY () const
 
int32 getZ () const
 
int16 getX2 () const
 
int16 getY2 () const
 
int32 getZ2 () const
 
int32 getFrame () const
 
void reset ()
 
void save (Common::WriteStream *stream)
 
void load (Common::ReadStream *stream)
 
void setId (int32 id)
 
int32 getId () const
 
void setX (int16 x, bool relative=false)
 
void setY (int16 y, bool relative=false)
 
void setZ (int32 z, bool relative=false)
 
void setLayerZ (int32 layer)
 
int32 getLayerZ () const
 
AnimationInstanceType getType () const
 

Protected Attributes

int32 _currentFrame
 
int32 _currentTime
 
int32 _fps
 
Animation_animation
 
int16 _x
 
int16 _y
 
int32 _z
 
int32 _layerZ
 
int32 _rangeStart
 
int32 _rangeEnd
 
int32 _scale
 
int32 _id
 
AnimationInstanceType _type
 
bool _useMask
 
bool _playing
 
bool _looping
 
bool _visible
 
bool _alignBottom
 
ToonEngine_vm
 

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