Torque2D Reference
|
Functions | |
ImplementNamedSet (ActiveActionMapSet) ImplementNamedSet(GhostAlwaysSet) ImplementNamedSet(BehaviorSet) ImplementNamedSet(AchievementSet) | |
DeclareNamedSet (ActiveActionMapSet) DeclareNamedSet(GhostAlwaysSet) DeclareNamedSet(BehaviorSet) DeclareNamedSet(AchievementSet) DeclareNamedGroup(ActionMapGroup) DeclareNamedGroup(ClientGroup) DeclareNamedGroup(GuiGroup) DeclareNamedGroup(GuiDataGroup) DeclareNamedGroup(TCPGroup) DeclareNamedGroup(ClientConnectionGroup) DeclareNamedGroup(ChunkFileGroup) | |
void | init () |
void | shutdown () |
SimDataBlockGroup * | getDataBlockGroup () |
SimGroup * | getRootGroup () |
SimObject * | findObject (SimObjectId) |
SimObject * | findObject (const char *name) |
template<class T > | |
bool | findObject (SimObjectId id, T *&t) |
template<class T > | |
bool | findObject (const char *pObjectName, T *&t) |
void | advanceToTime (SimTime time) |
void | advanceTime (SimTime delta) |
SimTime | getCurrentTime () |
SimTime | getTargetTime () |
U32 | postEvent (SimObject *, SimEvent *, U32 targetTime) |
a target time of 0 on an event means current event More... | |
U32 | postEvent (SimObjectId iD, SimEvent *evt, U32 targetTime) |
U32 | postEvent (const char *objectName, SimEvent *evt, U32 targetTime) |
U32 | postCurrentEvent (SimObject *obj, SimEvent *evt) |
U32 | postCurrentEvent (SimObjectId obj, SimEvent *evt) |
U32 | postCurrentEvent (const char *obj, SimEvent *evt) |
void | cancelEvent (U32 eventId) |
bool | isEventPending (U32 eventId) |
U32 | getEventTimeLeft (U32 eventId) |
U32 | getTimeSinceStart (U32 eventId) |
U32 | getScheduleDuration (U32 eventId) |
bool | saveObject (SimObject *obj, Stream *stream) |
SimObject * | loadObjectStream (Stream *stream) |
bool | saveObject (SimObject *obj, const char *filename) |
SimObject * | loadObjectStream (const char *filename) |
void | initEventQueue () |
void | shutdownEventQueue () |
void | cancelPendingEvents (SimObject *obj) |
void | initRoot () |
void | shutdownRoot () |
Variables | |
SimIdDictionary * | gIdDictionary |
SimTime | gCurrentTime |
SimTime | gTargetTime |
void * | gEventQueueMutex |
SimEvent * | gEventQueue |
U32 | gEventSequence |
SimGroup * | gRootGroup = NULL |
SimManagerNameDictionary * | gNameDictionary |
U32 | gNextObjectId |
SimDataBlockGroup * | gDataBlockGroup |
void advanceTime | ( | SimTime | delta | ) |
void advanceToTime | ( | SimTime | time | ) |
void cancelEvent | ( | U32 | eventSequence | ) |
cancel a previously scheduled event.
eventSequence | The numeric ID of a previously scheduled event. |
void cancelPendingEvents | ( | SimObject * | obj | ) |
Sim::DeclareNamedSet | ( | ActiveActionMapSet | ) |
|
inline |
|
inline |
|
inline |
|
inline |
U32 getCurrentTime | ( | ) |
get the time, in ticks, that has elapsed since the engine started executing.
SimDataBlockGroup * getDataBlockGroup | ( | ) |
U32 getEventTimeLeft | ( | U32 | eventSequence | ) |
determines how much time remains until the event specified by eventID occurs.
eventID | The numeric ID of a previously scheduled event. |
SimGroup * getRootGroup | ( | ) |
U32 getScheduleDuration | ( | U32 | eventSequence | ) |
Determines how long the event associated with eventID was scheduled for.
eventID | The numeric ID of a previously scheduled event. |
U32 getTargetTime | ( | ) |
U32 getTimeSinceStart | ( | U32 | eventSequence | ) |
Determines how much time has passed since the event specified by eventID was scheduled.
eventID | The numeric ID of a previously scheduled event. |
Sim::ImplementNamedSet | ( | ActiveActionMapSet | ) |
void init | ( | ) |
void Sim::initEventQueue | ( | ) |
void Sim::initRoot | ( | ) |
bool isEventPending | ( | U32 | eventSequence | ) |
see if the event associated with eventID is still pending.
When an event passes, the eventID is removed from the event queue, becoming invalid, so there is no discernable difference between a completed event and a bad event ID.
eventID | The numeric ID of a previously scheduled event. |
SimObject * loadObjectStream | ( | const char * | filename | ) |
|
inline |
|
inline |
a target time of 0 on an event means current event
|
inline |
|
inline |
bool saveObject | ( | SimObject * | obj, |
const char * | filename | ||
) |
void shutdown | ( | ) |
void Sim::shutdownEventQueue | ( | ) |
void Sim::shutdownRoot | ( | ) |
SimTime gCurrentTime |
SimDataBlockGroup* gDataBlockGroup |
SimEvent* gEventQueue |
void* gEventQueueMutex |
U32 gEventSequence |
SimIdDictionary * gIdDictionary |
SimManagerNameDictionary * gNameDictionary |
U32 gNextObjectId |
SimGroup* gRootGroup = NULL |
SimTime gTargetTime |