TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SmartScriptHolder Struct Reference

#include <SmartScriptMgr.h>

Public Member Functions

 SmartScriptHolder ()
 
uint32 GetScriptType () const
 
uint32 GetEventType () const
 
uint32 GetActionType () const
 
uint32 GetTargetType () const
 
 operator bool () const
 

Public Attributes

int64 entryOrGuid
 
SmartScriptType source_type
 
uint32 event_id
 
uint32 link
 
SmartEvent event
 
SmartAction action
 
SmartTarget target
 
uint32 timer
 
bool active
 
bool runOnce
 
bool enableTimed
 

Constructor & Destructor Documentation

SmartScriptHolder::SmartScriptHolder ( )
inline
1364  , event_id(0), link(0), event(), action(), target(), timer(0), active(false), runOnce(false)
1365  , enableTimed(false) { }
SmartEvent event
Definition: SmartScriptMgr.h:1372
uint32 link
Definition: SmartScriptMgr.h:1370
bool active
Definition: SmartScriptMgr.h:1382
uint32 event_id
Definition: SmartScriptMgr.h:1369
SmartTarget target
Definition: SmartScriptMgr.h:1374
Definition: SmartScriptMgr.h:1210
uint32 timer
Definition: SmartScriptMgr.h:1381
bool enableTimed
Definition: SmartScriptMgr.h:1384
int64 entryOrGuid
Definition: SmartScriptMgr.h:1367
SmartAction action
Definition: SmartScriptMgr.h:1373
SmartScriptType source_type
Definition: SmartScriptMgr.h:1368
bool runOnce
Definition: SmartScriptMgr.h:1383

Member Function Documentation

uint32 SmartScriptHolder::GetActionType ( ) const
inline
1378 { return (uint32)action.type; }
uint32_t uint32
Definition: Define.h:150
SmartAction action
Definition: SmartScriptMgr.h:1373
SMART_ACTION type
Definition: SmartScriptMgr.h:561

+ Here is the caller graph for this function:

uint32 SmartScriptHolder::GetEventType ( ) const
inline
1377 { return (uint32)event.type; }
uint32_t uint32
Definition: Define.h:150

+ Here is the caller graph for this function:

uint32 SmartScriptHolder::GetScriptType ( ) const
inline
1376 { return (uint32)source_type; }
uint32_t uint32
Definition: Define.h:150
SmartScriptType source_type
Definition: SmartScriptMgr.h:1368

+ Here is the caller graph for this function:

uint32 SmartScriptHolder::GetTargetType ( ) const
inline
1379 { return (uint32)target.type; }
SMARTAI_TARGETS type
Definition: SmartScriptMgr.h:1117
SmartTarget target
Definition: SmartScriptMgr.h:1374
uint32_t uint32
Definition: Define.h:150

+ Here is the caller graph for this function:

SmartScriptHolder::operator bool ( ) const
inline
1386 { return entryOrGuid != 0; }
int64 entryOrGuid
Definition: SmartScriptMgr.h:1367

Member Data Documentation

SmartAction SmartScriptHolder::action
bool SmartScriptHolder::active
bool SmartScriptHolder::enableTimed
int64 SmartScriptHolder::entryOrGuid
SmartEvent SmartScriptHolder::event
uint32 SmartScriptHolder::event_id
uint32 SmartScriptHolder::link
bool SmartScriptHolder::runOnce
SmartScriptType SmartScriptHolder::source_type
SmartTarget SmartScriptHolder::target
uint32 SmartScriptHolder::timer

The documentation for this struct was generated from the following file: