#include <animator.h>

Public Types | |
| enum | AnimationBegin { AB_DEFAULT, AB_BEGIN, AB_RANDOM } |
| enum | AnimatorState { AS_STOP, AS_PLAY, AS_PAUSE } |
Public Member Functions | |
| Animator (const char *id) | |
| virtual | ~Animator () |
| void | Play (AnimationBegin anim_begin=AB_DEFAULT) |
| void | Pause () |
| void | PlayPause () |
| void | Stop () |
| void | SetAnimation (const string &anim_file) |
| void | SetBuffer (void *buffer) |
| void | Update () |
| bool | LoadResources () |
| bool | IsResourcesValid () |
Protected Member Functions | |
| void | UnloadResources () |
Private Attributes | |
| string | anim_file |
| AnimatorState | state |
| double | start_time |
| double | pause_time |
| double | play_time |
| double | anim_time |
| Ref< Animation > | animation |
| void * | buffer |
| bool | resources_valid |
| bool | zig |
| Animator::Animator | ( | const char * | id | ) |
Constructor.
| Animator::~Animator | ( | ) | [virtual] |
Destructor.
| void Animator::Play | ( | AnimationBegin | anim_begin = AB_DEFAULT |
) |
| void Animator::Pause | ( | ) |
| void Animator::PlayPause | ( | ) |
| void Animator::Stop | ( | ) |
| void Animator::SetAnimation | ( | const string & | anim_file | ) | [inline] |
| void Animator::SetBuffer | ( | void * | buffer | ) | [inline] |
| void Animator::Update | ( | ) |
| bool Animator::LoadResources | ( | ) |
| bool Animator::IsResourcesValid | ( | ) |
| void Animator::UnloadResources | ( | ) | [protected] |
string Animator::anim_file [private] |
AnimatorState Animator::state [private] |
double Animator::start_time [private] |
double Animator::pause_time [private] |
double Animator::play_time [private] |
double Animator::anim_time [private] |
Ref<Animation> Animator::animation [private] |
void* Animator::buffer [private] |
bool Animator::resources_valid [private] |
bool Animator::zig [private] |
1.5.3