VR-Forces 4.0.4 Class Documentation
Classes | Typedefs | Functions | Variables
vrfLua Namespace Reference

This is a set of helper functions to handle Lua calls. More...

Classes

class  DtBhaveLuaScriptManager
class  DtLuaGlobalSingleton
class  DtLuaScriptController
 Controller for using Lua scripts. More...
class  DtLuaScriptDescriptor
class  DtLuaScriptManager
 Manager for using Lua scripts. More...
class  DtScriptPSR
 This stores any state associated with scripting. More...
class  DtScriptRepository
 Script Repository for storing Lua scripts. More...

Typedefs

typedef DtSimTask *(* DtTaskCommandCreationFcn )(lua_State *L, DtVrfObject *vrfObject)
 typedefs for implementing VRF lua tasks/sets
typedef DtSetDataRequest *(* DtSetCommandCreationFcn )(lua_State *L, DtVrfObject *vrfObject)

Functions

int luaVRFBHAVETask_Template (lua_State *L, DtTaskCommandCreationFcn taskCreationFcn)
 Template functions used to factor out common code among all the VRF task and set lua commands.
int luaVRFBHAVESet_Template (lua_State *L, DtSetCommandCreationFcn setCreationFcn)
int luaVRFTask_BHAVEMoveToWaypoint (lua_State *L)
int luaVRFTask_BHAVEMoveToLocation (lua_State *L)
int luaVRFTask_BHAVEMoveAlongRoute (lua_State *L)
int luaVRFTask_BHAVEPatrolRoute (lua_State *L)
int luaVRFTask_BHAVEPatrolBetween (lua_State *L)
int luaVRFTask_BHAVEFollow (lua_State *L)
int luaVRFTask_BHAVEFlee (lua_State *L)
int luaVRFTask_BHAVEHide (lua_State *L)
int luaVRFTask_BHAVEWander (lua_State *L)
int luaVRFSet_MovementMode (lua_State *L)
int luaVRFSet_Script (lua_State *L)
DtSimTaskcreateBHAVEMoveToWaypoint (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEMoveToLocation (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEMoveAlongRoute (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEPatrolRoute (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEPatrolBetween (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEFollow (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEFlee (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEHide (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateBHAVEWander (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateMovementMode (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateScript (lua_State *L, DtVrfObject *vrfObject)
int luaDrawLine (lua_State *l)
int luaDrawPoint (lua_State *l)
int luaCreateEntity (lua_State *l)
int luaCreateAggregate (lua_State *l)
int luaCreateWaypoint (lua_State *l)
int luaCreateRoute (lua_State *l)
int luaCreatePhaseLine (lua_State *l)
int luaCreateControlArea (lua_State *l)
int luaCreateObstacle (lua_State *l)
int luaCreateDisagregateArea (lua_State *l)
int luaRemoveEntity (lua_State *l)
int luaRemoveObject (lua_State *l)
DT_DLL_vrfLua bool DtLuaFunctionExists (lua_State *luaState, const char *functionName)
 Determine whether or not a function exists.
DT_DLL_vrfLua bool DtLuaRun (lua_State *luaState, const char *functionName)
 Execute a lua function.
DT_DLL_vrfLua bool DtLuaRun (lua_State *luaState, const char *func, const char *sig,...)
 Execite a lua function with arguments. Example: DtLuaRun("f", "dd>d", x, y, &z);.
DT_DLL_vrfLua int DtLuaReport (lua_State *L, int status)
 Lua Debugging functions.
DT_DLL_vrfLua void DtLuaStackDump (lua_State *state)
DT_DLL_vrfLua void DtLuaPrintValue (lua_State *state, int index, DtOutputStream &stream)
DT_DLL_vrfLua void DtLuaPrintTable (lua_State *state, int index, DtOutputStream &stream)
DT_DLL_vrfLua int DtLuaErrorHandler (lua_State *L)
DT_DLL_vrfLua int DtLuaAppendPath (lua_State *L, const char *path)
 Add a path into Lua for include files.
DT_DLL_vrfLua DtVrfObjectDtLuaGetThisVRFObject (lua_State *l)
 returns the C++ equivalent of that VRF Object "this"
DT_DLL_vrfLua DtVrfObjectDtLuaPopVRFObject (lua_State *l)
 If a Lua VRF Object is the first item in the stack, this returns the C++ equivalent of that VRF Object and removes out of the stack.
DT_DLL_vrfLua DtVrfObjectDtLuaGetVRFObject (lua_State *l)
 If a Lua VRF Object is the first item in the stack, this returns the C++ equivalent of that VRF Object.
int luaUtilGetVRFExerciseTime (lua_State *l)
 Global function used by some of these functions - This should really be in a class.
int luaUtilGetVRFExerciseStartTime (lua_State *l)
int luaVRFRadioSendTextMessage (lua_State *l)
int luaGetVrfObjects (lua_State *l)
int luaGetVrfObjectByName (lua_State *l)
int luaGetVrfObjectByGlobalId (lua_State *l)
int luaGetVisibleVrfObjectList (lua_State *l)
int luaAddSubordinate (lua_State *l)
int luaRemoveSubordinate (lua_State *l)
int luaGetTerrainElevation (lua_State *l)
int luaQueryLineOfSight (lua_State *l)
static void setLocationRequestCallack (DtSimMessage *msg, void *usrData)
 static callback used for "set location request" radio message
static void textRadioMessageCallback (DtSimMessage *msg, void *usrData)
 static callback used for "text report" radio message
int parseTableKeyValsToBuffer (lua_State *state, int tableIndex, char *cursor, unsigned int length)
 internal function for saving lua globals
int saveLuaScriptGlobals (lua_State *state, char *buffer, unsigned int bufferLength)
 Serializes the scripts globals in a character buffer.
char * loadLuaScriptGlobals (lua_State *state, const char *buffer, int tableIndex)
 Loads the scripts globals from a character buffer.
int luaVRFTask_Template (lua_State *L, DtTaskCommandCreationFcn taskCreationFcn)
 Template functions used to factor out common code among all the VRF task and set lua commands.
int luaVRFSet_Template (lua_State *L, DtSetCommandCreationFcn setCreationFcn)
DtSimTaskcreateDisembarkTask (lua_State *L, DtVrfObject *vrfObject)
 VRF Task/set creation functions.
DtSimTaskcreateDisembarkAllTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateEmbarkOnTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFireAtTargetTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFireCruiseMissileTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFireForEffectOnEntityTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFireForEffectOnLocationTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFireForEffectOnTargetTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateFollowEntityTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateInterceptAndDestroyTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateMoveAlongRouteTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateMoveToLocationTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateMoveToWaypointTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreatePatrolBetweenTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreatePatrolAlongRouteTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateSendTextMessageTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateTurnToHeadingTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateUserTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateWaitTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateWaitDurationTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateWaitElapsedTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateTaskFromName (const char *taskName, lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateSendRadioTask (lua_State *L, DtVrfObject *vrfObject)
DtSimTaskcreateSendRadioSet (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateDestroyedSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateDisembarkedSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateEmbarkedSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateHeadingSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateLocationSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateOrderedSpeedSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreatePostureSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateRestoreSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateRulesOfEngagementSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateSectorOfResponsibilitySetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateSpotReportsSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateTargetSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateWeaponStateSetCommand (lua_State *L, DtVrfObject *vrfObject)
DtSetDataRequestcreateSetFromName (const char *setName, lua_State *L, DtVrfObject *vrfObject)
int luaVRFIsEmbarkedOn (lua_State *L)
 VRF lua Task commands.
int luaVRFTask_Disembark (lua_State *L)
int luaVRFTask_DisembarkAll (lua_State *L)
int luaVRFTask_EmbarkOn (lua_State *L)
int luaVRFTask_FireAtTarget (lua_State *L)
int luaVRFTask_FireCruiseMissile (lua_State *L)
int luaVRFTask_FireForEffectOnEntity (lua_State *L)
int luaVRFTask_FireForEffectOnLocation (lua_State *L)
int luaVRFTask_FireForEffectOnTarget (lua_State *L)
int luaVRFTask_FollowEntity (lua_State *L)
int luaVRFTask_InterceptAndDestroy (lua_State *L)
int luaVRFTask_MoveAlongRoute (lua_State *L)
int luaVRFTask_MoveToLocation (lua_State *L)
int luaVRFTask_MoveToWaypoint (lua_State *L)
int luaVRFTask_PatrolBetween (lua_State *L)
int luaVRFTask_PatrolAlongRoute (lua_State *L)
int luaVRFTask_SendRadioSet (lua_State *L)
int luaVRFTask_SendRadioTask (lua_State *L)
int luaVRFTask_SendTextMessage (lua_State *L)
int luaVRFTask_TurnToHeading (lua_State *L)
int luaVRFTask_UserTask (lua_State *L)
int luaVRFTask_Wait (lua_State *L)
int luaVRFTask_WaitDuration (lua_State *L)
int luaVRFTask_WaitElapsed (lua_State *L)
int luaVRFSet_Altitude (lua_State *L)
 VRF lua Set commands.
int luaVRFSet_Destroyed (lua_State *L)
int luaVRFSet_Disembarked (lua_State *L)
int luaVRFSet_DIGuyAnimation (lua_State *L)
int luaVRFSet_DIGuyAppearance (lua_State *L)
int luaVRFSet_Embarked (lua_State *L)
int luaVRFSet_Heading (lua_State *L)
int luaVRFSet_Location (lua_State *L)
int luaVRFSet_OrderedSpeed (lua_State *L)
int luaVRFSet_Posture (lua_State *L)
int luaVRFSet_Restore (lua_State *L)
int luaVrfSet_RulesOfEngagement (lua_State *L)
int luaVRFSet_SectorOfResponsibility (lua_State *L)
int luaVRFSet_SpotReports (lua_State *L)
int luaVRFSet_Target (lua_State *L)
int luaVRFSet_WeaponState (lua_State *L)
int luaVRFIsDestroyed (lua_State *L)
int luaVRFIsTasked (lua_State *L)
int luaVRFIsLocal (lua_State *L)
int luaVRFIsVrfSimulatedObject (lua_State *L)
int luaVRFIsExecutingPlan (lua_State *L)
int luaUtilGetVRFObjectPosition (lua_State *l)
 Get State Repository information.
int luaUtilGetVRFObjectOrientation (lua_State *l)
int luaVRFGetObjectName (lua_State *L)
int luaVRFGetObjectLabel (lua_State *L)
int luaVRFGetOverlayParent (lua_State *L)
int luaVRFGetEntityIdentifier (lua_State *L)
int luaVRFGetEntityType (lua_State *L)
int luaVRFGetExtent (lua_State *L)
int luaVRFGetHeading (lua_State *L)
int luaVRFGetVelocity (lua_State *L)
int luaVRFGetOrderedSpeed (lua_State *L)
int luaVRFGetRotationalVelocity (lua_State *L)
int luaVRFGetAcceleration (lua_State *L)
int luaUtilSetVRFObjectPosition (lua_State *l)
 Set Commands.
int luaUtilSetVRFObjectOrientation (lua_State *l)
int luaVRFSetIsDestroyed (lua_State *L)
int luaVRFSetObjectName (lua_State *L)
int luaVRFSetObjectLabel (lua_State *L)
int luaVRFSetOverlayParent (lua_State *L)
int luaVRFSetEntityIdentifier (lua_State *L)
int luaVRFSetEntityType (lua_State *L)
int luaVRFSetHeading (lua_State *L)
int luaVRFSetVelocity (lua_State *L)
int luaVRFSetOrderedSpeed (lua_State *L)
int luaVRFSetRotationalVelocity (lua_State *L)
int luaVRFSetAcceleration (lua_State *L)
int luaVRFGetVertexes (lua_State *L)
 Vertex Commands.
int luaVRFAddVertex (lua_State *L)
int luaVRFRemoveVertex (lua_State *L)
int luaUtilInfo (lua_State *l)
 @ Functions for printing a message on the VRF entity's object console
int luaUtilVerbose (lua_State *l)
 @ Functions for printing a message on the VRF entity's object console
int luaUtilWarn (lua_State *l)
 @ Functions for printing a message on the VRF entity's object console
int luaUtilError (lua_State *l)
 @ Functions for printing a message on the VRF entity's object console
int luaUtilDebug (lua_State *l)
 @ Functions for printing a message on the VRF entity's object console

Variables

static const int LUA_EXECUTION_OK = 0
 Error codes.
static const int LUA_ERROR_BAD_PARAMETERS = -1
static const int LUA_ERROR_EXECUTION_FAILURE = -2
static const int LUA_ERROR_INVALID_ENTITY = -3
static const int LUA_ERROR_UNKNOWN_LUA_MANAGER = -4
static const int LUA_ERROR_REMOTE_ENTITY = -5
const char DtLuaScriptControllerType [] = "lua-script-controller"
 String which uniquely identifies this controller.
const char DtScriptPSRType [] = "script-psr-type"

Detailed Description

This is a set of helper functions to handle Lua calls.


Typedef Documentation

typedef DtSimTask *(* vrfLua::DtTaskCommandCreationFcn)(lua_State *L, DtVrfObject *vrfObject)

typedefs for implementing VRF lua tasks/sets

typedef DtSetDataRequest *(* vrfLua::DtSetCommandCreationFcn)(lua_State *L, DtVrfObject *vrfObject)

Function Documentation

int vrfLua::luaVRFBHAVETask_Template ( lua_State *  L,
DtTaskCommandCreationFcn  taskCreationFcn 
)

Template functions used to factor out common code among all the VRF task and set lua commands.

int vrfLua::luaVRFBHAVESet_Template ( lua_State *  L,
DtSetCommandCreationFcn  setCreationFcn 
)
int vrfLua::luaVRFTask_BHAVEPatrolRoute ( lua_State *  L)
int vrfLua::luaVRFTask_BHAVEPatrolBetween ( lua_State *  L)
int vrfLua::luaVRFTask_BHAVEFollow ( lua_State *  L)
int vrfLua::luaVRFTask_BHAVEFlee ( lua_State *  L)
int vrfLua::luaVRFTask_BHAVEHide ( lua_State *  L)
int vrfLua::luaVRFTask_BHAVEWander ( lua_State *  L)
int vrfLua::luaVRFSet_MovementMode ( lua_State *  L)
int vrfLua::luaVRFSet_Script ( lua_State *  L)
DtSimTask* vrfLua::createBHAVEMoveToWaypoint ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEMoveToLocation ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEMoveAlongRoute ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEPatrolRoute ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEPatrolBetween ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEFollow ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEFlee ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEHide ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createBHAVEWander ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createMovementMode ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createScript ( lua_State *  L,
DtVrfObject vrfObject 
)
int vrfLua::luaDrawLine ( lua_State *  l)
int vrfLua::luaDrawPoint ( lua_State *  l)
int vrfLua::luaCreateEntity ( lua_State *  l)
int vrfLua::luaCreateAggregate ( lua_State *  l)
int vrfLua::luaCreateWaypoint ( lua_State *  l)
int vrfLua::luaCreateRoute ( lua_State *  l)
int vrfLua::luaCreatePhaseLine ( lua_State *  l)
int vrfLua::luaCreateControlArea ( lua_State *  l)
int vrfLua::luaCreateObstacle ( lua_State *  l)
int vrfLua::luaCreateDisagregateArea ( lua_State *  l)
int vrfLua::luaRemoveEntity ( lua_State *  l)
int vrfLua::luaRemoveObject ( lua_State *  l)
DT_DLL_vrfLua bool vrfLua::DtLuaFunctionExists ( lua_State *  luaState,
const char *  functionName 
)

Determine whether or not a function exists.

DT_DLL_vrfLua bool vrfLua::DtLuaRun ( lua_State *  luaState,
const char *  functionName 
)

Execute a lua function.

DT_DLL_vrfLua bool vrfLua::DtLuaRun ( lua_State *  luaState,
const char *  func,
const char *  sig,
  ... 
)

Execite a lua function with arguments. Example: DtLuaRun("f", "dd>d", x, y, &z);.

DT_DLL_vrfLua int vrfLua::DtLuaReport ( lua_State *  L,
int  status 
)

Lua Debugging functions.

DT_DLL_vrfLua void vrfLua::DtLuaStackDump ( lua_State *  state)
DT_DLL_vrfLua void vrfLua::DtLuaPrintValue ( lua_State *  state,
int  index,
DtOutputStream &  stream 
)
DT_DLL_vrfLua void vrfLua::DtLuaPrintTable ( lua_State *  state,
int  index,
DtOutputStream &  stream 
)
DT_DLL_vrfLua int vrfLua::DtLuaErrorHandler ( lua_State *  L)
DT_DLL_vrfLua int vrfLua::DtLuaAppendPath ( lua_State *  L,
const char *  path 
)

Add a path into Lua for include files.

returns the C++ equivalent of that VRF Object "this"

If a Lua VRF Object is the first item in the stack, this returns the C++ equivalent of that VRF Object and removes out of the stack.

If a Lua VRF Object is the first item in the stack, this returns the C++ equivalent of that VRF Object.

The Lua object, if it exists, remains in the stack.

int vrfLua::luaUtilInfo ( lua_State *  l)

@ Functions for printing a message on the VRF entity's object console

int vrfLua::luaUtilVerbose ( lua_State *  l)

@ Functions for printing a message on the VRF entity's object console

int vrfLua::luaUtilWarn ( lua_State *  l)

@ Functions for printing a message on the VRF entity's object console

int vrfLua::luaUtilError ( lua_State *  l)

@ Functions for printing a message on the VRF entity's object console

int vrfLua::luaUtilDebug ( lua_State *  l)

@ Functions for printing a message on the VRF entity's object console

int vrfLua::luaUtilGetVRFExerciseTime ( lua_State *  l)

Global function used by some of these functions - This should really be in a class.

int vrfLua::luaVRFRadioSendTextMessage ( lua_State *  l)
int vrfLua::luaGetVrfObjects ( lua_State *  l)
int vrfLua::luaGetVrfObjectByName ( lua_State *  l)
int vrfLua::luaGetVrfObjectByGlobalId ( lua_State *  l)
int vrfLua::luaGetVisibleVrfObjectList ( lua_State *  l)
int vrfLua::luaAddSubordinate ( lua_State *  l)
int vrfLua::luaRemoveSubordinate ( lua_State *  l)
int vrfLua::luaGetTerrainElevation ( lua_State *  l)
int vrfLua::luaQueryLineOfSight ( lua_State *  l)
static void vrfLua::setLocationRequestCallack ( DtSimMessage msg,
void *  usrData 
) [static]

static callback used for "set location request" radio message

static void vrfLua::textRadioMessageCallback ( DtSimMessage msg,
void *  usrData 
) [static]

static callback used for "text report" radio message

int vrfLua::parseTableKeyValsToBuffer ( lua_State *  state,
int  tableIndex,
char *  cursor,
unsigned int  length 
)

internal function for saving lua globals

Returns:
the number of bytes written to "cursor" buffer
int vrfLua::saveLuaScriptGlobals ( lua_State *  state,
char *  buffer,
unsigned int  bufferLength 
)

Serializes the scripts globals in a character buffer.

char* vrfLua::loadLuaScriptGlobals ( lua_State *  state,
const char *  buffer,
int  tableIndex 
)

Loads the scripts globals from a character buffer.

int vrfLua::luaVRFTask_Template ( lua_State *  L,
DtTaskCommandCreationFcn  taskCreationFcn 
)

Template functions used to factor out common code among all the VRF task and set lua commands.

int vrfLua::luaVRFSet_Template ( lua_State *  L,
DtSetCommandCreationFcn  setCreationFcn 
)
DtSimTask* vrfLua::createDisembarkTask ( lua_State *  L,
DtVrfObject vrfObject 
)

VRF Task/set creation functions.

DtSimTask* vrfLua::createDisembarkAllTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createEmbarkOnTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFireAtTargetTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFireCruiseMissileTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFireForEffectOnEntityTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFireForEffectOnLocationTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFireForEffectOnTargetTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createFollowEntityTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createInterceptAndDestroyTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createMoveAlongRouteTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createMoveToLocationTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createMoveToWaypointTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createPatrolBetweenTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createPatrolAlongRouteTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createSendTextMessageTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createTurnToHeadingTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createUserTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createWaitTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createWaitDurationTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createWaitElapsedTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createTaskFromName ( const char *  taskName,
lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createSendRadioTask ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSimTask* vrfLua::createSendRadioSet ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createDestroyedSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createDisembarkedSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createEmbarkedSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createHeadingSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createLocationSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createOrderedSpeedSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createPostureSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createRestoreSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createSpotReportsSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createTargetSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createWeaponStateSetCommand ( lua_State *  L,
DtVrfObject vrfObject 
)
DtSetDataRequest* vrfLua::createSetFromName ( const char *  setName,
lua_State *  L,
DtVrfObject vrfObject 
)
int vrfLua::luaVRFIsEmbarkedOn ( lua_State *  L)

VRF lua Task commands.

VRF lua extra commands.

int vrfLua::luaVRFTask_Disembark ( lua_State *  L)
int vrfLua::luaVRFTask_DisembarkAll ( lua_State *  L)
int vrfLua::luaVRFTask_EmbarkOn ( lua_State *  L)
int vrfLua::luaVRFTask_FireAtTarget ( lua_State *  L)
int vrfLua::luaVRFTask_FireCruiseMissile ( lua_State *  L)
int vrfLua::luaVRFTask_FollowEntity ( lua_State *  L)
int vrfLua::luaVRFTask_MoveAlongRoute ( lua_State *  L)
int vrfLua::luaVRFTask_MoveToLocation ( lua_State *  L)
int vrfLua::luaVRFTask_MoveToWaypoint ( lua_State *  L)
int vrfLua::luaVRFTask_PatrolBetween ( lua_State *  L)
int vrfLua::luaVRFTask_PatrolAlongRoute ( lua_State *  L)
int vrfLua::luaVRFTask_SendRadioSet ( lua_State *  L)
int vrfLua::luaVRFTask_SendRadioTask ( lua_State *  L)
int vrfLua::luaVRFTask_SendTextMessage ( lua_State *  L)
int vrfLua::luaVRFTask_TurnToHeading ( lua_State *  L)
int vrfLua::luaVRFTask_UserTask ( lua_State *  L)
int vrfLua::luaVRFTask_Wait ( lua_State *  L)
int vrfLua::luaVRFTask_WaitDuration ( lua_State *  L)
int vrfLua::luaVRFTask_WaitElapsed ( lua_State *  L)
int vrfLua::luaVRFSet_Altitude ( lua_State *  L)

VRF lua Set commands.

int vrfLua::luaVRFSet_Destroyed ( lua_State *  L)
int vrfLua::luaVRFSet_Disembarked ( lua_State *  L)
int vrfLua::luaVRFSet_DIGuyAnimation ( lua_State *  L)
int vrfLua::luaVRFSet_DIGuyAppearance ( lua_State *  L)
int vrfLua::luaVRFSet_Embarked ( lua_State *  L)
int vrfLua::luaVRFSet_Heading ( lua_State *  L)
int vrfLua::luaVRFSet_Location ( lua_State *  L)
int vrfLua::luaVRFSet_OrderedSpeed ( lua_State *  L)
int vrfLua::luaVRFSet_Posture ( lua_State *  L)
int vrfLua::luaVRFSet_Restore ( lua_State *  L)
int vrfLua::luaVrfSet_RulesOfEngagement ( lua_State *  L)
int vrfLua::luaVRFSet_SpotReports ( lua_State *  L)
int vrfLua::luaVRFSet_Target ( lua_State *  L)
int vrfLua::luaVRFSet_WeaponState ( lua_State *  L)
int vrfLua::luaVRFIsDestroyed ( lua_State *  L)
int vrfLua::luaVRFIsTasked ( lua_State *  L)
int vrfLua::luaVRFIsLocal ( lua_State *  L)
int vrfLua::luaVRFIsVrfSimulatedObject ( lua_State *  L)
int vrfLua::luaVRFIsExecutingPlan ( lua_State *  L)
int vrfLua::luaUtilGetVRFObjectPosition ( lua_State *  l)

Get State Repository information.

int vrfLua::luaVRFGetObjectName ( lua_State *  L)
int vrfLua::luaVRFGetObjectLabel ( lua_State *  L)
int vrfLua::luaVRFGetOverlayParent ( lua_State *  L)
int vrfLua::luaVRFGetEntityIdentifier ( lua_State *  L)
int vrfLua::luaVRFGetEntityType ( lua_State *  L)
int vrfLua::luaVRFGetExtent ( lua_State *  L)
int vrfLua::luaVRFGetHeading ( lua_State *  L)
int vrfLua::luaVRFGetVelocity ( lua_State *  L)
int vrfLua::luaVRFGetOrderedSpeed ( lua_State *  L)
int vrfLua::luaVRFGetRotationalVelocity ( lua_State *  L)
int vrfLua::luaVRFGetAcceleration ( lua_State *  L)
int vrfLua::luaUtilSetVRFObjectPosition ( lua_State *  l)

Set Commands.

int vrfLua::luaVRFSetIsDestroyed ( lua_State *  L)
int vrfLua::luaVRFSetObjectName ( lua_State *  L)
int vrfLua::luaVRFSetObjectLabel ( lua_State *  L)
int vrfLua::luaVRFSetOverlayParent ( lua_State *  L)
int vrfLua::luaVRFSetEntityIdentifier ( lua_State *  L)
int vrfLua::luaVRFSetEntityType ( lua_State *  L)
int vrfLua::luaVRFSetHeading ( lua_State *  L)
int vrfLua::luaVRFSetVelocity ( lua_State *  L)
int vrfLua::luaVRFSetOrderedSpeed ( lua_State *  L)
int vrfLua::luaVRFSetRotationalVelocity ( lua_State *  L)
int vrfLua::luaVRFSetAcceleration ( lua_State *  L)
int vrfLua::luaVRFGetVertexes ( lua_State *  L)

Vertex Commands.

int vrfLua::luaVRFAddVertex ( lua_State *  L)
int vrfLua::luaVRFRemoveVertex ( lua_State *  L)

Variable Documentation

const int vrfLua::LUA_EXECUTION_OK = 0 [static]

Error codes.

const int vrfLua::LUA_ERROR_BAD_PARAMETERS = -1 [static]
const int vrfLua::LUA_ERROR_EXECUTION_FAILURE = -2 [static]
const int vrfLua::LUA_ERROR_INVALID_ENTITY = -3 [static]
const int vrfLua::LUA_ERROR_UNKNOWN_LUA_MANAGER = -4 [static]
const int vrfLua::LUA_ERROR_REMOTE_ENTITY = -5 [static]
const char vrfLua::DtLuaScriptControllerType[] = "lua-script-controller"

String which uniquely identifies this controller.

const char vrfLua::DtScriptPSRType[] = "script-psr-type"

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)