VR-Engage  2.3
Loading...
Searching...
No Matches
fire.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/framework/vreMessages/fire.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18#include <matrix/vlVector.h>
19#include <vlpi/entityType.h>
20
21namespace makVre
22{
23//! \brief Message type identifier for FireMessage.
24constexpr const char* FireMessageType = "simulation.fire";
25
26/**
27 * \class FireMessage
28 * \brief Sent in the VR-Engage GUI when a fire interaction is received. Propagates the event outside the network thread.
29 *
30 * Message type: "simulation.fire"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37 //! \brief FuzeType enumeration.
51 //! \brief WarheadType enumeration.
74
75 //! \brief Data payload for FireMessage.
77 {
78 //! \brief Default constructor.
80
81 //! \name Data Members
82 //! \{
83
84 std::string myFiringId;
85 std::string myTargetId;
86 std::string myMunitionId;
88 DtVector myVelocity;
89 double myRange;
91 DtEntityType myMunitionType;
95 int myRate;
96 //! \}
97
98 //! \name Operators
99 //! \{
100 bool operator==(const FireData& rhs) const;
101 bool operator!=(const FireData& rhs) const;
102 //! \}
103 };
104
105 //! \brief Destructor.
106 virtual ~FireMessage() override;
107
108 //! \name Static Creators
109 //! \{
110 //! \brief Create a new default instance.
111 //! \return A dynamically allocated default message. Caller takes ownership.
113
114 //! \brief Create a copy of the given message.
115 //! \param origMsg The message to copy. Must not be null.
116 //! \return A dynamically allocated copy. Caller takes ownership.
118
119 //! \brief Create a new message initialized with the given data.
120 //! \param data The data payload to initialize the message with.
121 //! \return A dynamically allocated message. Caller takes ownership.
123 //! \}
124
125 //! \name Type Identity
126 //! \{
127 //! \brief Get the message type string for this message class.
128 static const std::string& theType();
129
130 //! \brief Get the message identifier for this message class.
132
133 //! \brief Get the version number for this message class.
135
136 //! \brief Get the message type string for this instance.
137 virtual const std::string& type() const override;
138
139 //! \brief Get the message identifier for this instance.
140 virtual const makVre::DtVreMessageId& messageId() const override;
141 //! \}
142
143 //! \name Accessors
144 //! \{
145 virtual const std::string& getFiringId() const;
146 virtual void setFiringId(const std::string& val);
147
148 virtual const std::string& getTargetId() const;
149 virtual void setTargetId(const std::string& val);
150
151 virtual const std::string& getMunitionId() const;
152 virtual void setMunitionId(const std::string& val);
153
154 virtual const DtVector& getWorldPosition() const;
155 virtual void setWorldPosition(const DtVector& val);
156
157 virtual const DtVector& getVelocity() const;
158 virtual void setVelocity(const DtVector& val);
159
160 virtual double getRange() const;
161 virtual void setRange(double val);
162
163 virtual int getEventId() const;
164 virtual void setEventId(int val);
165
166 virtual const DtEntityType& getMunitionType() const;
167 virtual void setMunitionType(const DtEntityType& val);
168
169 virtual FuzeType getFuzeType() const;
170 virtual void setFuzeType(FuzeType val);
171
173 virtual void setWarheadType(WarheadType val);
174
175 virtual int getQuantity() const;
176 virtual void setQuantity(int val);
177
178 virtual int getRate() const;
179 virtual void setRate(int val);
180 //! \}
181
182 //! \name Serialization
183 //! \{
184 //! \copydoc makVre::DtVreMessage::messageSize()
185 virtual int messageSize() const override;
186
187 //! \brief Decode a message from a byte buffer.
188 //! \param buffer The raw byte buffer to decode from.
189 //! \param length The length of the buffer in bytes.
190 //! \return A dynamically allocated decoded message. Caller takes ownership.
191 static makVre::DtVreMessage* decode(char* buffer, int length);
192
193 //! \brief Get a copy of the message data.
195
196 //! \brief Get a copy of the message data (const).
198 //! \}
199
200 //! \name Operators
201 //! \{
202 bool operator==(const FireMessage& rhs) const;
203 bool operator!=(const FireMessage& rhs) const;
204 //! \}
205
206protected:
208
209 //! \copydoc makVre::DtVreMessage::serialize()
210 virtual void serialize(DtStreamWriter& writer) const override;
211
212 //! \copydoc makVre::DtVreMessage::deserialize()
213 virtual void deserialize(DtStreamReader& reader) override;
214
215protected:
218
220};
221} // namespace makVre
222
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
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()
Get the version number for this message class.
virtual void setWorldPosition(const DtVector &val)
FireData getData()
Get a copy of the message data.
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.
virtual void setRate(int val)
virtual double getRange() const
static FireMessage * createFromData(const FireData data)
Create a new message initialized with the given data.
FireData getData() const
Get a copy of the message data (const).
virtual const std::string & getMunitionId() const
virtual FuzeType getFuzeType() const
virtual int getEventId() const
bool operator==(const FireMessage &rhs) const
virtual void setQuantity(int val)
static FireMessage * createFrom(FireMessage *origMsg)
Create a copy of the given message.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static makVre::DtVreMessageId theMessageId
Definition fire.h:216
virtual int getRate() const
virtual void setTargetId(const std::string &val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setRange(double val)
static FireMessage * create()
Create a copy of the given message.
virtual const std::string & type() const override
Get the message type string for this instance.
WarheadType
WarheadType enumeration.
Definition fire.h:53
@ WarheadType_CHEMICALBLISTER
Definition fire.h:69
@ WarheadType_SMOKE
Definition fire.h:62
@ WarheadType_CHEMICALGENERAL
Definition fire.h:68
@ WarheadType_HIGHEXPLOSIVEPLATIC
Definition fire.h:56
@ WarheadType_NUCLEAR
Definition fire.h:67
@ WarheadType_HIGHEXPLOSIVESHAPEDCHARGE
Definition fire.h:61
@ WarheadType_BIOLOGICALGENERAL
Definition fire.h:72
@ WarheadType_CHEMICALNERVE
Definition fire.h:71
@ WarheadType_HIGHEXPLOSIVE
Definition fire.h:55
@ WarheadType_OTHER
Definition fire.h:54
@ WarheadType_HIGHEXPLOSIVEANTITANK
Definition fire.h:59
@ WarheadType_UNUSED
Definition fire.h:66
@ WarheadType_HIGHEXPLOSIVEINCENDIARY
Definition fire.h:57
@ WarheadType_KINETIC
Definition fire.h:65
@ WarheadType_HIGHEXPLOSIVEFRAGMENTATION
Definition fire.h:58
@ WarheadType_HIGHEXPLOSIVEBOMBLETS
Definition fire.h:60
@ WarheadType_ILLUMINATION
Definition fire.h:63
@ WarheadType_CHEMICALBLOOD
Definition fire.h:70
@ WarheadType_PRACTICE
Definition fire.h:64
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
Get the message identifier for this instance.
FireData myData
Definition fire.h:219
virtual int getQuantity() const
FuzeType
FuzeType enumeration.
Definition fire.h:39
@ FuzeType_PROXIMITY
Definition fire.h:45
@ FuzeType_CONTACTINSTANT
Definition fire.h:42
@ FuzeType_DEPTH
Definition fire.h:48
@ FuzeType_COMMAND
Definition fire.h:46
@ FuzeType_ACOUSTIC
Definition fire.h:49
@ FuzeType_OTHER
Definition fire.h:40
@ FuzeType_CONTACTDELAYED
Definition fire.h:43
@ FuzeType_CONTACT
Definition fire.h:41
@ FuzeType_TIMED
Definition fire.h:44
@ FuzeType_ALTITUDE
Definition fire.h:47
virtual ~FireMessage() override
Destructor.
virtual void setFiringId(const std::string &val)
static UInt64 theVersion
Definition fire.h:217
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
bool operator!=(const FireMessage &rhs) const
virtual void setEventId(int val)
static const std::string & theType()
Get the message type string for this instance.
virtual int messageSize() const override
Get a copy of the message data.
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * FireMessageType
Message type identifier for FireMessage.
Definition fire.h:24
Data payload for FireMessage.
Definition fire.h:77
int myQuantity
Definition fire.h:94
bool operator==(const FireData &rhs) const
int myRate
Definition fire.h:95
std::string myMunitionId
Definition fire.h:86
DtEntityType myMunitionType
Definition fire.h:91
std::string myTargetId
Definition fire.h:85
DtVector myVelocity
Definition fire.h:88
int myEventId
Definition fire.h:90
FuzeType myFuzeType
Definition fire.h:92
std::string myFiringId
Definition fire.h:84
DtVector myWorldPosition
Definition fire.h:87
WarheadType myWarheadType
Definition fire.h:93
FireData()
Default constructor.
bool operator!=(const FireData &rhs) const
double myRange
Definition fire.h:89
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.