20#include <matrix/vlVector.h>
21#include <vlpi/entityType.h>
34 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};
69 virtual const std::string&
type()
const override;
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
static UInt64 theVersionNumber()
virtual void setWorldPosition(const DtVector &val)
virtual void setMunitionType(const DtEntityType &val)
virtual const std::string & getTargetId() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static FireMessage * createFromData(const FireData)
virtual void setRate(int val)
virtual double getRange() const
virtual const std::string & getMunitionId() const
static FireMessage * createFrom(FireMessage *)
virtual FuzeType getFuzeType() const
virtual int getEventId() const
bool operator==(const FireMessage &rhs) const
virtual void setQuantity(int val)
static makVre::DtVreMessage * decode(char *buffer, int length)
static makVre::DtVreMessageId theMessageId
Definition fire.h:129
virtual int getRate() const
virtual void setTargetId(const std::string &val)
static const makVre::DtVreMessageId & theId()
virtual void setRange(double val)
static FireMessage * create()
virtual const std::string & type() const override
Get the name of the message type.
WarheadType
Definition fire.h:34
@ WarheadType_CHEMICALBLISTER
Definition fire.h:34
@ WarheadType_SMOKE
Definition fire.h:34
@ WarheadType_CHEMICALGENERAL
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVEPLATIC
Definition fire.h:34
@ WarheadType_NUCLEAR
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVESHAPEDCHARGE
Definition fire.h:34
@ WarheadType_BIOLOGICALGENERAL
Definition fire.h:34
@ WarheadType_CHEMICALNERVE
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVE
Definition fire.h:34
@ WarheadType_OTHER
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVEANTITANK
Definition fire.h:34
@ WarheadType_UNUSED
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVEINCENDIARY
Definition fire.h:34
@ WarheadType_KINETIC
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVEFRAGMENTATION
Definition fire.h:34
@ WarheadType_HIGHEXPLOSIVEBOMBLETS
Definition fire.h:34
@ WarheadType_ILLUMINATION
Definition fire.h:34
@ WarheadType_CHEMICALBLOOD
Definition fire.h:34
@ WarheadType_PRACTICE
Definition fire.h:34
virtual const DtVector & getWorldPosition() const
virtual void setVelocity(const DtVector &val)
virtual void setWarheadType(WarheadType val)
virtual const std::string & getFiringId() const
virtual WarheadType getWarheadType() const
virtual void setMunitionId(const std::string &val)
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
FireData myData
Definition fire.h:133
virtual int getQuantity() const
FuzeType
Definition fire.h:33
@ FuzeType_PROXIMITY
Definition fire.h:33
@ FuzeType_CONTACTINSTANT
Definition fire.h:33
@ FuzeType_DEPTH
Definition fire.h:33
@ FuzeType_COMMAND
Definition fire.h:33
@ FuzeType_ACOUSTIC
Definition fire.h:33
@ FuzeType_OTHER
Definition fire.h:33
@ FuzeType_CONTACTDELAYED
Definition fire.h:33
@ FuzeType_CONTACT
Definition fire.h:33
@ FuzeType_TIMED
Definition fire.h:33
@ FuzeType_ALTITUDE
Definition fire.h:33
virtual ~FireMessage() override
virtual void setFiringId(const std::string &val)
static UInt64 theVersion
Definition fire.h:130
virtual const DtEntityType & getMunitionType() const
virtual void setFuzeType(FuzeType val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const DtVector & getVelocity() const
virtual void setEventId(int val)
static const std::string & theType()
static message identity functions
virtual int messageSize() const override
Static decode function pattern for derived classes.
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * FireMessageType
Definition fire.h:28
int myQuantity
Definition fire.h:52
bool operator==(const FireData &rhs) const
int myRate
Definition fire.h:53
std::string myMunitionId
Definition fire.h:44
DtEntityType myMunitionType
Definition fire.h:49
std::string myTargetId
Definition fire.h:43
DtVector myVelocity
Definition fire.h:46
int myEventId
Definition fire.h:48
FuzeType myFuzeType
Definition fire.h:50
std::string myFiringId
Definition fire.h:42
DtVector myWorldPosition
Definition fire.h:45
WarheadType myWarheadType
Definition fire.h:51
double myRange
Definition fire.h:47
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.