#include <CCActionObject.h>
Public Member Functions | |
ActionObject () | |
virtual | ~ActionObject () |
Default destructor. More... | |
void | setName (const char *name) |
Sets name for object. More... | |
const char * | getName () |
Sets name for object. More... | |
void | setLoop (bool bLoop) |
Sets if the action will loop play. More... | |
bool | getLoop () |
Gets if the action will loop play. More... | |
void | setUnitTime (float fTime) |
Sets the time interval of frame. More... | |
float | getUnitTime () |
Gets the time interval of frame. More... | |
void | setCurrentTime (float fTime) |
Sets the current time of frame. More... | |
float | getCurrentTime () |
Gets the current time of frame. More... | |
float | getTotalTime () |
Gets the total time of frame. More... | |
bool | isPlaying () |
Return if the action is playing. More... | |
void | play () |
Play the action. More... | |
void | play (CCCallFunc *func) |
Play the action. More... | |
void | pause () |
Pause the action. More... | |
void | stop () |
Stop the action. More... | |
void | addActionNode (ActionNode *node) |
Adds a ActionNode to play the action. More... | |
void | removeActionNode (ActionNode *node) |
Removes a ActionNode which play the action. More... | |
void | updateToFrameByTime (float fTime) |
void | initWithDictionary (const rapidjson::Value &dic, CCObject *root) |
void | initWithBinary (CocoLoader *pCocoLoader, stExpCocoNode *pCocoNode, CCObject *root) |
void | simulationActionUpdate (float dt) |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Protected Member Functions | |
int | valueToInt (std::string &value) |
bool | valueToBool (std::string &value) |
float | valueToFloat (std::string &value) |
Protected Attributes | |
CCArray * | m_ActionNodeList |
std::string | m_name |
bool | m_loop |
bool | m_bPause |
bool | m_bPlaying |
float | m_fUnitTime |
float | m_CurrentTime |
CCScheduler * | m_pScheduler |
CCCallFunc * | m_CallBack |
float | m_fTotalTime |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
ActionObject | ( | ) |
|
virtual |
Default destructor.
void addActionNode | ( | ActionNode * | node | ) |
Adds a ActionNode to play the action.
the ActionNode which will play the action
float getCurrentTime | ( | ) |
Gets the current time of frame.
bool getLoop | ( | ) |
Gets if the action will loop play.
const char* getName | ( | ) |
Sets name for object.
float getTotalTime | ( | ) |
Gets the total time of frame.
float getUnitTime | ( | ) |
Gets the time interval of frame.
void initWithBinary | ( | CocoLoader * | pCocoLoader, |
stExpCocoNode * | pCocoNode, | ||
CCObject * | root | ||
) |
void initWithDictionary | ( | const rapidjson::Value & | dic, |
CCObject * | root | ||
) |
bool isPlaying | ( | ) |
Return if the action is playing.
void pause | ( | ) |
Pause the action.
void play | ( | ) |
Play the action.
void play | ( | CCCallFunc * | func | ) |
Play the action.
@ Action Call Back
void removeActionNode | ( | ActionNode * | node | ) |
Removes a ActionNode which play the action.
the ActionNode which play the action
void setCurrentTime | ( | float | fTime | ) |
Sets the current time of frame.
fTime | the current time of frame |
void setLoop | ( | bool | bLoop | ) |
Sets if the action will loop play.
bLoop | that if the action will loop play |
void setName | ( | const char * | name | ) |
Sets name for object.
name | name of object |
void setUnitTime | ( | float | fTime | ) |
Sets the time interval of frame.
fTime | the time interval of frame |
void simulationActionUpdate | ( | float | dt | ) |
void stop | ( | ) |
Stop the action.
void updateToFrameByTime | ( | float | fTime | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |