VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
managedInterface/messages/fire.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
10 #pragma once
11 
13 
14 #include <string>
15 #include <matrix/vlVector.h>
16 #include <vlpi/entityType.h>
17 
18 
20 {
21 public:
22  enum FuzeType {FuzeType_OTHER=0, FuzeType_CONTACT=1000, FuzeType_CONTACTINSTANT=1100, FuzeType_CONTACTDELAYED=1200, FuzeType_TIMED=2000, FuzeType_PROXIMITY=3000, FuzeType_COMMAND=4000, FuzeType_ALTITUDE=5000, FuzeType_DEPTH=6000, FuzeType_ACOUSTIC=7000};
23  enum WarheadType {WarheadType_OTHER=0, WarheadType_HIGHEXPLOSIVE=1000, WarheadType_HIGHEXPLOSIVEPLATIC=1100, WarheadType_HIGHEXPLOSIVEINCENDIARY=1200, WarheadType_HIGHEXPLOSIVEFRAGMENTATION=1300, WarheadType_HIGHEXPLOSIVEANTITANK=1400, WarheadType_HIGHEXPLOSIVEBOMBLETS=1500, WarheadType_HIGHEXPLOSIVESHAPEDCHARGE=1600, WarheadType_SMOKE=2000, WarheadType_ILLUMINATION=3000, WarheadType_PRACTICE=4000, WarheadType_KINETIC=5000, WarheadType_UNUSED=6000, WarheadType_NUCLEAR=7000, WarheadType_CHEMICALGENERAL=8000, WarheadType_CHEMICALBLISTER=8100, WarheadType_CHEMICALBLOOD=8200, WarheadType_CHEMICALNERVE=8300, WarheadType_BIOLOGICALGENERAL=9000};
24 
25 
26 
27 
28  FireMessage();
29  virtual ~FireMessage();
30 
31  virtual std::string getFiringId();
32  virtual void setFiringId(std::string val);
33 
34  virtual std::string getTargetId();
35  virtual void setTargetId(std::string val);
36 
37  virtual std::string getMunitionId();
38  virtual void setMunitionId(std::string val);
39 
40  virtual DtVector getWorldPosition();
41  virtual void setWorldPosition(DtVector val);
42 
43  virtual DtVector32 getVelocity();
44  virtual void setVelocity(DtVector32 val);
45 
46  virtual double getRange();
47  virtual void setRange(double val);
48 
49  virtual int getEventId();
50  virtual void setEventId(int val);
51 
52  virtual unsigned int getFireMissionIndex();
53  virtual void setFireMissionIndex(unsigned int val);
54 
55  virtual DtEntityType getMunitionType();
56  virtual void setMunitionType(DtEntityType val);
57 
58  virtual FuzeType getFuzeType();
59  virtual void setFuzeType(FuzeType val);
60 
61  virtual WarheadType getWarheadType();
62  virtual void setWarheadType(WarheadType val);
63 
64  virtual int getQuantity();
65  virtual void setQuantity(int val);
66 
67  virtual int getRate();
68  virtual void setRate(int val);
69 
70 
71 
72  virtual int messageSize();
73 
74  static DtMessage* decode(unsigned char* buffer, int length);
75  static std::string theMessageName();
76 
77 protected:
78  static std::string theFullName;
79 
80  std::string myFiringId;
81  std::string myTargetId;
82  std::string myMunitionId;
85  double myRange;
86  int myEventId;
87  unsigned int myFireMissionIndex;
92  int myRate;
93 
94  virtual void serialize(DtStreamWriter& writer);
95  virtual void deserialize(DtStreamReader& reader);
96 };
double myRange
Definition: managedInterface/messages/fire.h:85
int myRate
Definition: managedInterface/messages/fire.h:92
FuzeType
Definition: managedInterface/messages/fire.h:22
unsigned int myFireMissionIndex
Definition: managedInterface/messages/fire.h:87
Contains the DtEntityType and DtRadioEntityType class declarations.
virtual int messageSize()
this function needs to be in each derived class for decoding
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
WarheadType myWarheadType
Definition: managedInterface/messages/fire.h:90
FuzeType myFuzeType
Definition: managedInterface/messages/fire.h:89
std::string myFiringId
Definition: managedInterface/messages/fire.h:80
Definition: managedInterface/messages/fire.h:19
Defines the base class for all messages that are sent to and from C#.
This is the DtMessage class.
Definition: message.h:20
std::string myMunitionId
Definition: managedInterface/messages/fire.h:82
This file declares DtVector and DtVector32.
DtVector myWorldPosition
Definition: managedInterface/messages/fire.h:83
int myQuantity
Definition: managedInterface/messages/fire.h:91
Definition: vlVector.h:224
WarheadType
Definition: managedInterface/messages/fire.h:23
Definition: vlVector.h:162
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
std::string myTargetId
Definition: managedInterface/messages/fire.h:81
static std::string theFullName
Definition: managedInterface/messages/fire.h:78
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
virtual void serialize(DtStreamWriter &writer)
DtVector32 myVelocity
Definition: managedInterface/messages/fire.h:84
int myEventId
Definition: managedInterface/messages/fire.h:86
DtEntityType myMunitionType
Definition: managedInterface/messages/fire.h:88
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26
virtual void deserialize(DtStreamReader &reader)

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)