RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <caction.h>
Signals | |
void | onActionStart (CAction *action) |
void | onActionDone (CAction *action) |
Public Member Functions | |
CAction () | |
CGameObject * | getOriginalTarget () const |
virtual bool | isDone () |
virtual void | startWithTarget (CGameObject *target) |
virtual void | stop () |
virtual void | step (float dt) |
virtual void | update (float t) |
virtual | ~CAction () |
![]() | |
CObject () | |
CObject (const CObject &object) | |
CObject & | operator= (const CObject &object) |
CObject * | retain () |
unsigned int | release () const |
CObject * | autorelease () |
unsigned int | retainCount () const |
bool | isValidCObject () const |
virtual | ~CObject () |
Public Attributes | |
unsigned int | tag |
Protected Attributes | |
CGameObject * | m_originalTarget |
CGameObject * | m_target |
Additional Inherited Members | |
![]() | |
static void | safeRetain (void *pointer) |
template<class T > | |
static void | safeRelease (T *pointer) |
template<class T > | |
static void | safeReleaseArray (T *array) |
static void | safeRelease (const char *pointer) |
![]() | |
virtual void | copyValuesFromObject (const CObject &object) |
CAction::CAction | ( | ) |
Definition at line 34 of file caction.cpp.
|
virtual |
Definition at line 90 of file caction.cpp.
CGameObject * CAction::getOriginalTarget | ( | ) | const |
Definition at line 39 of file caction.cpp.
|
virtual |
return YES if the action has finished
Reimplemented in CActionInterval.
Definition at line 51 of file caction.cpp.
|
signal |
onActionDone callback
|
signal |
onActionStart callback
|
virtual |
called before the action start. It will also set the target.
Reimplemented in CCallFuncN, CSequence, CScaleBy, CScaleTo, CRotateBy, CRotateTo, CMoveBy, CMoveTo, and CActionInterval.
Definition at line 45 of file caction.cpp.
|
virtual |
called every frame with its delta time. DON'T override unless you know what you are doing.
Reimplemented in CActionInterval.
Definition at line 63 of file caction.cpp.
|
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 CSequence.
Definition at line 57 of file caction.cpp.
|
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 in CCallFuncN, CSequence, CScaleTo, CRotateBy, CRotateTo, and CMoveTo.
Definition at line 68 of file caction.cpp.
|
protected |
|
protected |
unsigned int CAction::tag |