Base class for CCAction objects. More...
#include <CCAction.h>
Public Member Functions | |
CCAction (void) | |
ctor () | |
CCAction () | |
virtual | ~CCAction (void) |
const char * | description () |
virtual CCObject * | copyWithZone (CCZone *pZone) |
virtual bool | isDone (void) |
return true if the action has finished More... | |
var | isDone () |
return true if the action has finished More... | |
local | isDone () |
return true if the action has finished More... | |
virtual void | startWithTarget (CCNode *pTarget) |
called before the action start. It will also set the target. More... | |
var | startWithTarget ( var pTarget) |
called before the action start. It will also set the target. More... | |
local | startWithTarget ( local pTarget) |
called before the action start. It will also set the target. More... | |
virtual void | stop (void) |
called after the action has finished. More... | |
var | stop () |
called after the action has finished. More... | |
local | stop () |
called after the action has finished. More... | |
virtual void | step (float dt) |
called every frame with it's delta time. DON'T override unless you know what you are doing. More... | |
virtual void | update (float time) |
called once per frame. More... | |
local | update ( local time) |
called once per frame. More... | |
CCNode * | getTarget (void) |
void | setTarget (CCNode *pTarget) |
The action will modify the target properties. More... | |
var | setTarget ( var pTarget) |
The action will modify the target properties. More... | |
local | setTarget ( local pTarget) |
The action will modify the target properties. More... | |
CCNode * | getOriginalTarget (void) |
local | getOriginalTarget () |
void | setOriginalTarget (CCNode *pOriginalTarget) |
Set the original target, since target can be nil. More... | |
int | getTag (void) |
var | getTag () |
local | getTag () |
void | setTag (int nTag) |
var | setTag ( var nTag) |
local | setTag ( local nTag) |
![]() | |
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) |
Static Public Member Functions | |
static CCAction * | create () |
Create an action. More... | |
var | create () |
Create an action. More... | |
local | create () |
Create an action. More... | |
Protected Attributes | |
CCNode * | m_pOriginalTarget |
CCNode * | m_pTarget |
The "target". More... | |
var | m_pTarget |
The "target". More... | |
local | m_pTarget |
The "target". More... | |
int | m_nTag |
The action tag. More... | |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
Base class for CCAction objects.
CCAction | ( | void | ) |
var ctor | ( | ) |
local CCAction | ( | ) |
|
virtual |
Reimplemented from CCCopying.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCDelayTime, CCTintBy, CCTintTo, CCFadeTo, CCFadeOut, CCFadeIn, CCBlink, CCScaleBy, CCScaleTo, CCBezierTo, CCBezierBy, CCEaseBackInOut, CCEaseBackOut, CCJumpTo, CCEaseBackIn, CCJumpBy, CCCallFuncO, CCEaseBounceInOut, CCEaseBounceOut, CCSkewTo, CCCallFuncND, CCEaseBounceIn, CCMoveTo, CCCallFuncN, CCEaseBounce, CCMoveBy, CCEaseElasticInOut, CCRotateBy, CCEaseElasticOut, CCRotateTo, CCEaseElasticIn, CCCallFunc, CCEaseElastic, CCSplitCols, CCSplitRows, CCEaseSineInOut, CCSpawn, CCPlace, CCTwirl, CCEaseSineOut, CCJumpTiles3D, CCFollow, CCFlipY, CCEaseSineIn, CCWaves, CCRepeatForever, CCWavesTiles3D, CCBRotateYTo, CCEaseExponentialInOut, CCBRotateXTo, CCFlipX, CCLiquid, CCEaseExponentialOut, CCTurnOffTiles, CCBRotateTo, CCSpeed, CCEaseExponentialIn, CCShaky3D, CCBSoundEffect, CCRepeat, CCRemoveSelf, CCEaseInOut, CCBSetSpriteFrame, CCRipple3D, CCToggleVisibility, CCCardinalSplineTo, CCEaseOut, CCHide, CCEaseIn, CCOrbitCamera, CCLens3D, CCSequence, CCShuffleTiles, CCEaseRateAction, CCFlipY3D, CCShow, CCFlipX3D, CCActionInterval, CCProgressFromTo, CCShatteredTiles3D, CCActionInstant, CCActionEase, CCWaves3D, CCProgressTo, CCGridAction, and CCShakyTiles3D.
|
static |
Create an action.
|
static |
Create an action.
|
static |
Create an action.
const char* description | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
return true if the action has finished
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCRepeat, CCActionInterval, and CCActionInstant.
|
virtual |
return true if the action has finished
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCRepeat, CCActionInterval, and CCActionInstant.
|
virtual |
return true if the action has finished
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCRepeat, CCActionInterval, and CCActionInstant.
|
inline |
Set the original target, since target can be nil.
Is the target that were used to run the action. Unless you are doing something complex, like CCActionManager, you should NOT call this method. The target is 'assigned', it is not 'retained'.
|
inline |
Set the original target, since target can be nil.
Is the target that were used to run the action. Unless you are doing something complex, like CCActionManager, you should NOT call this method. The target is 'assigned', it is not 'retained'.
|
inline |
Set the original target, since target can be nil.
Is the target that were used to run the action. Unless you are doing something complex, like CCActionManager, you should NOT call this method. The target is 'assigned', it is not 'retained'.
|
inline |
|
inline |
|
inline |
|
inline |
The action will modify the target properties.
|
inline |
The action will modify the target properties.
|
inline |
The action will modify the target properties.
|
virtual |
called before the action start. It will also set the target.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCTintBy, CCTintTo, CCFadeTo, CCBlink, CCScaleBy, CCScaleTo, CCBezierTo, CCBezierBy, CCJumpTo, CCJumpBy, CCSkewBy, CCSkewTo, CCMoveTo, CCMoveBy, CCRotateBy, CCRotateTo, CCSplitCols, CCSplitRows, CCSpawn, CCRepeatForever, CCBRotateYTo, CCReuseGrid, CCBRotateXTo, CCStopGrid, CCCardinalSplineBy, CCTurnOffTiles, CCBRotateTo, CCSpeed, CCDeccelAmplitude, CCRepeat, CCAccelAmplitude, CCCardinalSplineTo, CCAccelDeccelAmplitude, CCOrbitCamera, CCSequence, CCShuffleTiles, CCActionInterval, CCProgressFromTo, CCActionTween, CCActionCamera, CCActionEase, CCProgressTo, and CCGridAction.
|
virtual |
called before the action start. It will also set the target.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCTintBy, CCTintTo, CCFadeTo, CCBlink, CCScaleBy, CCScaleTo, CCBezierTo, CCBezierBy, CCJumpTo, CCJumpBy, CCSkewBy, CCSkewTo, CCMoveTo, CCMoveBy, CCRotateBy, CCRotateTo, CCSplitCols, CCSplitRows, CCSpawn, CCRepeatForever, CCBRotateYTo, CCReuseGrid, CCBRotateXTo, CCStopGrid, CCCardinalSplineBy, CCTurnOffTiles, CCBRotateTo, CCSpeed, CCDeccelAmplitude, CCRepeat, CCAccelAmplitude, CCCardinalSplineTo, CCAccelDeccelAmplitude, CCOrbitCamera, CCSequence, CCShuffleTiles, CCActionInterval, CCProgressFromTo, CCActionTween, CCActionCamera, CCActionEase, CCProgressTo, and CCGridAction.
|
virtual |
called before the action start. It will also set the target.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCTintBy, CCTintTo, CCFadeTo, CCBlink, CCScaleBy, CCScaleTo, CCBezierTo, CCBezierBy, CCJumpTo, CCJumpBy, CCSkewBy, CCSkewTo, CCMoveTo, CCMoveBy, CCRotateBy, CCRotateTo, CCSplitCols, CCSplitRows, CCSpawn, CCRepeatForever, CCBRotateYTo, CCReuseGrid, CCBRotateXTo, CCStopGrid, CCCardinalSplineBy, CCTurnOffTiles, CCBRotateTo, CCSpeed, CCDeccelAmplitude, CCRepeat, CCAccelAmplitude, CCCardinalSplineTo, CCAccelDeccelAmplitude, CCOrbitCamera, CCSequence, CCShuffleTiles, CCActionInterval, CCProgressFromTo, CCActionTween, CCActionCamera, CCActionEase, CCProgressTo, and CCGridAction.
|
virtual |
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCActionInterval, and CCActionInstant.
|
virtual |
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCActionInterval, and CCActionInstant.
|
virtual |
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented in CCFollow, CCRepeatForever, CCSpeed, CCActionInterval, and CCActionInstant.
|
virtual |
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCBlink, CCSpawn, CCFollow, CCSpeed, CCRepeat, CCSequence, and CCActionEase.
|
virtual |
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCBlink, CCSpawn, CCFollow, CCSpeed, CCRepeat, CCSequence, and CCActionEase.
|
virtual |
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCBlink, CCSpawn, CCFollow, CCSpeed, CCRepeat, CCSequence, and CCActionEase.
|
virtual |
called once per frame.
time a value between 0 and 1
For example:
Reimplemented from CCObject.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCDelayTime, CCTintBy, CCTintTo, CCFadeTo, CCFadeOut, CCFadeIn, CCBlink, CCScaleTo, CCBezierBy, CCEaseBackInOut, CCEaseBackOut, CCJumpBy, CCEaseBackIn, CCEaseBounceInOut, CCSkewTo, CCEaseBounceOut, CCEaseBounceIn, CCMoveBy, CCEaseElasticInOut, CCRotateBy, CCEaseElasticOut, CCRotateTo, CCEaseElasticIn, CCCallFunc, CCSplitCols, CCSpawn, CCSplitRows, CCEaseSineInOut, CCTwirl, CCPlace, CCJumpTiles3D, CCEaseSineOut, CCFlipY, CCBEaseInstant, CCEaseSineIn, CCWaves, CCWavesTiles3D, CCBRotateYTo, CCEaseExponentialInOut, CCBRotateXTo, CCLiquid, CCFlipX, CCEaseExponentialOut, CCTurnOffTiles, CCBRotateTo, CCDeccelAmplitude, CCShaky3D, CCEaseExponentialIn, CCBSoundEffect, CCRepeat, CCRemoveSelf, CCAccelAmplitude, CCRipple3D, CCEaseInOut, CCBSetSpriteFrame, CCCardinalSplineTo, CCToggleVisibility, CCEaseOut, CCAccelDeccelAmplitude, CCFadeOutTRTiles, CCSequence, CCOrbitCamera, CCLens3D, CCHide, CCEaseIn, CCShuffleTiles, CCFlipY3D, CCShow, CCFlipX3D, CCProgressFromTo, CCActionTween, CCShatteredTiles3D, CCActionInstant, CCActionEase, CCWaves3D, CCProgressTo, CCPageTurn3D, and CCShakyTiles3D.
|
virtual |
called once per frame.
time a value between 0 and 1
For example:
Reimplemented from CCObject.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCDelayTime, CCTintBy, CCTintTo, CCFadeTo, CCFadeOut, CCFadeIn, CCBlink, CCScaleTo, CCBezierBy, CCEaseBackInOut, CCEaseBackOut, CCJumpBy, CCEaseBackIn, CCEaseBounceInOut, CCSkewTo, CCEaseBounceOut, CCEaseBounceIn, CCMoveBy, CCEaseElasticInOut, CCRotateBy, CCEaseElasticOut, CCRotateTo, CCEaseElasticIn, CCCallFunc, CCSplitCols, CCSpawn, CCSplitRows, CCEaseSineInOut, CCTwirl, CCPlace, CCJumpTiles3D, CCEaseSineOut, CCFlipY, CCBEaseInstant, CCEaseSineIn, CCWaves, CCWavesTiles3D, CCBRotateYTo, CCEaseExponentialInOut, CCBRotateXTo, CCLiquid, CCFlipX, CCEaseExponentialOut, CCTurnOffTiles, CCBRotateTo, CCDeccelAmplitude, CCShaky3D, CCEaseExponentialIn, CCBSoundEffect, CCRepeat, CCRemoveSelf, CCAccelAmplitude, CCRipple3D, CCEaseInOut, CCBSetSpriteFrame, CCCardinalSplineTo, CCToggleVisibility, CCEaseOut, CCAccelDeccelAmplitude, CCFadeOutTRTiles, CCSequence, CCOrbitCamera, CCLens3D, CCHide, CCEaseIn, CCShuffleTiles, CCFlipY3D, CCShow, CCFlipX3D, CCProgressFromTo, CCActionTween, CCShatteredTiles3D, CCActionInstant, CCActionEase, CCWaves3D, CCProgressTo, CCPageTurn3D, and CCShakyTiles3D.
|
virtual |
called once per frame.
time a value between 0 and 1
For example:
Reimplemented from CCObject.
Reimplemented in CCTargetedAction, CCAnimate, CCReverseTime, CCDelayTime, CCTintBy, CCTintTo, CCFadeTo, CCFadeOut, CCFadeIn, CCBlink, CCScaleTo, CCBezierBy, CCEaseBackInOut, CCEaseBackOut, CCJumpBy, CCEaseBackIn, CCEaseBounceInOut, CCSkewTo, CCEaseBounceOut, CCEaseBounceIn, CCMoveBy, CCEaseElasticInOut, CCRotateBy, CCEaseElasticOut, CCRotateTo, CCEaseElasticIn, CCCallFunc, CCSplitCols, CCSpawn, CCSplitRows, CCEaseSineInOut, CCTwirl, CCPlace, CCJumpTiles3D, CCEaseSineOut, CCFlipY, CCBEaseInstant, CCEaseSineIn, CCWaves, CCWavesTiles3D, CCBRotateYTo, CCEaseExponentialInOut, CCBRotateXTo, CCLiquid, CCFlipX, CCEaseExponentialOut, CCTurnOffTiles, CCBRotateTo, CCDeccelAmplitude, CCShaky3D, CCEaseExponentialIn, CCBSoundEffect, CCRepeat, CCRemoveSelf, CCAccelAmplitude, CCRipple3D, CCEaseInOut, CCBSetSpriteFrame, CCCardinalSplineTo, CCToggleVisibility, CCEaseOut, CCAccelDeccelAmplitude, CCFadeOutTRTiles, CCSequence, CCOrbitCamera, CCLens3D, CCHide, CCEaseIn, CCShuffleTiles, CCFlipY3D, CCShow, CCFlipX3D, CCProgressFromTo, CCActionTween, CCShatteredTiles3D, CCActionInstant, CCActionEase, CCWaves3D, CCProgressTo, CCPageTurn3D, and CCShakyTiles3D.
|
protected |
The action tag.
An identifier of the action
|
protected |
The action tag.
An identifier of the action
|
protected |
The action tag.
An identifier of the action
|
protected |
|
protected |
|
protected |
|
protected |
The "target".
The target will be set with the 'startWithTarget' method. When the 'stop' method is called, target will be set to nil. The target is 'assigned', it is not 'retained'.
|
protected |
The "target".
The target will be set with the 'startWithTarget' method. When the 'stop' method is called, target will be set to nil. The target is 'assigned', it is not 'retained'.
|
protected |
The "target".
The target will be set with the 'startWithTarget' method. When the 'stop' method is called, target will be set to nil. The target is 'assigned', it is not 'retained'.