Otclient  14/8/2020
Animator Class Reference

#include <animator.h>

Inheritance diagram for Animator:
Collaboration diagram for Animator:

Public Member Functions

 Animator ()
 
void unserialize (int animationPhases, const FileStreamPtr &fin)
 
void serialize (const FileStreamPtr &fin)
 
void setPhase (int phase)
 
int getPhase ()
 
int getPhaseAt (ticks_t time)
 
int getStartPhase ()
 
int getAnimationPhases ()
 
bool isAsync ()
 
bool isComplete ()
 
ticks_t getTotalDuration ()
 
void resetAnimation ()
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Detailed Description

Definition at line 43 of file animator.h.

Constructor & Destructor Documentation

◆ Animator()

Animator::Animator ( )

Definition at line 29 of file animator.cpp.

Member Function Documentation

◆ getAnimationPhases()

int Animator::getAnimationPhases ( )
inline

Definition at line 56 of file animator.h.

◆ getPhase()

int Animator::getPhase ( )

Definition at line 96 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPhaseAt()

int Animator::getPhaseAt ( ticks_t  time)

Definition at line 126 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStartPhase()

int Animator::getStartPhase ( )

Definition at line 144 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTotalDuration()

ticks_t Animator::getTotalDuration ( )

Definition at line 219 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAsync()

bool Animator::isAsync ( )
inline

Definition at line 57 of file animator.h.

◆ isComplete()

bool Animator::isComplete ( )
inline

Definition at line 58 of file animator.h.

◆ resetAnimation()

void Animator::resetAnimation ( )

Definition at line 151 of file animator.cpp.

Here is the call graph for this function:

◆ serialize()

void Animator::serialize ( const FileStreamPtr fin)

Definition at line 62 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPhase()

void Animator::setPhase ( int  phase)

Definition at line 74 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unserialize()

void Animator::unserialize ( int  animationPhases,
const FileStreamPtr fin 
)

Definition at line 43 of file animator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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