ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Grim::Animation Class Reference

#include <animation.h>

Collaboration diagram for Grim::Animation:

List of all members.

Public Types

enum  RepeatMode { Once = 0, Looping = 1, PauseAtEnd = 2, FadeAtEnd = 3 }
enum  FadeMode { None = 0, FadeIn = 1, FadeOut = 2 }

Public Member Functions

 Animation (const Common::String &keyframe, AnimManager *manager, int pr1, int pr2)
 ~Animation ()
void activate ()
void deactivate ()
void play (RepeatMode repeatMode)
void fade (FadeMode fadeMode, int fadeLength)
void pause (bool pause)
void stop ()
bool getIsActive () const
FadeMode getFadeMode () const
int update (uint time)
void saveState (SaveGame *state) const
void restoreState (SaveGame *state)

Private Attributes

ObjectPtr< KeyframeAnim_keyframe
int _priority1
int _priority2
bool _paused
bool _active
int _time
float _fade
RepeatMode _repeatMode
FadeMode _fadeMode
int _fadeLength


class AnimManager

Detailed Description

Definition at line 33 of file animation.h.

Member Enumeration Documentation


Definition at line 41 of file animation.h.


Definition at line 35 of file animation.h.

Constructor & Destructor Documentation

Grim::Animation::Animation ( const Common::String keyframe,
AnimManager manager,
int  pr1,
int  pr2 

Definition at line 33 of file animation.cpp.

Grim::Animation::~Animation (  ) 

Definition at line 39 of file animation.cpp.

Member Function Documentation

void Grim::Animation::activate (  ) 

Definition at line 43 of file animation.cpp.

void Grim::Animation::deactivate (  ) 

Definition at line 50 of file animation.cpp.

void Grim::Animation::fade ( FadeMode  fadeMode,
int  fadeLength 

Definition at line 70 of file animation.cpp.

Animation::FadeMode Grim::Animation::getFadeMode (  )  const

Definition at line 99 of file animation.cpp.

bool Grim::Animation::getIsActive (  )  const

Definition at line 95 of file animation.cpp.

void Grim::Animation::pause ( bool  pause  ) 

Definition at line 83 of file animation.cpp.

void Grim::Animation::play ( RepeatMode  repeatMode  ) 

Definition at line 57 of file animation.cpp.

void Grim::Animation::restoreState ( SaveGame state  ) 

Definition at line 180 of file animation.cpp.

void Grim::Animation::saveState ( SaveGame state  )  const

Definition at line 170 of file animation.cpp.

void Grim::Animation::stop (  ) 

Definition at line 87 of file animation.cpp.

int Grim::Animation::update ( uint  time  ) 

Definition at line 104 of file animation.cpp.

Friends And Related Function Documentation

friend class AnimManager [friend]

Definition at line 76 of file animation.h.

Member Data Documentation

bool Grim::Animation::_active [private]

Definition at line 69 of file animation.h.

float Grim::Animation::_fade [private]

Definition at line 71 of file animation.h.

Definition at line 74 of file animation.h.

Definition at line 73 of file animation.h.

Definition at line 65 of file animation.h.

Definition at line 64 of file animation.h.

bool Grim::Animation::_paused [private]

Definition at line 68 of file animation.h.

Definition at line 66 of file animation.h.

Definition at line 67 of file animation.h.

Definition at line 72 of file animation.h.

int Grim::Animation::_time [private]

Definition at line 70 of file animation.h.

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

Generated on Sat Aug 1 2020 05:03:44 for ResidualVM by doxygen 1.7.1
curved edge   curved edge