TrinityCore
UnitAI.h File Reference
#include "Errors.h"
#include "ObjectGuid.h"
#include "SharedDefines.h"
#include "SpellDefines.h"
#include "UnitAICommon.h"
#include <unordered_map>
+ Include dependency graph for UnitAI.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UnitAI
 

Macros

#define CAST_AI(a, b)   (dynamic_cast<a*>(b))
 
#define ENSURE_AI(a, b)   (EnsureAI<a>(b))
 

Functions

template<class T , class U >
T * EnsureAI (U *ai)
 

Macro Definition Documentation

◆ CAST_AI

#define CAST_AI (   a,
 
)    (dynamic_cast<a*>(b))

Definition at line 28 of file UnitAI.h.

◆ ENSURE_AI

#define ENSURE_AI (   a,
 
)    (EnsureAI<a>(b))

Definition at line 29 of file UnitAI.h.

Function Documentation

◆ EnsureAI()

template<class T , class U >
T * EnsureAI ( U *  ai)

Definition at line 32 of file UnitAI.h.