Base class that allows you to create non-linear sequences to create gameplay and cinematic cutscenes. Using sequences you can construct with ease dynamic complex animation sequences that can be triggered at any time at runtime.
Whether it is a cut-scene that have to be triggered when opening a treasure chest; or if its cinematic that elaborate the plot or storylines, sequences will help you to make your app more epic.
Name | Description |
AddStripFolder | Append a new StripFolder to the active Sequence. |
Declaration StripFolder *AddStripFolder( const char *name ) Parameters
Return Value
A new StripFolder reference; nil if too many folders are currently held by the active Sequence.
|
GetStripFolder | Retrieve an existing StripFolder using its name as key. |
Declaration StripFolder *GetStripFolder( const char *name ) Parameters
Return Value
Upon success the reference to the StripFolder matching the name received in parameter; else return nil .
|
GetStripFolderAt | Retrieve an existing StripFolder associated to the active Sequence by index. |
Declaration StripFolder *GetStripFolderAt( unsigned char index ) Parameters
Return Value
nil if the index provided is invalid; else return the reference of the StripFolder poindex by index.
|
GetStripFolderIndex | Return the internal index of a specific StripFolder maintained by the active Sequence. |
Declaration int GetStripFolderIndex( const StripFolder *folder ) Parameters
Return Value
-1 if the StripFolder reference provided is invalid; else return the internal index of the folder.
|
SetStripFolderIndex | Manually change the current position of a StripFolder. |
Declaration bool SetStripFolderIndex( StripFolder *folder, const unsigned char index ) Parameters
Return Value
true if the folder have been repositionned successfully; else return false if either the index or the folder provided to the function is invalid.
|
RemoveStripFolder | Remove a specific StripFolder from the active Sequence. |
Declaration bool RemoveStripFolder( StripFolder *folder ) Parameters
Return Value
true if the StripFolder have been removed; false if the folder reference provided is invalid.
|
RemoveStripFolderAt | Helper to remove an existing StripFolder associated to the current Sequence using its index. |
Declaration bool RemoveStripFolderAt( int index ) Parameters
Return Value
true if the StripFolder was removed successfully; false if the index provided is out of bounds (see stripfolder_count ).
|
SwapStripFolders | Swap the position of two StripFolder. |
Declaration bool SwapStripFolders( unsigned char index0, unsigned char index1 ) Parameters
index0 : Index of the source StripFolder.
index1 : Index of its new destination.
Return Value
true if both indexes are valid and the operation was executed; else return false if one or both indexes provides were out of bounds.
|
Play | Start the Sequence playback. |
Declaration Return Value
true if the Sequence starts/resume playing; false if it was already playing.
|
Pause | Pause the current Sequence playback. |
Declaration Return Value
true the active Sequence pause sucessfully; else return false if it was already on standby.
|
Stop | Stop the active Sequence and reset its playback time. |
Declaration Return Value
true if the Sequence stop successfully; false if it was already in its initial state.
|
Seek | Manually set the playback time of the active Sequence. |
Declaration void Seek( float playback_time )
|
GetDuration | Helper that returns the total duration of the current Sequence. |
Declaration float GetDuration( void ) Return Value
The total duration of the Sequence where 1.0=1sec .
|
Update | Manually force a Sequence frame update. |
Declaration
|