Sim

Engine/source/cinterface/c_simInterface.cpp

More...

Public Functions

cancelEvent(U32 eventId)
DeclareNamedGroup(ActionMapGroup )
DeclareNamedSet(ActiveActionMapSet )
DeclareNamedSet(DataBlockSet )
DeclareNamedSet(SFXAmbienceSet )
DeclareNamedSet(SFXDescriptionSet )
DeclareNamedSet(SFXEnvironmentSet )
DeclareNamedSet(SFXStateSet )
DeclareNamedSet(SFXTrackSet )
DeclareNamedSet(sgMissionLightingFilterSet )
DeclareNamedSet(TerrainMaterialSet )
DefineNewEngineFunction(FindDataBlockByName , SimObject * , (String pName) , "" )
DefineNewEngineFunction(FindObjectById , SimObject * , (U32 pId) , "" )
DefineNewEngineFunction(FindObjectByName , SimObject * , (String pName) , "" )
bool
findObject(const char * fileName, S32 declarationLine)
findObject(const char * name)
bool
findObject(const char * objectName, T *& t)
bool
TORQUE_API void
TORQUE_API SimObjectPtr< SimObject > *
getUniqueInternalName(const char * inName, SimSet * inSet, bool searchChildren)

Appends numbers to inName until an internal name not taken in the inSet is found.

getUniqueName(const char * inName)

Appends numbers to inName until an unused SimObject name is created.

ImplementNamedGroup(ActionMapGroup )
ImplementNamedSet(ActiveActionMapSet )
bool
bool
isValidObjectName(const char * name)

Return true if the given name string makes for a valid object name.

loadObjectStream(const char * filename)
postCurrentEvent(const char * obj, SimEvent * evt)
postEvent(const char * objectName, SimEvent * evt, SimTime targetTime)
postEvent(SimObject * , SimEvent * , SimTime targetTime)

a target time of 0 on an event means current event

postEvent(SimObjectId iD, SimEvent * evt, SimTime targetTime)
bool
saveObject(SimObject * obj, const char * filename)
bool
saveObject(SimObject * obj, Stream * stream)
spawnObject(String spawnClass, String spawnDataBlock, String spawnName, String spawnProperties, String spawnScript)

Detailed Description

Public Variables

SimTime gCurrentTime 
SimDataBlockGroup * gDataBlockGroup 
SimEvent * gEventQueue 
void * gEventQueueMutex 
U32 gEventSequence 
SimIdDictionary * gIdDictionary 
SimManagerNameDictionary * gNameDictionary 
U32 gNextObjectId 
SimGroup * gRootGroup 
SimTime gTargetTime 
bool sgIsShuttingDown 

Public Functions

advanceTime(SimTime delta)

advanceToTime(SimTime time)

cancelEvent(U32 eventId)

cancelPendingEvents(SimObject * obj)

DeclareNamedGroup(ActionMapGroup )

DeclareNamedSet(ActiveActionMapSet )

DeclareNamedSet(DataBlockSet )

DeclareNamedSet(SFXAmbienceSet )

DeclareNamedSet(SFXDescriptionSet )

DeclareNamedSet(SFXEnvironmentSet )

DeclareNamedSet(SFXStateSet )

DeclareNamedSet(SFXTrackSet )

DeclareNamedSet(sgMissionLightingFilterSet )

DeclareNamedSet(TerrainMaterialSet )

DefineNewEngineFunction(FindDataBlockByName , SimObject * , (String pName) , "" )

DefineNewEngineFunction(FindObjectById , SimObject * , (U32 pId) , "" )

DefineNewEngineFunction(FindObjectByName , SimObject * , (String pName) , "" )

findObject(ConsoleValueRef & )

findObject(ConsoleValueRef & ref, T *& t)

findObject(const char * fileName, S32 declarationLine)

findObject(const char * name)

findObject(const char * objectName, T *& t)

findObject(SimObjectId iD, T *& t)

findObject(SimObjectId )

fnDeleteObjectPtr(SimObjectPtr< SimObject > * pObjectPtr)

fnWrapObject(SimObject * pObject)

getCurrentTime()

getDataBlockGroup()

getEventTimeLeft(U32 eventId)

getRootGroup()

getScheduleDuration(U32 eventId)

getTargetTime()

getTimeSinceStart(U32 eventId)

getUniqueInternalName(const char * inName, SimSet * inSet, bool searchChildren)

Appends numbers to inName until an internal name not taken in the inSet is found.

getUniqueName(const char * inName)

Appends numbers to inName until an unused SimObject name is created.

ImplementNamedGroup(ActionMapGroup )

ImplementNamedSet(ActiveActionMapSet )

init()

initEventQueue()

initRoot()

isEventPending(U32 eventId)

isShuttingDown()

isValidObjectName(const char * name)

Return true if the given name string makes for a valid object name.

Empty strings and NULL are also treated as valid names (anonymous objects).

loadObjectStream(const char * filename)

loadObjectStream(Stream * stream)

postCurrentEvent(const char * obj, SimEvent * evt)

postCurrentEvent(SimObject * obj, SimEvent * evt)

postCurrentEvent(SimObjectId obj, SimEvent * evt)

postEvent(const char * objectName, SimEvent * evt, SimTime targetTime)

postEvent(SimObject * , SimEvent * , SimTime targetTime)

a target time of 0 on an event means current event

postEvent(SimObjectId iD, SimEvent * evt, SimTime targetTime)

saveObject(SimObject * obj, const char * filename)

saveObject(SimObject * obj, Stream * stream)

shutdown()

shutdownEventQueue()

shutdownRoot()

spawnObject(String spawnClass, String spawnDataBlock, String spawnName, String spawnProperties, String spawnScript)