RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
|
#include <cactionmanager.h>
Public Member Functions | |
CActionManager (void) | |
void | addAction (CAction *action, CGameObject *target, bool paused) |
void | removeAllActions () |
void | removeAllActionsFromTarget (CGameObject *target) |
void | removeAction (CAction *action) |
void | removeActionByTag (unsigned int tag, CGameObject *target) |
CAction * | getActionByTag (unsigned int tag, CGameObject *game_object) |
unsigned int | numberOfRunningActionsInTarget (CGameObject *target) |
void | pauseTarget (CGameObject *target) |
void | resumeTarget (CGameObject *target) |
void | update (double dt) |
~CActionManager (void) | |
![]() | |
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 () |
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) |
Definition at line 49 of file cactionmanager.h.
CActionManager::CActionManager | ( | void | ) |
Definition at line 37 of file cactionmanager.cpp.
CActionManager::~CActionManager | ( | void | ) |
Resume a set of targets (convenience function to reverse a pauseAllRunningActions call)
Definition at line 294 of file cactionmanager.cpp.
void CActionManager::addAction | ( | CAction * | action, |
CGameObject * | target, | ||
bool | paused | ||
) |
Adds an action with a target. If the target is already present, then the action will be added to the existing target. If the target is not present, a new instance of this target will be created either paused or paused, and the action will be added to the newly created target. When the target is paused, the queued actions won't be 'ticked'.
Definition at line 110 of file cactionmanager.cpp.
CAction * CActionManager::getActionByTag | ( | unsigned int | tag, |
CGameObject * | game_object | ||
) |
Gets an action given its tag an a target
Definition at line 212 of file cactionmanager.cpp.
unsigned int CActionManager::numberOfRunningActionsInTarget | ( | CGameObject * | target | ) |
Returns the numbers of actions that are running in a certain target Composable actions are counted as 1 action. Example: If you are running 1 Sequence of 7 actions, it will return 1. If you are running 7 Sequences of 2 actions, it will return 7.
Definition at line 235 of file cactionmanager.cpp.
void CActionManager::pauseTarget | ( | CGameObject * | target | ) |
Pauses the target: all running actions and newly added actions will be paused.
Definition at line 75 of file cactionmanager.cpp.
void CActionManager::removeAction | ( | CAction * | action | ) |
Removes an action given an action reference.
Definition at line 170 of file cactionmanager.cpp.
void CActionManager::removeActionByTag | ( | unsigned int | tag, |
CGameObject * | target | ||
) |
Removes an action given its tag and the target
Definition at line 188 of file cactionmanager.cpp.
void CActionManager::removeAllActions | ( | ) |
Removes all actions from all the targers.
Definition at line 131 of file cactionmanager.cpp.
void CActionManager::removeAllActionsFromTarget | ( | CGameObject * | target | ) |
Removes all actions from a certain target. All the actions that belongs to the target will be removed.
Definition at line 141 of file cactionmanager.cpp.
void CActionManager::resumeTarget | ( | CGameObject * | target | ) |
Resumes the target. All queued actions will be resumed.
Definition at line 84 of file cactionmanager.cpp.
void CActionManager::update | ( | double | dt | ) |
Pauses all running actions, returning a list of targets whose actions were paused.
Definition at line 247 of file cactionmanager.cpp.