TrinityCore
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, uint32 p4=0)
 

Public Attributes

SMARTAI_TARGETS type
 
float x
 
float y
 
float z
 
float o
 
union {
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
      uint32   powerType
 
   }   hostilRandom
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
      SAIBool   isInLos
 
   }   farthest
 
   struct {
      uint32   creature
 
      uint32   minDist
 
      uint32   maxDist
 
      uint32   maxSize
 
   }   unitRange
 
   struct {
      uint32   dbGuid
 
      uint32   entry
 
   }   unitGUID
 
   struct {
      uint32   creature
 
      uint32   dist
 
      uint32   maxSize
 
   }   unitDistance
 
   struct {
      uint32   dist
 
   }   playerDistance
 
   struct {
      uint32   minDist
 
      uint32   maxDist
 
   }   playerRange
 
   struct {
      uint32   id
 
   }   stored
 
   struct {
      uint32   entry
 
      uint32   minDist
 
      uint32   maxDist
 
      uint32   maxSize
 
   }   goRange
 
   struct {
      uint32   dbGuid
 
      uint32   entry
 
   }   goGUID
 
   struct {
      uint32   entry
 
      uint32   dist
 
      uint32   maxSize
 
   }   goDistance
 
   struct {
      uint32   entry
 
      uint32   dist
 
      SAIBool   dead
 
   }   unitClosest
 
   struct {
      uint32   entry
 
      uint32   dist
 
   }   goClosest
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
   }   closestAttackable
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
   }   closestFriendly
 
   struct {
      SAIBool   useCharmerOrOwner
 
   }   owner
 
   struct {
      uint32   seatMask
 
   }   vehicle
 
   struct {
      uint32   maxDist
 
   }   threatList
 
   struct {
      uint32   param1
 
      uint32   param2
 
      uint32   param3
 
      uint32   param4
 
   }   raw
 
}; 
 

Detailed Description

Definition at line 1307 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,
uint32  p4 = 0 
)
inline

Definition at line 1309 of file SmartScriptMgr.h.

Member Data Documentation

◆ 

union { ... } SmartTarget::@172

◆ 

struct { ... } SmartTarget::closestAttackable

◆ 

struct { ... } SmartTarget::closestFriendly

◆ creature

uint32 SmartTarget::creature

Definition at line 1341 of file SmartScriptMgr.h.

◆ dbGuid

uint32 SmartTarget::dbGuid

Definition at line 1349 of file SmartScriptMgr.h.

◆ dead

SAIBool SmartTarget::dead

Definition at line 1401 of file SmartScriptMgr.h.

◆ dist

uint32 SmartTarget::dist

Definition at line 1356 of file SmartScriptMgr.h.

◆ entry

uint32 SmartTarget::entry

Definition at line 1350 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::farthest

◆ 

struct { ... } SmartTarget::goClosest

◆ 

struct { ... } SmartTarget::goDistance

◆ 

struct { ... } SmartTarget::goGUID

◆ 

struct { ... } SmartTarget::goRange

◆ 

struct { ... } SmartTarget::hostilRandom

◆ id

uint32 SmartTarget::id

Definition at line 1373 of file SmartScriptMgr.h.

◆ isInLos

SAIBool SmartTarget::isInLos

Definition at line 1336 of file SmartScriptMgr.h.

◆ maxDist

uint32 SmartTarget::maxDist

Definition at line 1327 of file SmartScriptMgr.h.

◆ maxSize

uint32 SmartTarget::maxSize

Definition at line 1344 of file SmartScriptMgr.h.

◆ minDist

uint32 SmartTarget::minDist

Definition at line 1342 of file SmartScriptMgr.h.

◆ o

float SmartTarget::o

Definition at line 1322 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::owner

◆ param1

uint32 SmartTarget::param1

Definition at line 1439 of file SmartScriptMgr.h.

◆ param2

uint32 SmartTarget::param2

Definition at line 1440 of file SmartScriptMgr.h.

◆ param3

uint32 SmartTarget::param3

Definition at line 1441 of file SmartScriptMgr.h.

◆ param4

uint32 SmartTarget::param4

Definition at line 1442 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::playerDistance

◆ playerOnly

SAIBool SmartTarget::playerOnly

Definition at line 1328 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::playerRange

◆ powerType

uint32 SmartTarget::powerType

Definition at line 1329 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::raw

◆ seatMask

uint32 SmartTarget::seatMask

Definition at line 1429 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::stored

◆ 

struct { ... } SmartTarget::threatList

◆ type

SMARTAI_TARGETS SmartTarget::type

Definition at line 1321 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::unitClosest

◆ 

struct { ... } SmartTarget::unitDistance

◆ 

struct { ... } SmartTarget::unitGUID

◆ 

struct { ... } SmartTarget::unitRange

◆ useCharmerOrOwner

SAIBool SmartTarget::useCharmerOrOwner

Definition at line 1424 of file SmartScriptMgr.h.

◆ 

struct { ... } SmartTarget::vehicle

◆ x

float SmartTarget::x

Definition at line 1322 of file SmartScriptMgr.h.

◆ y

float SmartTarget::y

Definition at line 1322 of file SmartScriptMgr.h.

◆ z

float SmartTarget::z

Definition at line 1322 of file SmartScriptMgr.h.


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