TrinityCore
Loading...
Searching...
No Matches
FactorySelector Namespace Reference

Classes

struct  PermissibleOrderPred
 

Functions

template<class T , class Value >
int32 GetPermitFor (T const *obj, Value const &value)
 
template<class AI , class T >
FactoryHolder< AI, T > const * SelectFactory (T const *obj)
 
CreatureAI * SelectAI (Creature *creature)
 
uint32 GetSelectedAIId (Creature const *creature)
 
MovementGenerator * SelectMovementGenerator (Unit *unit)
 
GameObjectAI * SelectGameObjectAI (GameObject *go)
 
uint32 GetSelectedAIId (GameObject const *go)
 
static uint32 GetNullAreaTriggerAIScriptId ()
 
AreaTriggerAI * SelectAreaTriggerAI (AreaTrigger *at)
 
uint32 GetSelectedAIId (AreaTrigger const *at)
 
static uint32 GetNullConversationAIScriptId ()
 
ConversationAI * SelectConversationAI (Conversation *conversation)
 
uint32 GetSelectedAIId (Conversation const *conversation)
 

Function Documentation

◆ GetNullAreaTriggerAIScriptId()

static uint32 FactorySelector::GetNullAreaTriggerAIScriptId ( )
static

Definition at line 163 of file CreatureAISelector.cpp.

References sObjectMgr.

Referenced by GetSelectedAIId(), and SelectAreaTriggerAI().

◆ GetNullConversationAIScriptId()

static uint32 FactorySelector::GetNullConversationAIScriptId ( )
static

Definition at line 189 of file CreatureAISelector.cpp.

References sObjectMgr.

Referenced by GetSelectedAIId(), and SelectConversationAI().

◆ GetPermitFor()

template<class T , class Value >
int32 FactorySelector::GetPermitFor ( T const *  obj,
Value const &  value 
)
inline

◆ GetSelectedAIId() [1/4]

TC_GAME_API uint32 FactorySelector::GetSelectedAIId ( AreaTrigger const *  at)

◆ GetSelectedAIId() [2/4]

TC_GAME_API uint32 FactorySelector::GetSelectedAIId ( Conversation const *  conversation)

◆ GetSelectedAIId() [3/4]

◆ GetSelectedAIId() [4/4]

TC_GAME_API uint32 FactorySelector::GetSelectedAIId ( GameObject const *  go)

Definition at line 147 of file CreatureAISelector.cpp.

References ASSERT, GameObject::GetScriptId(), and sScriptMgr.

◆ SelectAI()

◆ SelectAreaTriggerAI()

TC_GAME_API AreaTriggerAI * FactorySelector::SelectAreaTriggerAI ( AreaTrigger *  at)

Definition at line 168 of file CreatureAISelector.cpp.

References GetNullAreaTriggerAIScriptId(), and sScriptMgr.

Referenced by AreaTrigger::AI_Initialize().

◆ SelectConversationAI()

TC_GAME_API ConversationAI * FactorySelector::SelectConversationAI ( Conversation *  conversation)

Definition at line 194 of file CreatureAISelector.cpp.

References GetNullConversationAIScriptId(), and sScriptMgr.

Referenced by Conversation::AI_Initialize().

◆ SelectFactory()

template<class AI , class T >
FactoryHolder< AI, T > const * FactorySelector::SelectFactory ( T const *  obj)
inline

◆ SelectGameObjectAI()

TC_GAME_API GameObjectAI * FactorySelector::SelectGameObjectAI ( GameObject *  go)

Definition at line 138 of file CreatureAISelector.cpp.

References sScriptMgr.

Referenced by GameObject::AIM_Initialize().

◆ SelectMovementGenerator()