Isle
|
[AI] Associates an MxCore object with tickle timing/interval information. More...
#include <mxticklemanager.h>
Public Member Functions | |
MxTickleClient (MxCore *p_client, MxTime p_interval) | |
[AI] Constructs a tickle client for the given object and interval. More... | |
MxCore * | GetClient () const |
[AI] Returns the managed MxCore object. More... | |
MxTime | GetTickleInterval () const |
[AI] Returns the tickle interval in milliseconds. More... | |
MxTime | GetLastUpdateTime () const |
[AI] Returns the timestamp of the last tickle. More... | |
MxU16 | GetFlags () const |
[AI] Returns the internal flags for this tickle client. More... | |
void | SetTickleInterval (MxTime p_interval) |
[AI] Sets the tickle interval for this client. More... | |
void | SetLastUpdateTime (MxTime p_lastUpdateTime) |
[AI] Sets the last tickle time (updates the timestamp). More... | |
void | SetFlags (MxU16 p_flags) |
[AI] Sets the flags for this client (e.g., destruction flag). More... | |
[AI] Associates an MxCore object with tickle timing/interval information.
This class acts as a record holding which MxCore-derived object should be tickled (i.e. have its Tickle() called), how often this should happen (interval), when it was last tickled, and additional flags. Used by MxTickleManager to trigger periodic updates in registered objects.
[AI] The tickle mechanism forms the basis of the engine's periodic update ("game loop") logic, allowing registered objects to update themselves at specified time intervals managed centrally.
Definition at line 19 of file mxticklemanager.h.
[AI] Constructs a tickle client for the given object and interval.
p_client | MxCore-derived object to be tickled. [AI] |
p_interval | Time in milliseconds between tickles for this object. [AI] |
Definition at line 16 of file mxticklemanager.cpp.
|
inline |
[AI] Returns the managed MxCore object.
Definition at line 31 of file mxticklemanager.h.
|
inline |
[AI] Returns the internal flags for this tickle client.
Definition at line 46 of file mxticklemanager.h.
|
inline |
[AI] Returns the timestamp of the last tickle.
Definition at line 41 of file mxticklemanager.h.
|
inline |
[AI] Returns the tickle interval in milliseconds.
Definition at line 36 of file mxticklemanager.h.
|
inline |
[AI] Sets the flags for this client (e.g., destruction flag).
p_flags | Bitmask flags. [AI] |
Definition at line 64 of file mxticklemanager.h.
|
inline |
[AI] Sets the last tickle time (updates the timestamp).
p_lastUpdateTime | Time in milliseconds. [AI] |
Definition at line 58 of file mxticklemanager.h.
|
inline |
[AI] Sets the tickle interval for this client.
p_interval | New interval in milliseconds. [AI] |
Definition at line 52 of file mxticklemanager.h.