*Send threat messages to client - thanks to megamage for research.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-02 00:03:57 +02:00
parent fd86e6a369
commit 69f36d7af4
5 changed files with 91 additions and 1 deletions
+5
View File
@@ -35,6 +35,8 @@ class Creature;
class ThreatManager;
struct SpellEntry;
#define THREAT_UPDATE_INTERVAL 1 * IN_MILISECONDS // Server should send threat update to client periodically each second
//==============================================================
// Class to calculate the real threat based
@@ -187,6 +189,8 @@ class TRINITY_DLL_SPEC ThreatManager
void processThreatEvent(ThreatRefStatusChangeEvent* threatRefStatusChangeEvent);
bool isNeedUpdateToClient(uint32 time);
HostilReference* getCurrentVictim() { return iCurrentVictim; }
Unit* getOwner() { return iOwner; }
@@ -211,6 +215,7 @@ class TRINITY_DLL_SPEC ThreatManager
HostilReference* iCurrentVictim;
Unit* iOwner;
uint32 iUpdateTimer;
ThreatContainer iThreatContainer;
ThreatContainer iThreatOfflineContainer;
};