TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
UnitEvents.h File Reference
#include "Common.h"
+ Include dependency graph for UnitEvents.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UnitBaseEvent
 
class  ThreatRefStatusChangeEvent
 
class  ThreatManagerEvent
 

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

#define UEV_ALL_EVENT_MASK   (0xffffffff)
#define UEV_THREAT_MANAGER_EVENT_MASK   (UEV_THREAT_SORT_LIST | UEV_THREAT_SET_NEXT_TARGET | UEV_THREAT_VICTIM_CHANGED)

Enumeration Type Documentation

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