TrinityCore
Loading...
Searching...
No Matches
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)
 
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 IsMinMaxValid (SmartScriptHolder const &e, uint32 min, uint32 max)
 
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 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 1660 of file SmartScriptMgr.h.

Constructor & Destructor Documentation

◆ SmartAIMgr()

SmartAIMgr::SmartAIMgr ( )
inlineprivate

Definition at line 1663 of file SmartScriptMgr.h.

◆ ~SmartAIMgr()

SmartAIMgr::~SmartAIMgr ( )
inlineprivate

Definition at line 1664 of file SmartScriptMgr.h.

Member Function Documentation

◆ CheckUnusedActionParams()

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

Definition at line 733 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 621 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 894 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 361 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedEvent()

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

Definition at line 349 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ FindLinkedSourceEvent()

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

Definition at line 337 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetCreateItemSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetCreateItemSpellContainerBounds ( uint32  itemId) const
private

Definition at line 2188 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetKillCreditSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetKillCreditSpellContainerBounds ( uint32  killCredit) const
private

Definition at line 2183 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetScript()

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

Definition at line 324 of file SmartScriptMgr.cpp.

◆ GetSummonCreatureSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonCreatureSpellContainerBounds ( uint32  creatureEntry) const
private

Definition at line 2173 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ GetSummonGameObjectSpellContainerBounds()

CacheSpellContainerBounds SmartAIMgr::GetSummonGameObjectSpellContainerBounds ( uint32  gameObjectEntry) const
private

Definition at line 2178 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

◆ instance()

SmartAIMgr * SmartAIMgr::instance ( )
static

Definition at line 46 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 601 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 531 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 591 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 955 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 551 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 571 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 
)
staticprivate

Definition at line 511 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 541 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 611 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 561 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 407 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 581 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 2088 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 2135 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 52 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 521 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 2165 of file SmartScriptMgr.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ CreateItemSpellStore

CacheSpellContainer SmartAIMgr::CreateItemSpellStore
private

Definition at line 1716 of file SmartScriptMgr.h.

◆ KillCreditSpellStore

CacheSpellContainer SmartAIMgr::KillCreditSpellStore
private

Definition at line 1715 of file SmartScriptMgr.h.

◆ mEventMap

SmartAIEventMap SmartAIMgr::mEventMap[SMART_SCRIPT_TYPE_MAX]
private

Definition at line 1679 of file SmartScriptMgr.h.

◆ SummonCreatureSpellStore

CacheSpellContainer SmartAIMgr::SummonCreatureSpellStore
private

Definition at line 1713 of file SmartScriptMgr.h.

◆ SummonGameObjectSpellStore

CacheSpellContainer SmartAIMgr::SummonGameObjectSpellStore
private

Definition at line 1714 of file SmartScriptMgr.h.


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