CCOrbitCamera action Orbits the camera around the center of the screen using spherical coordinates.
More...
#include <CCActionCamera.h>
|
| | CCOrbitCamera () |
| |
| | ~CCOrbitCamera () |
| |
| bool | initWithDuration (float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX) |
| | initializes a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX
|
| |
| void | sphericalRadius (float *r, float *zenith, float *azimuth) |
| | positions the camera according to spherical coordinates
|
| |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
| |
| virtual void | startWithTarget (CCNode *pTarget) |
| | called before the action start. It will also set the target.
|
| |
| virtual void | update (float time) |
| | called once per frame.
|
| |
| | CCActionCamera () |
| |
| virtual | ~CCActionCamera () |
| |
| virtual CCActionInterval * | reverse () |
| | returns a reversed action
|
| |
| float | getElapsed (void) |
| | how many seconds had elapsed since the actions started to run.
|
| |
| bool | initWithDuration (float d) |
| | initializes the action
|
| |
| virtual bool | isDone (void) |
| | returns true if the action has finished
|
| |
| virtual void | step (float dt) |
| | called every frame with it's delta time. DON'T override unless you know what you are doing.
|
| |
| void | setAmplitudeRate (float amp) |
| |
| float | getAmplitudeRate (void) |
| |
| | CCFiniteTimeAction () |
| |
| virtual | ~CCFiniteTimeAction () |
| |
| float | getDuration (void) |
| | get duration in seconds of the action
|
| |
| void | setDuration (float duration) |
| | set duration in seconds of the action
|
| |
| | CCAction (void) |
| |
| virtual | ~CCAction (void) |
| |
| const char * | description () |
| |
| virtual void | stop (void) |
| | called after the action has finished.
|
| |
| CCNode * | getTarget (void) |
| |
| void | setTarget (CCNode *pTarget) |
| | The action will modify the target properties.
|
| |
| CCNode * | getOriginalTarget (void) |
| |
| void | setOriginalTarget (CCNode *pOriginalTarget) |
| | Set the original target, since target can be nil.
|
| |
| int | getTag (void) |
| |
| void | setTag (int nTag) |
| |
| | CCObject (void) |
| |
| virtual | ~CCObject (void) |
| |
| void | release (void) |
| |
| void | retain (void) |
| |
| CCObject * | autorelease (void) |
| |
| CCObject * | copy (void) |
| |
| bool | isSingleReference (void) |
| |
| unsigned int | retainCount (void) |
| |
| virtual bool | isEqual (const CCObject *pObject) |
| |
|
| static CCOrbitCamera * | create (float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX) |
| | creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX
|
| |
CCOrbitCamera action Orbits the camera around the center of the screen using spherical coordinates.
| static CCOrbitCamera* create |
( |
float |
t, |
|
|
float |
radius, |
|
|
float |
deltaRadius, |
|
|
float |
angleZ, |
|
|
float |
deltaAngleZ, |
|
|
float |
angleX, |
|
|
float |
deltaAngleX |
|
) |
| |
|
static |
creates a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX
| bool initWithDuration |
( |
float |
t, |
|
|
float |
radius, |
|
|
float |
deltaRadius, |
|
|
float |
angleZ, |
|
|
float |
deltaAngleZ, |
|
|
float |
angleX, |
|
|
float |
deltaAngleX |
|
) |
| |
initializes a CCOrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX
| void sphericalRadius |
( |
float * |
r, |
|
|
float * |
zenith, |
|
|
float * |
azimuth |
|
) |
| |
positions the camera according to spherical coordinates
| virtual void startWithTarget |
( |
CCNode * |
pTarget | ) |
|
|
virtual |
called before the action start. It will also set the target.
Reimplemented from CCActionCamera.
| virtual void update |
( |
float |
time | ) |
|
|
virtual |
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
Reimplemented from CCAction.
The documentation for this class was generated from the following file: