Skip to content

Commit

Permalink
Attempt to fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Mar 6, 2025
1 parent 394b4cc commit 15b1746
Showing 1 changed file with 41 additions and 6 deletions.
47 changes: 41 additions & 6 deletions src/game/Object/UnitEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,29 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
*
* @param pType The type of the event.
*/
ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType), iHostileReference(nullptr), iFValue(0.0f), iIValue(0), iBValue(false), iThreatManager(nullptr) {}
ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType)
{
iHostileReference = nullptr;
iFValue = 0.0f;
iIValue = 0;
iBValue = false;
iThreatManager = nullptr;
}

/**
* @brief Constructor for ThreatRefStatusChangeEvent with a hostile reference.
*
* @param pType The type of the event.
* @param pHostileReference The hostile reference associated with the event.
*/
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(0.0f), iIValue(0), iBValue(false), iThreatManager(nullptr) {}
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference) : UnitBaseEvent(pType)
{
iHostileReference = pHostileReference;
iFValue = 0.0f;
iIValue = 0;
iBValue = false;
iThreatManager = nullptr;
}

/**
* @brief Constructor for ThreatRefStatusChangeEvent with a float value.
Expand All @@ -140,7 +154,14 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
* @param pHostileReference The hostile reference associated with the event.
* @param pValue The float value associated with the event.
*/
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(pValue), iIValue(0), iBValue(false), iThreatManager(nullptr) {}
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, float pValue) : UnitBaseEvent(pType)
{
iHostileReference = pHostileReference;
iFValue = pValue;
iIValue = 0;
iBValue = false;
iThreatManager = nullptr;
}

/**
* @brief Constructor for ThreatRefStatusChangeEvent with a boolean value.
Expand All @@ -149,7 +170,14 @@ class ThreatRefStatusChangeEvent : public UnitBaseEvent
* @param pHostileReference The hostile reference associated with the event.
* @param pValue The boolean value associated with the event.
*/
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType), iHostileReference(pHostileReference), iFValue(0.0f), iIValue(0), iBValue(pValue), iThreatManager(nullptr) {}
ThreatRefStatusChangeEvent(uint32 pType, HostileReference* pHostileReference, bool pValue) : UnitBaseEvent(pType)
{
iHostileReference = pHostileReference;
iFValue = 0.0f;
iIValue = 0;
iBValue = pValue;
iThreatManager = nullptr;
}

/**
* @brief Gets the integer value associated with the event.
Expand Down Expand Up @@ -214,15 +242,22 @@ class ThreatManagerEvent : public ThreatRefStatusChangeEvent
*
* @param pType The type of the event.
*/
ThreatManagerEvent(uint32 pType) : ThreatRefStatusChangeEvent(pType), iThreatContainer(nullptr) {}
ThreatManagerEvent(uint32 pType) : ThreatRefStatusChangeEvent(pType)
{
iThreatContainer = nullptr;
}

/**
* @brief Constructor for ThreatManagerEvent with a hostile reference.
*
* @param pType The type of the event.
* @param pHostileReference The hostile reference associated with the event.
*/
ThreatManagerEvent(uint32 pType, HostileReference* pHostileReference) : ThreatRefStatusChangeEvent(pType, pHostileReference), iThreatContainer(nullptr) {}
ThreatManagerEvent(uint32 pType, HostileReference* pHostileReference) : ThreatRefStatusChangeEvent(pType, pHostileReference)
{
iThreatContainer = nullptr;
}


/**
* @brief Sets the threat container associated with the event.
Expand Down

0 comments on commit 15b1746

Please sign in to comment.