List of all members.
Public Member Functions
|(id) ||- init|
|(BOOL) ||- isDone|
| ||return YES if the action has finished |
|(void) ||- startWithTarget:|
| ||called before the action start. It will also set the target. |
|(void) ||- stop|
|(void) ||- step:|
| ||called every frame with it's delta time. DON'T override unless you know what you are doing. |
|(void) ||- update:|
Static Public Member Functions
|(id) ||+ action|
Base class for CCAction objects.
Definition at line 40 of file CCAction.h.
Member Function Documentation
Allocates and initializes the action
|- (void) startWithTarget:
called before the action start. It will also set the target.
called every frame with it's delta time. DON'T override unless you know what you are doing.
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];"
|- (void) update:
called once per frame. time a value between 0 and 1 For example: 0 means that the action just started 0.5 means that the action is in the middle 1 means that the action is over
|- (id) originalTarget
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.
Definition at line 59 of file CCAction.h.
|- (NSInteger) tag
[read, write, assign]
The action tag. An identifier of the action
Definition at line 63 of file CCAction.h.
|- (id) target
The "target". The action will modify the target properties. 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'.
Definition at line 53 of file CCAction.h.
The documentation for this class was generated from the following file: