VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f18/vehicleSim.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vl/exerciseConn.h>
13 #include <vl/reflectedEntityList.h>
14 #include <vl/entityPublisher.h>
16 #include <vl/topoView.h>
18 #include <vl/fireInteraction.h>
19 
21 
25 {
26 public:
27 
30  DtVehicleSim( double refLat, double refLon,
32  const DtEntityIdentifier& id, const DtEntityType& type,
33  const char* name, const char* markings,
34  const DtDeadReckonTypes alg, bool haveArtParts );
35 
37  virtual ~DtVehicleSim();
38 
40  virtual void init( DtConstVector initPos, double initSpeed,
41  double initHeading, double initTRadius,
42  double initPitch, bool autoRoll, double initRoll );
43 
45  virtual void simTick( DtTime dt );
46 
48  virtual void fireMunition( const DtGlobalObjectDesignator& tg );
49  virtual void fireMunition();
50  virtual void detonateMunition();
51  virtual void munitionTick();
52 
54  virtual void processDetonation( DtDetonationInteraction* inter );
55  virtual int checkDetonation( DtDetonationInteraction* inter );
56  virtual void reactToDamage();
57  virtual bool isDestroyed();
58  virtual DtTime timeDestroyed();
59 
61  virtual void toggleEmissions();
62  virtual void enableEmissions();
63  virtual void disableEmissions();
64  virtual void emissionsTick( double dt );
65 
66 public:
67 
68  static void setLethalDetonationRange( double range );
69  static void setMunitionFlightTime( DtTime time );
70 
71 protected:
72 
73  virtual void moveArtParts( DtTime dt );
74 
75 protected:
76 
77  static void theDetonationCb( DtDetonationInteraction*, void* );
78 
79 protected:
80 
88 
89  double mySpeed;
90  double myTurnRadius;
91  double myTurnRate;
92  double myScalarAccel;
93  double myBeamTime;
94 
100 
101  float myTurretAz;
103  float myGunElev;
105 
110 
113 
114 protected:
115 
118 
119 };

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)