@@ -123,15 +123,29 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
123
123
*
124
124
* @param pType The type of the event.
125
125
*/
126
- ThreatRefStatusChangeEvent (uint32 pType) : UnitBaseEvent(pType), iHostileReference(nullptr ), iFValue(0 .0f ), iIValue(0 ), iBValue(false ), iThreatManager(nullptr ) {}
126
+ ThreatRefStatusChangeEvent (uint32 pType) : UnitBaseEvent(pType)
127
+ {
128
+ iHostileReference = nullptr ;
129
+ iFValue = 0 .0f ;
130
+ iIValue = 0 ;
131
+ iBValue = false ;
132
+ iThreatManager = nullptr ;
133
+ }
127
134
128
135
/* *
129
136
* @brief Constructor for ThreatRefStatusChangeEvent with a hostile reference.
130
137
*
131
138
* @param pType The type of the event.
132
139
* @param pHostileReference The hostile reference associated with the event.
133
140
*/
134
- ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(0 .0f ), iIValue(0 ), iBValue(false ), iThreatManager(nullptr ) {}
141
+ ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType)
142
+ {
143
+ iHostileReference = pHostileReference;
144
+ iFValue = 0 .0f ;
145
+ iIValue = 0 ;
146
+ iBValue = false ;
147
+ iThreatManager = nullptr ;
148
+ }
135
149
136
150
/* *
137
151
* @brief Constructor for ThreatRefStatusChangeEvent with a float value.
@@ -140,7 +154,14 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
140
154
* @param pHostileReference The hostile reference associated with the event.
141
155
* @param pValue The float value associated with the event.
142
156
*/
143
- ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(pValue), iIValue(0 ), iBValue(false ), iThreatManager(nullptr ) {}
157
+ ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType)
158
+ {
159
+ iHostileReference = pHostileReference;
160
+ iFValue = pValue;
161
+ iIValue = 0 ;
162
+ iBValue = false ;
163
+ iThreatManager = nullptr ;
164
+ }
144
165
145
166
/* *
146
167
* @brief Constructor for ThreatRefStatusChangeEvent with a boolean value.
@@ -149,7 +170,14 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
149
170
* @param pHostileReference The hostile reference associated with the event.
150
171
* @param pValue The boolean value associated with the event.
151
172
*/
152
- ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(0 .0f ), iIValue(0 ), iBValue(pValue), iThreatManager(nullptr ) {}
173
+ ThreatRefStatusChangeEvent (uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType)
174
+ {
175
+ iHostileReference = pHostileReference;
176
+ iFValue = 0 .0f ;
177
+ iIValue = 0 ;
178
+ iBValue = pValue;
179
+ iThreatManager = nullptr ;
180
+ }
153
181
154
182
/* *
155
183
* @brief Gets the integer value associated with the event.
@@ -214,15 +242,22 @@ class ThreatManagerEvent : public ThreatRefStatusChangeEvent
214
242
*
215
243
* @param pType The type of the event.
216
244
*/
217
- ThreatManagerEvent (uint32 pType) : ThreatRefStatusChangeEvent(pType), iThreatContainer(nullptr ) {}
245
+ ThreatManagerEvent (uint32 pType) : ThreatRefStatusChangeEvent(pType)
246
+ {
247
+ iThreatContainer = nullptr ;
248
+ }
218
249
219
250
/* *
220
251
* @brief Constructor for ThreatManagerEvent with a hostile reference.
221
252
*
222
253
* @param pType The type of the event.
223
254
* @param pHostileReference The hostile reference associated with the event.
224
255
*/
225
- ThreatManagerEvent (uint32 pType, HostileReference* pHostileReference) : ThreatRefStatusChangeEvent(pType, pHostileReference), iThreatContainer(nullptr ) {}
256
+ ThreatManagerEvent (uint32 pType, HostileReference* pHostileReference) : ThreatRefStatusChangeEvent(pType, pHostileReference)
257
+ {
258
+ iThreatContainer = nullptr ;
259
+ }
260
+
226
261
227
262
/* *
228
263
* @brief Sets the threat container associated with the event.
0 commit comments