TrinityCore
UnitAICommon.h File Reference
#include "Define.h"
+ Include dependency graph for UnitAICommon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DefaultTargetSelector
 
struct  SpellTargetSelector
 
struct  NonTankTargetSelector
 
struct  PowerUsersSelector
 
struct  FarthestTargetSelector
 

Enumerations

enum class  EvadeReason {
  NoHostiles , Boundary , NoPath , SequenceBreak ,
  Other
}
 
enum class  SelectTargetMethod {
  Random , MaxThreat , MinThreat , MaxDistance ,
  MinDistance
}
 

Enumeration Type Documentation

◆ EvadeReason

enum class EvadeReason
strong
Enumerator
NoHostiles 
Boundary 
NoPath 
SequenceBreak 
Other 

Definition at line 29 of file UnitAICommon.h.

30{
31 NoHostiles, // the creature's threat list is empty
32 Boundary, // the creature has moved outside its evade boundary
33 NoPath, // the creature was unable to reach its target for over 5 seconds
34 SequenceBreak, // this is a boss and the pre-requisite encounters for engaging it are not defeated yet
35 Other, // anything else
36};

◆ SelectTargetMethod

enum class SelectTargetMethod
strong
Enumerator
Random 
MaxThreat 
MinThreat 
MaxDistance 
MinDistance 

Definition at line 39 of file UnitAICommon.h.

40{
41 Random, // just pick a random target
42 MaxThreat, // prefer targets higher in the threat list
43 MinThreat, // prefer targets lower in the threat list
44 MaxDistance, // prefer targets further from us
45 MinDistance // prefer targets closer to us
46};