This class processes the command line and reads the F18's mtl file.
#include <stdio.h>
, myInitialPosition( mySettings,
"initialPosition",
DtVector(0.0,0.0,-1230.0),
, myLispFileName( mySettings, "&lispFile", "f18.xml", "LISP File Name" )
, myDeadReckonAlgorithm( mySettings,
"deadReckonAlgorithm",
DtDrDrmRvw,
"Dead Reckon Algorithm",
, myInitialTurnRadius( mySettings, "initialTRadius", -250.0, "Initial Turn Radius",
, myInitialSpeed( mySettings, "initialSpeed", 40.0, "Initial Speed" )
, myEntityTypeString( mySettings, "entity&TypeStr", "1:2:225:1:9:0:0", "Entity Type String" )
, myMarkings( mySettings, "f18&Markings", "MAK-VRLink-F18", "F18 Markings" )
, myName( mySettings, "f18Name", "MaK-F18", "F18 Object Name" )
, myDestroyedToFinalDelay( mySettings, "&destroyedToFinalDelay", 20.0,
"Destroyed To Final Delay" )
, myInitialHeading( mySettings, "initial&Heading", 180.0, "Initial Heading" )
, myTopoOrigin( mySettings, "topo&Origin", "35.699760,-121.326577",
"Topographic Coordinate System Origin" )
, myWorldPosition( mySettings,
"worldPos",
DtVector(0.0,0.0,0.0),
, myLethalDetonationRange( mySettings, "lethalDetonationRange", 20.0, "Lethal Detonation Range",
, myMunitionFlightTime( mySettings, "munitionFlightTime", 3.0, "Munition Flight Time",
, myInitialPitch( mySettings, "initialPitch", 0.0, "Initial Pitch",
, myInitialRoll( mySettings, "initialRoll", 0.0, "Initial Roll",
, myAutoRoll( mySettings, "autoRoll", true, "Auto Roll",
, myEntityNumber( mySettings, "entNum", 1, "Entity Number",
, myHaveArtParts( mySettings, "haveArtParts", false, "Have Articulated Parts",
, myRefLatitude( mySettings, "refLatitude", 35.699760, "Reference Latitude",
, myRefLongitude( mySettings, "refLongitude", -121.326577, "Reference Longitude",
, myDeltaTime( mySettings, "deltaTime", 0.05, "Delta Time",
#ifdef DtHLA_1516_EVOLVED
, mySuppressDefaultModules( mySettings, "suppressDefaultModules", false, "Suppress Default Modules (HLA1516-2010 only)",
#endif
, myMtlAutoRoll( 1 )
#if DtHLA
, myConfigVarApplicationNumber(mySettings, "&appNumber", 2, "Application Number")
, mySiteId(mySettings, "&siteId", 1, "Site ID")
#endif
, myMtlHaveArtParts( 0 )
, myMtlInitialPosition( 0.0, 0.0, -1230.0 )
{
mySettings.setChangeOnce(true);
}
{
}
{
#if DtHLA
#endif
}
{
for (
int index = 1; index <
myArgc; ++index )
{
if ( ! strcmp(
myArgv[index],
"-l") || ! strcmp(
myArgv[index],
"--lispFile") )
{
if ( index + 1 < myArgc )
{
break;
}
}
}
{
posVec[2] = -posVec[2];
}
{
if ( numReads > 0 )
{
if ( numReads > 1 )
{
}
}
}
{
}
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
#ifdef DtHLA_1516_EVOLVED
void DtF18Initializer::setSuppressDefaultModules(bool onOff)
{
mySuppressDefaultModules.setValue(onOff);
}
bool DtF18Initializer::suppressDefaultModules()
{
return mySuppressDefaultModules.value();
}
#endif
{
}
#if DtHLA
{
}
{
}
{
}
{
}
#endif