![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
Manager a collection of XOML timers. More...
#include <CzTimer.h>
Public Types | |
typedef CzList< CzXomlTimer * > ::iterator | _Iterator |
Public Member Functions | |
_Iterator | begin () |
_Iterator | end () |
void | addTimer (CzXomlTimer *Timer) |
Adds a Timer to the Timers manager. | |
void | removeTimer (CzXomlTimer *Timer) |
Removes the Timer from the Timers manager. | |
void | removeTimer (unsigned int name_hash) |
Removes the named Timer from the Timers manager. | |
CzXomlTimer * | findTimer (unsigned int name_hash) |
Searches for the manager for the named Timer. | |
CzXomlTimer * | findTimer (const char *name) |
Searches for the manager for the named Timer. | |
void | clearTimers () |
Clears and destroys all the Timers in the manager. | |
void | setParent (IzXomlResource *scene) |
IzXomlResource * | getParent () |
CzTimersManager () | |
virtual | ~CzTimersManager () |
void | Update (float dt) |
Static Public Member Functions | |
static CzXomlTimer * | FindTimer (const char *name, IzXomlResource *container) |
Static method that searches for the named Timer. | |
static CzXomlTimer * | FindTimer (unsigned int name_hash, IzXomlResource *container) |
Static method that searches for the named Timer. | |
static CzXomlTimer * | FindTimer (unsigned int name_hash, CzScene *container, unsigned int actor_hash) |
Static method that searches for the named Timer. | |
static CzXomlTimer * | FindTimer (const char *name, CzScene *container, const char *actor_name) |
Static method that searches for the named Timer. | |
Protected Attributes | |
CzList< CzXomlTimer * > | Timers |
IzXomlResource * | Parent |
CzList< CzXomlTimer * > | Removals |
Manager a collection of XOML timers.
typedef CzList<CzXomlTimer*>::iterator CzTimersManager::_Iterator |
CzTimersManager::CzTimersManager | ( | ) | [inline] |
virtual CzTimersManager::~CzTimersManager | ( | ) | [inline, virtual] |
void CzTimersManager::addTimer | ( | CzXomlTimer * | Timer | ) |
Adds a Timer to the Timers manager.
[in,out] | Timers | If non-null, the Timer. |
_Iterator CzTimersManager::begin | ( | ) | [inline] |
void CzTimersManager::clearTimers | ( | ) |
Clears and destroys all the Timers in the manager.
_Iterator CzTimersManager::end | ( | ) | [inline] |
CzXomlTimer * CzTimersManager::findTimer | ( | unsigned int | name_hash | ) |
Searches for the manager for the named Timer.
name_hash | The Timer name as a string hash. |
CzXomlTimer * CzTimersManager::findTimer | ( | const char * | name | ) |
Searches for the manager for the named Timer.
name | The Timer name. |
CzXomlTimer * CzTimersManager::FindTimer | ( | const char * | name, |
IzXomlResource * | container | ||
) | [static] |
Static method that searches for the named Timer.
If the Timer is not found in the supplied conntainer then the global Timers manager will be searched.
name | The Timer name. | |
[in] | container | If non-null, the container. |
CzXomlTimer * CzTimersManager::FindTimer | ( | unsigned int | name_hash, |
IzXomlResource * | container | ||
) | [static] |
Static method that searches for the named Timer.
If the Timer is not found in the supplied conntainer then the global Timers manager will be searched.
name | The Timer name as a string hash. | |
[in] | container | If non-null, the container. |
CzXomlTimer * CzTimersManager::FindTimer | ( | unsigned int | name_hash, |
CzScene * | scene, | ||
unsigned int | actor_hash | ||
) | [static] |
Static method that searches for the named Timer.
Searches the supplied actors Timers manager for the named Timer, if supplied actor not valid then the supplied scene will be searched instead. If the Timer is not found in the scenes Timers manager then the global Timers manager will be searched.
name_hash | The Timer name as a string hash. | |
[in] | container | If non-null, the container. |
actor_name | Name of the actor. |
CzXomlTimer * CzTimersManager::FindTimer | ( | const char * | name, |
CzScene * | container, | ||
const char * | actor_name | ||
) | [static] |
Static method that searches for the named Timer.
Searches the supplied actors Timers manager for the named Timer, if supplied actor not valid then the supplied scene will be searched instead. If the Timer is not found in the scenes Timers manager then the global Timers manager will be searched.
name | The Timer name. | |
[in] | container | If non-null, the container. |
actor_name | Name of the actor. |
IzXomlResource* CzTimersManager::getParent | ( | ) | [inline] |
void CzTimersManager::removeTimer | ( | CzXomlTimer * | Timer | ) |
Removes the Timer from the Timers manager.
[in,out] | Timer | If non-null, the Timer. |
void CzTimersManager::removeTimer | ( | unsigned int | name_hash | ) |
Removes the named Timer from the Timers manager.
name_hash | The Timer name as a string hash. |
void CzTimersManager::setParent | ( | IzXomlResource * | scene | ) | [inline] |
void CzTimersManager::Update | ( | float | dt | ) |
IzXomlResource* CzTimersManager::Parent [protected] |
CzList<CzXomlTimer*> CzTimersManager::Removals [protected] |
CzList<CzXomlTimer*> CzTimersManager::Timers [protected] |