VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
VR-Forces Back-end Examples

Table of Contents

VR-Forces comes with a number of code examples.

These examples can be useful as starting points for extending the VR-Forces back-end. See also VR-Forces Front-End (GUI) and Other Examples.

Plug-in Examples

Plug-in examples are dynamically linked libraries that are loaded using the GUI menu "Settings->Plugins" dialog.

Add Back-End Command Line Arguments via a Plug-inAdds new command-line arguments to the back-end command line.
Add Comm Model (addCommModel)Add a new communication model to control how radio messages are sent between entities.
Add Conditional (addConditionalSim)Add a new conditional expression to plan language. Related to front-end example Add Conditional.
Add FOM Class (addFomClassSim)Adds support for a new FOM class which can be mapped to a RPR FOM entity. Related to front-end example Add FOM Class.
Add Lua Function (addLuaFunction)Add a new bound function to be available in Lua scripts
Add Script VariableAdd a new scripted task variable used for scripted task, sets and recactive tasks. Related to front-end example Add Script Variable.
Add a new sensor propagator (addSensorPropagator)Add a new sensor propagator for calculating how to detect other entities
Add Set (Back-End) (addSetSim)Add a new set data request command. Related to front-end example Add Set.
Add Simulation Command (addSimCommandSim)Add a new simulation command. Related to front-end example Add Simulation Command.
Add Sim Component (Controller and Process State Repository) (addSimComponent)Add a new component and PSR (process state repository) for saving/restoring component's state
Add State Property (addStatePropertySim)Adds new state properties which are published to the network. Related to front-end example Add State Property.
Add Task (addTaskSim)Add a new task.
Importing/Exporting Scenarios from Different File Formats (csvScenarioImporterExporterSim)Add a new scenario import/export format for use with VR-Forces.
Decide to Give Up (decideToGiveUpTask)Give up a task based on user-defined criteria
displayStateDataDisplays state data in response to a console command tailored for a particular object. This is a HLA 1516 Evolved example only.
Encumbered Flight (Back-End) (addSetEncumbranceSim)Add a new set data request command to change the cargo weight of rotary wing aircraft.. Related to front-end example Encumbered Flight GUI.
State Repository Extension (extendStateRepository)Extend existing state repository classes through composition instead of subclassing
Event Manager TCP Connection (Event Manager Sim)Show how to send VR-Forces data interactions over TCP rather than the UDP connection. Related to front-end example Event Manager TCP GUI
Interface ContentSend an interface content message. Related to front-end example Interface Content.
Joystick ControllerCreates a new joystick enabled controller that shows how to add and configure a joystick enabled controller.
Meta Data Script Encrypt/Decrypt (metaDataEncryptDecrypt)Example of how to encrypt meta data language scripts.
Modify Sim Component (modifySimComponent)Modifies an actuator to apply different functionality to existing code
Object Manager Extension (objectManager)Subclass and install your own version of the object manager
Parallel Tick (parallelTick)Demonstrates how to write a thread safe component
Radar Warning (radarWarnRx)Add the ability to detect and react to a threat to an aircraft
Scenario Metrics (scenarioMetrics)Demonstrates how to export specific metrics to a text file. Also shows how to set up backend callbacks to collect those metrics.
Settings Manager Extension (settingsManagerSim)Demonstrates how to install your own settings manager
Simple Plan (simplePlan)Demonstrates how to construct and assign a simple plan to a pre-existing entity to execute.
TDL Message Extension (tdlMessagSim)Add a VRF TDL message to show which entity an object is tracking. Related to front-end example TDL Message.

Standalone Examples

Standalone examples are self-contained executables.

Simple CGF (simpleCGF)Simple application that loads a terrain, creates an entity, and gives the entity a task to perform

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)