VR-Engage  2.2
Loading...
Searching...
No Matches
fire.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/framework/vreMessages/fire.lua
10*/
11/*-----------------COMMENT----------------------
12Sent in the VR-Engage GUI when a fire interaction is received. Propagates the event outside the network thread.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <string>
20#include <matrix/vlVector.h>
21#include <vlpi/entityType.h>
22
23
24namespace makVre
25{
26
27
28constexpr const char* FireMessageType = "simulation.fire";
29
31{
32public:
35
36
37 // Struct for defining data
39 {
41
42 std::string myFiringId;
43 std::string myTargetId;
44 std::string myMunitionId;
46 DtVector myVelocity;
47 double myRange;
49 DtEntityType myMunitionType;
53 int myRate;
54
55 bool operator==(const FireData& rhs) const;
56 };
57
58 // Default static creators to promote the usage of not using new.
62
63 //! \brief static message identity functions
64 static const std::string& theType();
67
68 //! \brief Get the name of the message type
69 virtual const std::string& type() const override;
70 virtual const makVre::DtVreMessageId& messageId() const override;
71
72 // default destructor
73 virtual ~FireMessage() override;
74
75 virtual const std::string& getFiringId() const;
76 virtual void setFiringId(const std::string& val);
77
78 virtual const std::string& getTargetId() const;
79 virtual void setTargetId(const std::string& val);
80
81 virtual const std::string& getMunitionId() const;
82 virtual void setMunitionId(const std::string& val);
83
84 virtual const DtVector& getWorldPosition() const;
85 virtual void setWorldPosition(const DtVector& val);
86
87 virtual const DtVector& getVelocity() const;
88 virtual void setVelocity(const DtVector& val);
89
90 virtual double getRange() const;
91 virtual void setRange(double val);
92
93 virtual int getEventId() const;
94 virtual void setEventId(int val);
95
96 virtual const DtEntityType& getMunitionType() const;
97 virtual void setMunitionType(const DtEntityType& val);
98
99 virtual FuzeType getFuzeType() const;
100 virtual void setFuzeType(FuzeType val);
101
103 virtual void setWarheadType(WarheadType val);
104
105 virtual int getQuantity() const;
106 virtual void setQuantity(int val);
107
108 virtual int getRate() const;
109 virtual void setRate(int val);
110
111
112 // Accessors
113 virtual int messageSize() const override;
114 static makVre::DtVreMessage* decode(char* buffer, int length);
117
118 // Operators
119 bool operator==(const FireMessage& rhs) const;
120
121protected:
122 // Inaccessible default constructor to promote the usage of the static creator functions
124
125 virtual void serialize(DtStreamWriter& writer) const override;
126 virtual void deserialize(DtStreamReader& reader) override;
127
128protected:
131
132 // Store the data for future use
134};
135
136} // ::makVre
137
138
139
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
FireData getData() 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
Definition fire.h:39
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.