Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SmartTarget Struct Reference

#include <SmartScriptMgr.h>

Public Member Functions

 SmartTarget (SMARTAI_TARGETS t=SMART_TARGET_NONE, uint32 p1=0, uint32 p2=0, uint32 p3=0)

Public Attributes

union { 
   struct { 
      uint32   dead 
      uint32   dist 
      uint32   entry 
   }   closest
   struct { 
      uint32   maxDist 
      uint32   playerOnly 
   }   closestAttackable
   struct { 
      uint32   maxDist 
      uint32   playerOnly 
   }   closestFriendly
   struct { 
      uint32   dist 
      uint32   entry 
   }   goDistance
   struct { 
      uint32   dbGuid 
      uint32   entry 
   }   goGUID
   struct { 
      uint32   entry 
      uint32   maxDist 
      uint32   minDist 
   }   goRange
   struct { 
      uint32   dist 
   }   playerDistance
   struct { 
      uint32   maxDist 
      uint32   minDist 
   }   playerRange
   struct { 
      uint32   map 
   }   position
   struct { 
      uint32   param1 
      uint32   param2 
      uint32   param3 
   }   raw
   struct { 
      uint32   id 
   }   stored
   struct { 
      uint32   creature 
      uint32   dist 
   }   unitDistance
   struct { 
      uint32   dbGuid 
      uint32   entry 
   }   unitGUID
   struct { 
      uint32   creature 
      uint32   maxDist 
      uint32   minDist 
   }   unitRange
}; 
float o
SMARTAI_TARGETS type
float x
float y
float z

Detailed Description

Definition at line 1051 of file SmartScriptMgr.h.

Constructor & Destructor Documentation

◆ SmartTarget()

SmartTarget::SmartTarget ( SMARTAI_TARGETS t = SMART_TARGET_NONE,
uint32 p1 = 0,
uint32 p2 = 0,
uint32 p3 = 0 )
inline

Definition at line 1053 of file SmartScriptMgr.h.

References o, raw, SMART_TARGET_NONE, type, x, y, and z.

Member Data Documentation

◆ [union]

union { ... } SmartTarget

◆ [struct]

struct { ... } SmartTarget::closest

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::closestAttackable

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::closestFriendly

Referenced by SmartScript::GetTargets().

◆ creature

uint32 SmartTarget::creature

Definition at line 1066 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets(), and SmartAIMgr::IsTargetValid().

◆ dbGuid

uint32 SmartTarget::dbGuid

Definition at line 1073 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ dead

uint32 SmartTarget::dead

Definition at line 1127 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ dist

uint32 SmartTarget::dist

Definition at line 1080 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets(), and SmartAIMgr::IsTargetValid().

◆ entry

uint32 SmartTarget::entry

Definition at line 1074 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets(), and SmartAIMgr::IsTargetValid().

◆ [struct]

struct { ... } SmartTarget::goDistance

◆ [struct]

struct { ... } SmartTarget::goGUID

◆ [struct]

struct { ... } SmartTarget::goRange

Referenced by SmartScript::GetTargets().

◆ id

uint32 SmartTarget::id

Definition at line 1096 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ map

uint32 SmartTarget::map

Definition at line 1120 of file SmartScriptMgr.h.

◆ maxDist

uint32 SmartTarget::maxDist

Definition at line 1068 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ minDist

uint32 SmartTarget::minDist

Definition at line 1067 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ o

float SmartTarget::o

◆ param1

uint32 SmartTarget::param1

◆ param2

uint32 SmartTarget::param2

Definition at line 1145 of file SmartScriptMgr.h.

Referenced by SmartScript::CreateEvent(), and SmartAIMgr::LoadSmartAIFromDB().

◆ param3

uint32 SmartTarget::param3

Definition at line 1146 of file SmartScriptMgr.h.

Referenced by SmartScript::CreateEvent(), and SmartAIMgr::LoadSmartAIFromDB().

◆ [struct]

struct { ... } SmartTarget::playerDistance

◆ playerOnly

uint32 SmartTarget::playerOnly

Definition at line 1133 of file SmartScriptMgr.h.

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::playerRange

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::position

◆ [struct]

◆ [struct]

struct { ... } SmartTarget::stored

Referenced by SmartScript::GetTargets().

◆ type

◆ [struct]

struct { ... } SmartTarget::unitDistance

◆ [struct]

struct { ... } SmartTarget::unitGUID

◆ [struct]

struct { ... } SmartTarget::unitRange

Referenced by SmartScript::GetTargets().

◆ x

float SmartTarget::x

◆ y

float SmartTarget::y

◆ z

float SmartTarget::z

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