|
| virtual | ~DtLuaScriptInterfaceImpl () |
| |
| virtual void | init () |
| | Derived class inits may do things, so init should always be called. More...
|
| |
| virtual DtString | type () const |
| | Script engine type. More...
|
| |
| virtual bool | invokeInit () |
| |
| virtual void | invokeSuspend () |
| |
| virtual bool | invokeResume () |
| |
| virtual void | invokeTick () |
| | This will be called by the parent to invoke the script tick. More...
|
| |
| virtual bool | invokeCheck () |
| |
| virtual void | invokeCheckInit () |
| |
| virtual void | invokeShutdown () |
| |
| virtual void | invokeDisable () |
| | Only called for reactive tasks which can be enabled but not active. More...
|
| |
| virtual bool | loadScript (bool reload) |
| | This will be called by the parent to let the interface know when to load the script. More...
|
| |
| virtual void | setLuaState (lua_State *L) |
| |
| virtual lua_State * | getLuaState () |
| |
| virtual std::string | dumpLuaStack () const |
| |
| virtual int | luaStackSize () const |
| |
| virtual void | collectGarbage () |
| |
| virtual DtReaderWriter * | saveState () |
| | Called when the scenario is saved. More...
|
| |
| virtual bool | loadState (const DtReaderWriter *loadState) |
| | Called when the scenario is loaded. More...
|
| |
| virtual void | processClearForReuse () |
| | This function should be overridden by the inheritor to clear out any task specific variables. More...
|
| |
| virtual bool | initializeVRFLuaExtensions (lua_State *L) |
| |
| virtual bool | importTaskParams (lua_State *L) |
| |
| virtual bool | importSetParams (lua_State *L) |
| | Same as importTaskParameters, except puts in lua block "setParameters". More...
|
| |
| virtual luabind::object | createLuaTableFromRegistry (lua_State *L, const DtReaderWriterRegistry &rwRegistry, bool requireMetadata=true, bool hasParamMetaData=true) |
| | Converts a readerWriter registry into a lua table. More...
|
| |
| void | luaEndTask (bool success) |
| | Admin functions called from Lua. More...
|
| |
| void | luaEndSet () |
| |
| void | luaSendReportWithoutRecipients (const ::std::string reportType, luabind::object const ¶meters) |
| | Send a DtSimReport subclass to the network (e.g. DtSpotReport) More...
|
| |
| void | luaSendReport (const ::std::string reportType, luabind::object const &reciptients, luabind::object const ¶meters) |
| |
| int | luaSendTask (DtScriptVrfObject &object, const ::std::string taskName, luabind::object const ¶meters) |
| | Send task to another entity. More...
|
| |
| int | luaSendTaskActAsSubtask (DtScriptVrfObject &object, const ::std::string taskName, luabind::object const ¶meters, bool actAsSubtask) |
| |
| int | luaSendRadioTask (DtScriptVrfObject &object, const ::std::string taskName, luabind::object const ¶meters) |
| |
| int | luaSendRadioTaskActAsSubtask (DtScriptVrfObject &object, const ::std::string taskName, luabind::object const ¶meters, bool actAsSubtask) |
| |
| int | luaSendTaskActAsSubtaskWithRadio (DtScriptVrfObject &object, const ::std::string taskName, luabind::object const ¶meters, bool actAsSubtask, bool sendWithRadio) |
| |
| void | luaStopAllTasks () |
| | Stops all tasks started by this task. More...
|
| |
| void | luaSendSetDataToSelf (const ::std::string setName, luabind::object const ¶meters) |
| | Send a set-data message to self. More...
|
| |
| void | luaSendSetData (DtScriptVrfObject &object, const ::std::string setName, luabind::object const ¶meters) |
| | Send a set-data message to another entity. More...
|
| |
| void | luaSendRadioSetData (DtScriptVrfObject &object, const ::std::string setName, luabind::object const ¶meters) |
| |
| void | sendSetDataWithRadio (DtScriptVrfObject &object, const ::std::string setName, luabind::object const ¶meters, bool useRadio) |
| |
| bool | luaIsTaskAvailable (const ::std::string taskName) |
| |
| bool | luaIsSetAvailable (const ::std::string setName) |
| |
| luabind::object | luaGetReactionStatus () |
| | Provide current reaction status to lua scripts. More...
|
| |
| luabind::object | luaGetOrbatList () |
| | Returns a table of all ORBAT items and their information. More...
|
| |
| std::string | luaGetScriptId () |
| | Provide the current script ID to lua scripts. More...
|
| |
| std::string | luaGetSystemName () |
| | Provide the current system name to lua scripts. More...
|
| |
| luabind::object | luaGetObjectsNear (const DtLocation3D &loc, double distance) |
| |
| luabind::object | luaGetObjectsNearWithFilter (const DtLocation3D &loc, double distance, luabind::object const ¶meters) |
| |
| luabind::object | luaGetScriptAttribute (const std::string &attributeName, bool &error) |
| |
| luabind::object | luaGetVrfObjects () |
| | Returns a list of all scripted objects. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | generateRandomPoints (const luabind::object ¶meters) |
| | Generates random points on the terrain using NavData. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | findNearbyPointOfInterest (const int type) |
| | Find a nearby point in the NavData with the given type. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | findCoverPoint (const DtLocation3D &startLocation, const DtLocation3D &threatLocation, double threatRadius, double distanceFromThreat, double range, unsigned numberOfPoints) |
| | Find nearby points of cover from the given threat location. More...
|
| |
| luabind::object | findLadders (lua_State *L, const DtLocation3D &startLocation, double range) |
| | Find nearby ladders from the given location/range. More...
|
| |
| luabind::object | findLaddersWithId (lua_State *L, const DtLocation3D &startLocation, double range, const unsigned int id) |
| | Find nearby ladders from the given location/range. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | findPathToLocation (const DtLocation3D &startLocation, const DtLocation3D &destinationLocation, bool useAbstractGraphs, const DtLocation3D &avoidLocation, double avoidanceRadius) |
| | Find the best path to the given location. More...
|
| |
| DtTranslatableStream | translateStringFromScript (const std::string &format) |
| | Returns a translatable object that can be used to send translated messages. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | luaNavigateThroughFeatures (const luabind::object ¶meters) |
| | Returns an async job object which will produce a path (set of points) from the input points. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | getEmbarkationSlots (DtScriptVrfObject &object) |
| | Queries embarkation slot information for the specified entity. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | reserveEmbarkationSlot (DtScriptVrfObject &object, int slotNumber) |
| | Reserves an embarkation slot on the specified entity. More...
|
| |
| boost::shared_ptr< DtLuaAsyncJob > | getEmbarkationEgressPoints (DtScriptVrfObject &object) |
| | Queries embarkation egress point information for the specified entity. More...
|
| |
| void | luaSendMessage (const DtScriptVrfObject &receiver, const std::string &message) |
| |
| void | luaSendRadioMessage (const DtScriptVrfObject &receiver, const std::string &message) |
| |
| void | luaDeleteObject (std::string const &receiver) |
| |
| void | luaDeleteScriptObject (const DtScriptVrfObject &receiver) |
| |
| void | luaSendObjectMessage (const DtScriptVrfObject &receiver, const std::string &messageType, const luabind::object &messageContents) |
| |
| void | luaSendRadioObjectMessage (const DtScriptVrfObject &receiver, const std::string &messageType, const luabind::object &messageContents) |
| |
| void | luaRegisterForObjectMessage (const std::string &messageType) |
| |
| void | luaUnregisterForObjectMessage (const std::string &messageType) |
| |
| void | processObjectMessage (const DtVrfObjectMessage *msg) |
| |
| virtual void | processTextReport (const DtVrfObjectMessage *m) |
| |
| void | luaSendInfluence (const DtScriptVrfObject &target, const std::string &influenceName, luabind::object const &influenceParams) |
| |
| virtual void | processInfluence (DtInfluenceInteractionExtension *m) |
| |
| virtual void | processEntityDestroyed () |
| | Performs processing that should occur when the entity is destroyed. More...
|
| |
| virtual std::vector< DtLocation3D > | luaMakeOffsetPoints (luabind::object const &fromPoints, const DtVectorOffset3D &offset) |
| | Creates a table of Location3D objects that are offset from another table of points. More...
|
| |
| void | luaCreateSelectionGroup (const std::string &name, luabind::object const ¶meters) |
| | Creates a new selection group containing the specified sim objects. More...
|
| |
| void | luaFinishTest (const int status, const std::string message) |
| | Support for automated testing. More...
|
| |
| bool | luaUpdateTaskVisualization (const std::string &visualizationName, const std::string &visualizationType, luabind::object const ¶meters) |
| | Updates (creating if necessary) a new task visualization. More...
|
| |
| void | luaDeleteTaskVisualization (const std::string &visualizationName) |
| | Deletes an existing task visualization. More...
|
| |
| void | luaRequire (lua_State *L, const std::string &filename) |
| | Loads an runs a Lua library. More...
|
| |
| bool | luaIntersectSegments2D (const DtLocation3D &p1, const DtLocation3D &p2, const DtLocation3D &p3, const DtLocation3D &p4, DtLocation3D &intersectPoint) |
| |
| virtual void | addPostSetDataCallback (const std::string &setDataType, const std::string &functionName) |
| |
| virtual void | removePostSetDataCallback (const std::string &setDataType, const std::string &functionName) |
| |
| virtual void | invokePostSetDataCallback (DtScriptFunctionReferencePtr functionReference, DtSetDataRequestMessage *setDatRequest) |
| | Invokes a post set data callback for a lua script. More...
|
| |
| virtual luabind::object | luaGetParamPropertyFromType (const std::string typeString, std::string const ¶mName) |
| | Returns an object containing the value of the requested parameter property. More...
|
| |
| virtual void | putObjectsFromTableIntoGlobalTable (lua_State *state, luabind::object &table) |
| | Old state load into/from global table. More...
|
| |
| virtual void | putObjectsFromGlobalTableIntoTable (lua_State *state, luabind::object &table) |
| |
| virtual luabind::object | luaGetSubordinateFunctionNames () |
| | Returns a a table of subordinate function handles and display text, e.g. { HANDLE1 = "First Function" }. More...
|
| |
| virtual luabind::object | luaGetParameterSubordinateFunctionsFromType (const std::string typeString) |
| | Returns a table in the form {{<ENTITY-TYPE>,<FUNCTION-HANDLE>}}. More...
|
| |
|
| virtual void | luaPlayScenarioEvent (DtScriptVrfObject eventName) |
| | Global functions that have Lua-specific dependencies. More...
|
| |
| virtual void | luaStopScenarioEvent (DtScriptVrfObject eventName) |
| |
| virtual void | luaStopScenarioEventWithRewind (DtScriptVrfObject eventName, bool rewind) |
| |
| virtual bool | luaIsScenarioEventPlaying (DtScriptVrfObject eventName) |
| |
| virtual void | luaSetScenarioEventEnabled (DtScriptVrfObject eventName, bool) |
| |
| virtual bool | luaIsScenarioEventEnabled (DtScriptVrfObject eventName) |
| |
|
| virtual int | luaSendEmbeddedEntityTask (std::string eeName, std::string taskName, luabind::object const &parms) |
| | Task/set forwarding for embedded entities. More...
|
| |
| virtual int | luaSendEmbeddedEntityTaskActAsSubtask (std::string eeName, std::string taskName, luabind::object const &parms, bool actAsSubtask) |
| |
| virtual int | luaSendEmbeddedEntitySet (std::string eeName, std::string setName, luabind::object const &parms) |
| | Send a set-data message to an Embedded Entity, implicitly deploying it if necessary. More...
|
| |
|
| int | luaStartSubtask (const std::string taskName, luabind::object const ¶meters) |
| | Subtasking related functions called from Lua. More...
|
| |
| void | luaStopSubtask (int subtaskId) |
| |
| void | luaStopAllSubtasks () |
| | Stops all subtasks that were started by this task. More...
|
| |
| bool | luaIsSubtaskRunning (int subtaskId) |
| |
| bool | luaIsSubtaskComplete (int subtaskId) |
| |
| bool | luaIsSubtaskCanceled (int subtaskId) |
| |
| bool | luaSubtaskResult (int subtaskId) |
| |
| void | luaCleanupInactiveSubtaskStatus () |
| | Clears out the subtask entries for any subtasks started by this task which are either complete or canceled. More...
|
| |
|
| luabind::object | luaGetDesignatorsNearWithFilter (const DtLocation3D &loc, double distance, const luabind::object ¶ms) |
| | Routes for accessing laser designators. More...
|
| |
| luabind::object | luaGetDesignatorsNear (const DtLocation3D &loc, double distance) |
| |
|
| DtLuaFeatureSet | luaGetFeaturesWithinArea (luabind::object const &points, luabind::object const &attributes) |
| | Routines to query and return feature sets. More...
|
| |
| DtLuaFeatureSet | luaGetFeaturesWithinAreaNoAttributes (luabind::object const &points) |
| | Returns a feature set which contains all features within the specified geometry regardless of attributes. More...
|
| |
| DtLuaFeatureSet | luaGetFeaturesWithinRange (const DtLocation3D &, double range, luabind::object const &attributes) |
| | Returns a feature set which contains all features within the specified point and box size containing the specified attributes. More...
|
| |
| DtLuaFeatureSet | luaGetFeaturesWithinRangeNoAttributes (const DtLocation3D &, double range) |
| | Same as luaGetFeaturesWithinRange except returns all features regardless of attributes. More...
|
| |
| DtLuaFeatureSet | luaGetFeaturesType (const std::string &type) |
| | Returns all features which match a specific feature query. More...
|
| |
| DtLuaFeatureSet | luaGetFeatures () |
| | Returns all features. More...
|
| |
|
| DtLuaFeatureGeometry | luaMakePointGeometry (const DtLocation3D &) |
| | Routines to generate feature geometries. More...
|
| |
| DtLuaFeatureGeometry | luaMakePathGeometry (luabind::object const &table) |
| | Generate a path (linear) geometry. More...
|
| |
| DtLuaFeatureGeometry | luaMakeAreaGeometry (luabind::object const &table) |
| | Generate an areal geometry. More...
|
| |
|
| luabind::object | luaGetCloudLayerDescriptionsAt (lua_State *L, const DtLocation3D &location) |
| | Cloud layer accessors/mutators. See code or lua documentation for more specifics. More...
|
| |
|
| virtual double | luaGetIllumination (DtScriptVrfObject &object) |
| |
| virtual double | luaGetExpectedIllumination (DtScriptVrfObject &object, double dateAndTimeOfDay) |
| |
| virtual double | luaGetSnowAccumulationByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetSnowRoadAccumulationByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetRainAccumulationByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetAirTemperatureByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetAirPressureByLocation (const DtLocation3D &object) |
| |
| virtual unsigned int | luaGetPrecipitationByLocation (const DtLocation3D &location, double *) |
| |
| virtual double | luaGetPrecipitationIntensityByLocation (const DtLocation3D &object) |
| |
| virtual unsigned int | luaGetPrecipitationTypeByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetVisibilityDistanceByLocation (const DtLocation3D &object) |
| |
| virtual int | luaGetVisibilityObscurantByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetWindDirectionByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetWindSpeedByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetUnderwaterVisibilityByLocation (const DtLocation3D &object) |
| |
| virtual unsigned int | luaGetSwellStateByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetSwellStateDirectionByLocation (const DtLocation3D &object) |
| |
| virtual unsigned int | luaGetSeaStateByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetSeaStateDirectionByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetSurgeDepthByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetIlluminationByLocation (const DtLocation3D &object) |
| |
| virtual double | luaGetExpectedIlluminationByLocation (const DtLocation3D &object, double dateAndTimeOfDay) |
| |
|
| virtual double | luaRunDurationTime () |
| |
| virtual void | luaRunForDuration (double) |
| |
| virtual void | luaStopSimulationDurationTimer () |
| |
|
| virtual void | luaSetCheckpointMode (bool) |
| |
| virtual void | initializeCheckpointStateTable (lua_State *L) |
| |
| virtual int | luaAskUserQuestion (const DtTranslatableStream &title, const DtTranslatableStream &message, luabind::object const &options, int displayFlags) |
| |
| virtual int | luaAskUserQuestionST (const std::string &title, const DtTranslatableStream &message, luabind::object const &options, int displayFlags) |
| |
| virtual int | luaAskUserQuestionTS (const DtTranslatableStream &title, const std::string &message, luabind::object const &options, int displayFlags) |
| |
| virtual int | luaAskUserQuestionSS (const std::string &title, const std::string &message, luabind::object const &options, int displayFlags) |
| |
| virtual int | luaStatusOfUserQuestion (int questionId) |
| | Returns the status of the user question: -1 - Not yet answered 0+ - Answered and the option the user selected. More...
|
| |
| virtual void | luaCancelUserQuestion (int questionId) |
| | Cancels the question asked of the user. More...
|
| |
| DtScriptVrfObject | luaCreateEntity (luabind::object const ¶meters) |
| | Create an entity. More...
|
| |
| DtScriptVrfObject | luaCreateFromOrbat (std::string orbatItem, const DtLocation3D &loc) |
| | Create an object from the ORBAT. More...
|
| |
| DtScriptVrfObject | luaCreateTacticalGraphic (luabind::object const ¶meters) |
| | Create a tactical graphic. Must specify name or type. More...
|
| |
| DtScriptVrfObject | luaCreateObstacle (luabind::object const ¶meters) |
| | Create an obstacle. More...
|
| |
| DtScriptVrfObject | luaCreateRoute (luabind::object const ¶meters) |
| | Create a route. More...
|
| |
| DtScriptVrfObject | luaCreateArea (luabind::object const ¶meters) |
| | Create an area. More...
|
| |
| DtScriptVrfObject | luaCreateWaypoint (luabind::object const ¶meters) |
| | Create a waypoint. More...
|
| |
| DtScriptVrfObject | luaCreatePhaseLine (luabind::object const ¶meters) |
| | Creates a phase line. More...
|
| |
|
| unsigned | luaBitwiseOr (unsigned val1, unsigned val2) |
| |
| unsigned | luaBitwiseAnd (unsigned val1, unsigned val2) |
| |
| unsigned | luaBitwiseXor (unsigned val1, unsigned val2) |
| |
| unsigned | luaBitwiseNot (unsigned val) |
| |
| unsigned | luaBitwiseLeftShift (unsigned val, unsigned shift) |
| |
| unsigned | luaBitwiseRightShift (unsigned val, unsigned shift) |
| |
| virtual | ~DtScriptInterface () |
| |
| virtual void | setTaskId (int taskId) |
| |
| virtual int | taskId () const |
| |
| virtual void | setScriptId (const DtString &scriptId) |
| |
virtual const
DtGenericMessageType & | scriptId () const |
| |
| virtual void | setSystemName (const DtString &system) |
| |
| virtual const DtString & | systemName () const |
| |
| virtual void | setScriptPath (const DtFilename &scriptPath) |
| |
| virtual const DtFilename & | scriptPath () const |
| |
| virtual void | setEntity (DtVrfObject *entity) |
| |
| virtual DtVrfObject * | entity () const |
| |
| virtual void | setTaskVariables (const DtRwVariableBindings &variables) |
| |
virtual const
DtRwVariableBindings & | taskVariables () const |
| |
| virtual bool | updateTaskVariables () |
| |
| virtual void | setTaskStarting (bool v) |
| |
| virtual bool | taskStarting () const |
| |
| virtual void | setController (DtScriptTaskControllerInterface *controller) |
| |
virtual
DtScriptTaskControllerInterface * | controller () |
| |
| virtual double | getTerrainAltitude (const double lat, const double lon, bool &dataAvailable, std::string &surface) const |
| | Gets the terrain height at the given location. More...
|
| |
| virtual double | getTerrainAltitudeBelow (const DtLocation3D &point, bool &available, std::string &surfaceString) const |
| | Same as getTerrainAltitude, but gets the terrain below the input point, not the highest terrain at the xy of the input point. More...
|
| |
| virtual double | getGroundAltitude (const double lat, const double lon, bool &isWater, bool &dataAvailable) |
| | Gets the height of the ground at the given location. More...
|
| |
| virtual void | chordIntersectionDebug (const DtLocation3D &startLoc, const DtLocation3D &endLoc) |
| | Script function for debugging chord-terrain intersections. More...
|
| |
| virtual bool | doesChordHitTerrain (const DtLocation3D &pt1, const DtLocation3D &pt2, bool &dataAvailable) const |
| | Determines if the chord formed by (point1, point2) intersects the terrain. More...
|
| |
| bool | chordIntersectsTerrain (const DtLocation3D &pt1, const DtLocation3D &pt2, bool &dataAvailable, DtLocation3D &intersection) const |
| | Like chordIntersectsTerrain() Returns boolean if terrain is blocked. More...
|
| |
| virtual DtLocation3D | findClosestPointInNavigationArea (const DtLocation3D &point, bool &error) const |
| | These functions wrap the navArea findInsidePositionFromOutsidePosition. More...
|
| |
| virtual DtLocation3D | findClosestPointInNavigationAreaInRadius (const DtLocation3D &point, const double radius, bool &error) const |
| |
| virtual DtLocation3D | findClosestPointInNavigationAreaInRadiusAndVertLimit (const DtLocation3D &point, const double radius, const double verticalLimit, bool &error) const |
| |
| bool | findFarthestPositionAlongHeading (const DtLocation3D &point, const double heading, const double maxDistance, DtLocation3D &stopPoint, double &distanceReached) const |
| | Wraps findFarthestPositionAlongHeading for nav area. More...
|
| |
| virtual DtLocation3D | findClosestPointToRoad (const DtLocation3D &point, double searchRadius, bool &dataAvailable, bool &success, DtLocation3D &endA, DtLocation3D &endB, double &offsetToOutsideLane) const |
| |
| virtual std::list< std::string > | getDynamicTerrainFeatureChangeTypes (const DtLocation3D &location, double radius, bool &dataVailable) |
| | Returns a list of the dynamic terrain feature change types in the specified area. More...
|
| |
| virtual std::list< DtLocation3D > | getDynamicTerrainFeatureLocationsForChangeType (const std::string &changeType, const DtLocation3D &location, double radius, bool &dataVailable) |
| | Returns a list of the locations of dynamic terrain features with the given change type in the specified area. More...
|
| |
| virtual std::list< std::string > | getDynamicTerrainFeatureValuesForChangeType (const std::string &changeType, const DtLocation3D &location, double radius, bool &dataVailable) |
| | Returns a list of the possible values for the given change type for dynamic terrain features in the specified area. More...
|
| |
| virtual void | changeDynamicTerrain (const std::string &changeType, const std::string &changeValue, const DtLocation3D &location, double radius) |
| | Causes the given change at the specified area of the terrain. More...
|
| |
| bool | forcesHostile (std::string force1, std::string force2) |
| |
| std::list< std::string > | entityTypesForEquipment (const std::string &equipmentType) |
| | Looks in the vrfParameterDb for types that have a Primary-Equipment parameter property matching the given equipment type, and returns them in a list. More...
|
| |
| virtual double | gaussian () |
| | Returns a number drawn from a standard Gaussian distribution. More...
|
| |
| virtual void | setTaskResuming (bool v) |
| | Flag indicating if the task is resuming from a suspended state. More...
|
| |
| virtual bool | taskResuming () const |
| |
| virtual void | setIsBackgroundProces (bool isBgProc) |
| | Flag indicating if this task is a background process. More...
|
| |
| virtual bool | isBackgroundProcess () const |
| |
| virtual void | setIsSet (bool isSet) |
| | Flag indicating if this a set process. More...
|
| |
| virtual bool | isSet () const |
| |
| double | scriptGetExerciseTime () |
| | Methods that are available for any script to use. More...
|
| |
| int | scriptGetApplicationId () |
| |
| double | scriptGetSimulationTime () |
| |
| double | scriptGetTimeMultiplier () |
| |
| double | scriptGetTimeOfDay () |
| |
| double | scriptGetDateAndTimeOfDay () |
| |
| double | scriptGetWindSpeed () |
| | Returns wind speed in meters/second. More...
|
| |
| double | scriptGetWindDirection () |
| | Returns wind direction in radians. More...
|
| |
| double | scriptGetMagneticDeclination (const DtLocation3D &location) |
| | Returns magnetic declination in radians. More...
|
| |
| DtScriptVrfObject | scriptGetVrfObjectByName (const std::string name) |
| |
| DtScriptVrfObject | scriptGetVrfObjectByUUID (const std::string name) |
| |
| void | printError (const std::string message) |
| |
| void | printErrorToChannel (const std::string channel, const std::string message) |
| |
| void | printErrorTranslatableStream (const DtTranslatableStream &message) |
| |
| void | printWarn (const std::string message) |
| |
| void | printWarnToChannel (const std::string channel, const std::string message) |
| |
| void | printWarnTranslatableStream (const DtTranslatableStream &message) |
| |
| void | printInfo (const std::string message) |
| |
| void | printInfoToChannel (const std::string channel, const std::string message) |
| |
| void | printInfoTranslatableStream (const DtTranslatableStream &message) |
| |
| void | printVerbose (const std::string message) |
| |
| void | printVerboseToChannel (const std::string channel, const std::string message) |
| |
| void | printVerboseTranslatableStream (const DtTranslatableStream &message) |
| |
| void | printDebug (const std::string message) |
| |
| void | printDebugToChannel (const std::string channel, const std::string message) |
| |
| void | printDebugTranslatableStream (const DtTranslatableStream &message) |
| |
| bool | entityTypeMatches (const std::string &, const std::string &) |
| |
| void | setTickPeriod (double) |
| | Tick management. Will store information in PSR of controller only. More...
|
| |
| void | setTickWhilePaused (bool) |
| | Enables or disables ticking when simulation is paused. More...
|
| |
| void | setRespondToNewSensorContacts (bool) |
| | Set tick on new sensor contact. More...
|
| |
| virtual void | addPostSetDataCallback (const DtSetMessageType &setDataType, DtScriptFunctionReferencePtr functionReference) |
| | Adds a callback to be invoked after the specified type of set data request is executed. More...
|
| |
| virtual void | removePostSetDataCallback (const DtSetMessageType &setDataType, DtScriptFunctionReferencePtr functionReference) |
| | Remove a callback invoked after the specified type of set data request is executed. More...
|
| |
| virtual void | clearPostSetDataCallbacks () |
| | Clear all post-set data request callbacks. More...
|
| |
| virtual void | processPostSetData (DtSimMessage *msg) |
| |
| virtual void | processPostTick () |
| |