|
|
bool | init (GAFAsset *anAnimationData) |
| |
|
virtual void | processAnimation () |
| |
|
virtual void | start () |
| |
|
virtual void | pause () |
| |
|
virtual void | resume () |
| |
|
virtual void | stop () |
| |
|
virtual void | step () |
| |
| bool | isDone () const |
| |
|
bool | isAnimationRunning () const |
| |
|
bool | isLooped () const |
| |
|
void | setLooped (bool looped) |
| |
|
int | totalFrameCount () const |
| |
|
int | currentFrameIndex () const |
| |
|
bool | setFrame (int index) |
| |
|
bool | gotoAndStop (const char *frameLabel) |
| | Plays specified frame and then stops.
|
| |
|
bool | gotoAndStop (int frameNumber) |
| |
|
bool | gotoAndPlay (const char *frameLabel) |
| | Plays animation from specified frame.
|
| |
|
bool | gotoAndPlay (int frameNumber) |
| |
|
int | getStartFrame (const char *frameLabel) |
| |
|
int | getEndFrame (const char *frameLabel) |
| |
| bool | playSequence (const char *name, bool looped=false, bool resume=true, AnimSetSequenceHint hint=ASSH_RESTART) |
| |
|
void | clearSequence () |
| |
| void | setSequenceDelegate (GAFSequenceDelegate *delegate) |
| |
|
bool | hasSequences () const |
| |
|
|
GAFAsset * | _asset |
| |
|
int | _currentFrameIndex |
| |
| bool GAFAnimation::isDone |
( |
| ) |
const |
- Returns
- true if the animation is finished, otherwise NO
| bool GAFAnimation::playSequence |
( |
const char * |
name, |
|
|
bool |
looped = false, |
|
|
bool |
resume = true, |
|
|
AnimSetSequenceHint |
hint = ASSH_RESTART |
|
) |
| |
Plays animation sequence with specified name
- Parameters
-
| name | a sequence name |
| looped | if true - sequence should play in cycle |
| resume | if true - animation will be played immediately, if false - playback will be paused after the first frame is shown |
| hint | specific animation playback parameters |
- Note
- do not forget to call setSequenceDelegate(NULL) before deleting your subscriber
The documentation for this class was generated from the following files: