AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
UnitEvents.h File Reference
#include "Common.h"

Go to the source code of this file.

Classes

class  UnitBaseEvent
 
class  ThreatRefStatusChangeEvent
 
class  ThreatMgrEvent
 

Macros

#define UEV_THREAT_REF_EVENT_MASK   (UEV_THREAT_REF_ONLINE_STATUS | UEV_THREAT_REF_THREAT_CHANGE | UEV_THREAT_REF_REMOVE_FROM_LIST | UEV_THREAT_REF_ASSECCIBLE_STATUS)
 
#define UEV_THREAT_MANAGER_EVENT_MASK   (UEV_THREAT_SORT_LIST | UEV_THREAT_SET_NEXT_TARGET | UEV_THREAT_VICTIM_CHANGED)
 
#define UEV_ALL_EVENT_MASK   (0xffffffff)
 

Enumerations

enum  UNIT_EVENT_TYPE {
  UEV_THREAT_REF_ONLINE_STATUS = 1 << 0 ,
  UEV_THREAT_REF_THREAT_CHANGE = 1 << 1 ,
  UEV_THREAT_REF_REMOVE_FROM_LIST = 1 << 2 ,
  UEV_THREAT_REF_ASSECCIBLE_STATUS = 1 << 3 ,
  UEV_THREAT_SORT_LIST = 1 << 4 ,
  UEV_THREAT_SET_NEXT_TARGET = 1 << 5 ,
  UEV_THREAT_VICTIM_CHANGED = 1 << 6
}
 

Macro Definition Documentation

◆ UEV_ALL_EVENT_MASK

#define UEV_ALL_EVENT_MASK   (0xffffffff)

◆ UEV_THREAT_MANAGER_EVENT_MASK

#define UEV_THREAT_MANAGER_EVENT_MASK   (UEV_THREAT_SORT_LIST | UEV_THREAT_SET_NEXT_TARGET | UEV_THREAT_VICTIM_CHANGED)

◆ UEV_THREAT_REF_EVENT_MASK

Enumeration Type Documentation

◆ UNIT_EVENT_TYPE

Enumerator
UEV_THREAT_REF_ONLINE_STATUS 
UEV_THREAT_REF_THREAT_CHANGE 
UEV_THREAT_REF_REMOVE_FROM_LIST 
UEV_THREAT_REF_ASSECCIBLE_STATUS 
UEV_THREAT_SORT_LIST 
UEV_THREAT_SET_NEXT_TARGET 
UEV_THREAT_VICTIM_CHANGED 
31{
32 // Player/Pet changed on/offline status
34
35 // Threat for Player/Pet changed
37
38 // Player/Pet will be removed from list (dead) [for internal use]
40
41 // Player/Pet entered/left water or some other place where it is/was not accessible for the creature
43
44 // Threat list is going to be sorted (if dirty flag is set)
45 UEV_THREAT_SORT_LIST = 1 << 4,
46
47 // New target should be fetched, could tbe the current target as well
49
50 // A new victim (target) was set. Could be nullptr
52
53 // Future use
54 //UEV_UNIT_KILLED = 1<<7,
55
56 //Future use
57 //UEV_UNIT_HEALTH_CHANGE = 1<<8,
58};
@ UEV_THREAT_REF_THREAT_CHANGE
Definition: UnitEvents.h:36
@ UEV_THREAT_SORT_LIST
Definition: UnitEvents.h:45
@ UEV_THREAT_REF_ONLINE_STATUS
Definition: UnitEvents.h:33
@ UEV_THREAT_REF_REMOVE_FROM_LIST
Definition: UnitEvents.h:39
@ UEV_THREAT_REF_ASSECCIBLE_STATUS
Definition: UnitEvents.h:42
@ UEV_THREAT_SET_NEXT_TARGET
Definition: UnitEvents.h:48
@ UEV_THREAT_VICTIM_CHANGED
Definition: UnitEvents.h:51