TrinityCore
Loading...
Searching...
No Matches
CreatureAIImpl.h File Reference
#include "Random.h"
#include <type_traits>
#include <functional>
+ Include dependency graph for CreatureAIImpl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AISpellInfoType
 

Macros

#define AI_DEFAULT_COOLDOWN   5000
 

Enumerations

enum  AITarget {
  AITARGET_SELF , AITARGET_VICTIM , AITARGET_ENEMY , AITARGET_ALLY ,
  AITARGET_BUFF , AITARGET_DEBUFF
}
 
enum  AICondition { AICOND_AGGRO , AICOND_COMBAT , AICOND_DIE }
 

Functions

template<typename First , typename Second , typename... Rest>
First const & RAND (First const &first, Second const &second, Rest const &... rest)
 
AISpellInfoTypeGetAISpellInfo (uint32 i)
 
TC_GAME_API bool InstanceHasScript (WorldObject const *obj, char const *scriptName)
 
template<class AI , class T >
AI * GetInstanceAI (T *obj, char const *scriptName)
 

Macro Definition Documentation

◆ AI_DEFAULT_COOLDOWN

#define AI_DEFAULT_COOLDOWN   5000

Definition at line 50 of file CreatureAIImpl.h.

Enumeration Type Documentation

◆ AICondition

Enumerator
AICOND_AGGRO 
AICOND_COMBAT 
AICOND_DIE 

Definition at line 43 of file CreatureAIImpl.h.

◆ AITarget

enum AITarget
Enumerator
AITARGET_SELF 
AITARGET_VICTIM 
AITARGET_ENEMY 
AITARGET_ALLY 
AITARGET_BUFF 
AITARGET_DEBUFF 

Definition at line 33 of file CreatureAIImpl.h.

Function Documentation

◆ GetAISpellInfo()

AISpellInfoType * GetAISpellInfo ( uint32  i)

Definition at line 38 of file CreatureAI.cpp.

+ Here is the caller graph for this function:

◆ GetInstanceAI()

template<class AI , class T >
AI * GetInstanceAI ( T *  obj,
char const *  scriptName 
)

Definition at line 68 of file CreatureAIImpl.h.

+ Here is the call graph for this function:

◆ InstanceHasScript()

TC_GAME_API bool InstanceHasScript ( WorldObject const *  obj,
char const *  scriptName 
)

Definition at line 813 of file InstanceScript.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RAND()

template<typename First , typename Second , typename... Rest>
First const & RAND ( First const &  first,
Second const &  second,
Rest const &...  rest 
)
inline

Definition at line 27 of file CreatureAIImpl.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: