TrinityCore
SmartAIMgr Class Reference

#include <SmartScriptMgr.h>

Public Member Functions

void LoadSmartAIFromDB ()
 
SmartAIEventList GetScript (int32 entry, SmartScriptType type)
 

Static Public Member Functions

static SmartAIMgrinstance ()
 
static SmartScriptHolderFindLinkedSourceEvent (SmartAIEventList &list, uint32 eventId)
 
static SmartScriptHolderFindLinkedEvent (SmartAIEventList &list, uint32 link)
 

Private Member Functions

 SmartAIMgr ()
 
 ~SmartAIMgr ()
 
bool IsEventValid (SmartScriptHolder &e)
 
bool IsTargetValid (SmartScriptHolder const &e)
 
bool IsMinMaxValid (SmartScriptHolder const &e, uint32 min, uint32 max)
 
void LoadHelperStores ()
 
void UnLoadHelperStores ()
 
CacheSpellContainerBounds GetSummonCreatureSpellContainerBounds (uint32 creatureEntry) const
 
CacheSpellContainerBounds GetSummonGameObjectSpellContainerBounds (uint32 gameObjectEntry) const
 
CacheSpellContainerBounds GetKillCreditSpellContainerBounds (uint32 killCredit) const
 
CacheSpellContainerBounds GetCreateItemSpellContainerBounds (uint32 itemId) const
 

Static Private Member Functions

static bool EventHasInvoker (SMART_EVENT event)
 
static bool NotNULL (SmartScriptHolder const &e, uint32 data)
 
static bool IsCreatureValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsQuestValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsGameObjectValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsSpellValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsItemValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsTextEmoteValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsEmoteValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsAreaTriggerValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsSoundValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsAnimKitValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsSpellVisualKitValid (SmartScriptHolder const &e, uint32 entry)
 
static bool IsTextValid (SmartScriptHolder const &e, uint32 id)
 
static bool CheckUnusedEventParams (SmartScriptHolder const &e)
 
static bool CheckUnusedActionParams (SmartScriptHolder const &e)
 
static bool CheckUnusedTargetParams (SmartScriptHolder const &e)
 

Private Attributes

SmartAIEventMap mEventMap [SMART_SCRIPT_TYPE_MAX]
 
CacheSpellContainer SummonCreatureSpellStore
 
CacheSpellContainer SummonGameObjectSpellStore
 
CacheSpellContainer KillCreditSpellStore
 
CacheSpellContainer CreateItemSpellStore
 

Detailed Description

Definition at line 1706 of file SmartScriptMgr.h.

Constructor & Destructor Documentation

◆ SmartAIMgr()

SmartAIMgr::SmartAIMgr ( )
inlineprivate

Definition at line 1709 of file SmartScriptMgr.h.

◆ ~SmartAIMgr()

SmartAIMgr::~SmartAIMgr ( )
inlineprivate

Definition at line 1710 of file SmartScriptMgr.h.

Member Function Documentation

◆ CheckUnusedActionParams()

bool SmartAIMgr::CheckUnusedActionParams ( SmartScriptHolder const &  e)
staticprivate

Definition at line 870 of file SmartScriptMgr.cpp.

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

◆ CheckUnusedEventParams()

bool SmartAIMgr::CheckUnusedEventParams ( SmartScriptHolder const &  e)
staticprivate

Definition at line 759 of file SmartScriptMgr.cpp.

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

◆ CheckUnusedTargetParams()

bool SmartAIMgr::CheckUnusedTargetParams ( SmartScriptHolder const &  e)
staticprivate

Definition at line 1033 of file SmartScriptMgr.cpp.

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

◆ EventHasInvoker()

bool SmartAIMgr::EventHasInvoker ( SMART_EVENT  event)
staticprivate

Definition at line 443 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedEvent()

SmartScriptHolder & SmartAIMgr::FindLinkedEvent ( SmartAIEventList list,
uint32  link 
)
static

Definition at line 431 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedSourceEvent()

SmartScriptHolder & SmartAIMgr::FindLinkedSourceEvent ( SmartAIEventList list,
uint32  eventId 
)
static

Definition at line 419 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetCreateItemSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetCreateItemSpellContainerBounds ( uint32  itemId) const
private

Definition at line 2478 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetKillCreditSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetKillCreditSpellContainerBounds ( uint32  killCredit) const
private

Definition at line 2473 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScript()

SmartAIEventList SmartAIMgr::GetScript ( int32  entry,
SmartScriptType  type 
)

Definition at line 406 of file SmartScriptMgr.cpp.

◆ GetSummonCreatureSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonCreatureSpellContainerBounds ( uint32  creatureEntry) const
private

Definition at line 2463 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetSummonGameObjectSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonGameObjectSpellContainerBounds ( uint32  gameObjectEntry) const
private

Definition at line 2468 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ instance()

SmartAIMgr * SmartAIMgr::instance ( )
static

Definition at line 51 of file SmartScriptMgr.cpp.

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

◆ IsAnimKitValid()

bool SmartAIMgr::IsAnimKitValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 739 of file SmartScriptMgr.cpp.

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

◆ IsAreaTriggerValid()

bool SmartAIMgr::IsAreaTriggerValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 719 of file SmartScriptMgr.cpp.

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

◆ IsCreatureValid()

bool SmartAIMgr::IsCreatureValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 649 of file SmartScriptMgr.cpp.

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

◆ IsEmoteValid()

bool SmartAIMgr::IsEmoteValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 709 of file SmartScriptMgr.cpp.

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

◆ IsEventValid()

bool SmartAIMgr::IsEventValid ( SmartScriptHolder e)
private

Definition at line 1094 of file SmartScriptMgr.cpp.

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

◆ IsGameObjectValid()

bool SmartAIMgr::IsGameObjectValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 669 of file SmartScriptMgr.cpp.

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

◆ IsItemValid()

bool SmartAIMgr::IsItemValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 689 of file SmartScriptMgr.cpp.

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

◆ IsMinMaxValid()

bool SmartAIMgr::IsMinMaxValid ( SmartScriptHolder const &  e,
uint32  min,
uint32  max 
)
private

Definition at line 629 of file SmartScriptMgr.cpp.

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

◆ IsQuestValid()

bool SmartAIMgr::IsQuestValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 659 of file SmartScriptMgr.cpp.

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

◆ IsSoundValid()

bool SmartAIMgr::IsSoundValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 729 of file SmartScriptMgr.cpp.

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

◆ IsSpellValid()

bool SmartAIMgr::IsSpellValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 679 of file SmartScriptMgr.cpp.

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

◆ IsSpellVisualKitValid()

bool SmartAIMgr::IsSpellVisualKitValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 749 of file SmartScriptMgr.cpp.

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

◆ IsTargetValid()

bool SmartAIMgr::IsTargetValid ( SmartScriptHolder const &  e)
private

Definition at line 499 of file SmartScriptMgr.cpp.

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

◆ IsTextEmoteValid()

bool SmartAIMgr::IsTextEmoteValid ( SmartScriptHolder const &  e,
uint32  entry 
)
staticprivate

Definition at line 699 of file SmartScriptMgr.cpp.

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

◆ IsTextValid()

bool SmartAIMgr::IsTextValid ( SmartScriptHolder const &  e,
uint32  id 
)
staticprivate

Definition at line 2386 of file SmartScriptMgr.cpp.

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

◆ LoadHelperStores()

void SmartAIMgr::LoadHelperStores ( )
private

Definition at line 2433 of file SmartScriptMgr.cpp.

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

◆ LoadSmartAIFromDB()

void SmartAIMgr::LoadSmartAIFromDB ( )

Definition at line 57 of file SmartScriptMgr.cpp.

+ Here is the call graph for this function:

◆ NotNULL()

bool SmartAIMgr::NotNULL ( SmartScriptHolder const &  e,
uint32  data 
)
staticprivate

Definition at line 639 of file SmartScriptMgr.cpp.

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

◆ UnLoadHelperStores()

void SmartAIMgr::UnLoadHelperStores ( )
private

Definition at line 2455 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ CreateItemSpellStore

CacheSpellContainer SmartAIMgr::CreateItemSpellStore
private

Definition at line 1764 of file SmartScriptMgr.h.

◆ KillCreditSpellStore

CacheSpellContainer SmartAIMgr::KillCreditSpellStore
private

Definition at line 1763 of file SmartScriptMgr.h.

◆ mEventMap

SmartAIEventMap SmartAIMgr::mEventMap[SMART_SCRIPT_TYPE_MAX]
private

Definition at line 1725 of file SmartScriptMgr.h.

◆ SummonCreatureSpellStore

CacheSpellContainer SmartAIMgr::SummonCreatureSpellStore
private

Definition at line 1761 of file SmartScriptMgr.h.

◆ SummonGameObjectSpellStore

CacheSpellContainer SmartAIMgr::SummonGameObjectSpellStore
private

Definition at line 1762 of file SmartScriptMgr.h.


The documentation for this class was generated from the following files: