TrinityCore
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, 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 1259 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 1261 of file SmartScriptMgr.h.

Member Data Documentation

◆ [union]

union { ... } SmartTarget

◆ [struct]

struct { ... } SmartTarget::closestAttackable

◆ [struct]

struct { ... } SmartTarget::closestFriendly

◆ creature

uint32 SmartTarget::creature

Definition at line 1293 of file SmartScriptMgr.h.

◆ dbGuid

uint32 SmartTarget::dbGuid

Definition at line 1301 of file SmartScriptMgr.h.

◆ dead

SAIBool SmartTarget::dead

Definition at line 1353 of file SmartScriptMgr.h.

◆ dist

uint32 SmartTarget::dist

Definition at line 1308 of file SmartScriptMgr.h.

◆ entry

uint32 SmartTarget::entry

Definition at line 1302 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::farthest

◆ [struct]

struct { ... } SmartTarget::goClosest

◆ [struct]

struct { ... } SmartTarget::goDistance

◆ [struct]

struct { ... } SmartTarget::goGUID

◆ [struct]

struct { ... } SmartTarget::goRange

◆ [struct]

struct { ... } SmartTarget::hostilRandom

◆ id

uint32 SmartTarget::id

Definition at line 1325 of file SmartScriptMgr.h.

◆ isInLos

SAIBool SmartTarget::isInLos

Definition at line 1288 of file SmartScriptMgr.h.

◆ maxDist

uint32 SmartTarget::maxDist

Definition at line 1279 of file SmartScriptMgr.h.

◆ maxSize

uint32 SmartTarget::maxSize

Definition at line 1296 of file SmartScriptMgr.h.

◆ minDist

uint32 SmartTarget::minDist

Definition at line 1294 of file SmartScriptMgr.h.

◆ o

float SmartTarget::o

Definition at line 1274 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::owner

◆ param1

uint32 SmartTarget::param1

Definition at line 1391 of file SmartScriptMgr.h.

◆ param2

uint32 SmartTarget::param2

Definition at line 1392 of file SmartScriptMgr.h.

◆ param3

uint32 SmartTarget::param3

Definition at line 1393 of file SmartScriptMgr.h.

◆ param4

uint32 SmartTarget::param4

Definition at line 1394 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::playerDistance

◆ playerOnly

SAIBool SmartTarget::playerOnly

Definition at line 1280 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::playerRange

◆ powerType

uint32 SmartTarget::powerType

Definition at line 1281 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::raw

◆ seatMask

uint32 SmartTarget::seatMask

Definition at line 1381 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::stored

◆ [struct]

struct { ... } SmartTarget::threatList

◆ type

SMARTAI_TARGETS SmartTarget::type

Definition at line 1273 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::unitClosest

◆ [struct]

struct { ... } SmartTarget::unitDistance

◆ [struct]

struct { ... } SmartTarget::unitGUID

◆ [struct]

struct { ... } SmartTarget::unitRange

◆ useCharmerOrOwner

SAIBool SmartTarget::useCharmerOrOwner

Definition at line 1376 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::vehicle

◆ x

float SmartTarget::x

Definition at line 1274 of file SmartScriptMgr.h.

◆ y

float SmartTarget::y

Definition at line 1274 of file SmartScriptMgr.h.

◆ z

float SmartTarget::z

Definition at line 1274 of file SmartScriptMgr.h.


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