TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
SmartAIMgr Class Reference

#include <SmartScriptMgr.h>

Public Member Functions

 SmartAIMgr (SmartAIMgr const &)=delete
 
 SmartAIMgr (SmartAIMgr &&)=delete
 
SmartAIMgroperator= (SmartAIMgr const &)=delete
 
SmartAIMgroperator= (SmartAIMgr &&)=delete
 
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 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 1711 of file SmartScriptMgr.h.

Constructor & Destructor Documentation

◆ SmartAIMgr() [1/3]

SmartAIMgr::SmartAIMgr ( )
privatedefault

◆ ~SmartAIMgr()

SmartAIMgr::~SmartAIMgr ( )
privatedefault

◆ SmartAIMgr() [2/3]

SmartAIMgr::SmartAIMgr ( SmartAIMgr const &  )
delete

◆ SmartAIMgr() [3/3]

SmartAIMgr::SmartAIMgr ( SmartAIMgr &&  )
delete

Member Function Documentation

◆ CheckUnusedActionParams()

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

Definition at line 892 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 761 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 1074 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 448 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedEvent()

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

Definition at line 436 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedSourceEvent()

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

Definition at line 424 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetCreateItemSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetCreateItemSpellContainerBounds ( uint32  itemId) const
private

Definition at line 2597 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetKillCreditSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetKillCreditSpellContainerBounds ( uint32  killCredit) const
private

Definition at line 2592 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScript()

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

Definition at line 411 of file SmartScriptMgr.cpp.

◆ GetSummonCreatureSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonCreatureSpellContainerBounds ( uint32  creatureEntry) const
private

Definition at line 2582 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetSummonGameObjectSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonGameObjectSpellContainerBounds ( uint32  gameObjectEntry) const
private

Definition at line 2587 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ instance()

SmartAIMgr * SmartAIMgr::instance ( )
static

Definition at line 55 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 741 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 661 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 721 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 1159 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 681 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 701 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 641 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 671 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 731 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 691 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 751 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 505 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 711 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 2505 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 2552 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 61 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 651 of file SmartScriptMgr.cpp.

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

◆ operator=() [1/2]

SmartAIMgr & SmartAIMgr::operator= ( SmartAIMgr &&  )
delete

◆ operator=() [2/2]

SmartAIMgr & SmartAIMgr::operator= ( SmartAIMgr const &  )
delete

◆ UnLoadHelperStores()

void SmartAIMgr::UnLoadHelperStores ( )
private

Definition at line 2574 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ CreateItemSpellStore

CacheSpellContainer SmartAIMgr::CreateItemSpellStore
private

Definition at line 1773 of file SmartScriptMgr.h.

◆ KillCreditSpellStore

CacheSpellContainer SmartAIMgr::KillCreditSpellStore
private

Definition at line 1772 of file SmartScriptMgr.h.

◆ mEventMap

SmartAIEventMap SmartAIMgr::mEventMap[SMART_SCRIPT_TYPE_MAX]
private

Definition at line 1735 of file SmartScriptMgr.h.

◆ SummonCreatureSpellStore

CacheSpellContainer SmartAIMgr::SummonCreatureSpellStore
private

Definition at line 1770 of file SmartScriptMgr.h.

◆ SummonGameObjectSpellStore

CacheSpellContainer SmartAIMgr::SummonGameObjectSpellStore
private

Definition at line 1771 of file SmartScriptMgr.h.


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