AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzTimersManager Class Reference

Manager a collection of XOML timers. More...

#include <CzTimer.h>

List of all members.

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.
CzXomlTimerfindTimer (unsigned int name_hash)
 Searches for the manager for the named Timer.
CzXomlTimerfindTimer (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)
IzXomlResourcegetParent ()
 CzTimersManager ()
virtual ~CzTimersManager ()
void Update (float dt)

Static Public Member Functions

static CzXomlTimerFindTimer (const char *name, IzXomlResource *container)
 Static method that searches for the named Timer.
static CzXomlTimerFindTimer (unsigned int name_hash, IzXomlResource *container)
 Static method that searches for the named Timer.
static CzXomlTimerFindTimer (unsigned int name_hash, CzScene *container, unsigned int actor_hash)
 Static method that searches for the named Timer.
static CzXomlTimerFindTimer (const char *name, CzScene *container, const char *actor_name)
 Static method that searches for the named Timer.

Protected Attributes

CzList< CzXomlTimer * > Timers
IzXomlResourceParent
CzList< CzXomlTimer * > Removals

Detailed Description

Manager a collection of XOML timers.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual CzTimersManager::~CzTimersManager ( ) [inline, virtual]

Member Function Documentation

Adds a Timer to the Timers manager.

Parameters:
[in,out]TimersIf non-null, the Timer.

Clears and destroys all the Timers in the manager.

CzXomlTimer * CzTimersManager::findTimer ( unsigned int  name_hash)

Searches for the manager for the named Timer.

Parameters:
name_hashThe Timer name as a string hash.
Returns:
null if it not found, else the found Timer.
CzXomlTimer * CzTimersManager::findTimer ( const char *  name)

Searches for the manager for the named Timer.

Parameters:
nameThe Timer name.
Returns:
null if it not found, else the found Timer.
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.

Parameters:
nameThe Timer name.
[in]containerIf non-null, the container.
Returns:
null if not found, else the found Timer.
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.

Parameters:
nameThe Timer name as a string hash.
[in]containerIf non-null, the container.
Returns:
null if not found, else the found Timer.
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.

Parameters:
name_hashThe Timer name as a string hash.
[in]containerIf non-null, the container.
actor_nameName of the actor.
Returns:
null if not found, else the found Timer.
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.

Parameters:
nameThe Timer name.
[in]containerIf non-null, the container.
actor_nameName of the actor.
Returns:
null if not found, else the found Timer.

Removes the Timer from the Timers manager.

Parameters:
[in,out]TimerIf non-null, the Timer.
void CzTimersManager::removeTimer ( unsigned int  name_hash)

Removes the named Timer from the Timers manager.

Parameters:
name_hashThe Timer name as a string hash.
void CzTimersManager::setParent ( IzXomlResource scene) [inline]
void CzTimersManager::Update ( float  dt)

Member Data Documentation


The documentation for this class was generated from the following files: