AzerothCore 3.3.5a
OpenSource WoW Emulator
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
 
   }   hostileRandom
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
      SAIBool   isInLos
 
   }   farthest
 
   struct {
      uint32   creature
 
      uint32   minDist
 
      uint32   maxDist
 
      uint32   livingState
 
   }   unitRange
 
   struct {
      uint32   dbGuid
 
      uint32   entry
 
   }   unitGUID
 
   struct {
      uint32   maxDist
 
      uint32   roleMask
 
      uint32   resize
 
   }   roleSelection
 
   struct {
      uint32   creature
 
      uint32   dist
 
      uint32   livingState
 
   }   unitDistance
 
   struct {
      uint32   dist
 
   }   playerDistance
 
   struct {
      uint32   minDist
 
      uint32   maxDist
 
      uint32   maxCount
 
   }   playerRange
 
   struct {
      uint32   id
 
   }   stored
 
   struct {
      uint32   entry
 
      uint32   minDist
 
      uint32   maxDist
 
   }   goRange
 
   struct {
      uint32   dbGuid
 
      uint32   entry
 
   }   goGUID
 
   struct {
      uint32   entry
 
      uint32   dist
 
   }   goDistance
 
   struct {
      uint32   entry
 
      uint32   dist
 
      SAIBool   dead
 
   }   unitClosest
 
   struct {
      SAIBool   useCharmerOrOwner
 
   }   owner
 
   struct {
      uint32   seatMask
 
   }   vehicle
 
   struct {
      uint32   maxDist
 
   }   threatList
 
   struct {
      uint32   entry
 
      uint32   dist
 
      uint32   onlySpawned
 
   }   goClosest
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
   }   closestAttackable
 
   struct {
      uint32   maxDist
 
      SAIBool   playerOnly
 
   }   closestFriendly
 
   struct {
      uint32   range
 
      uint32   amount
 
      uint32   self
 
   }   randomPoint
 
   struct {
      uint32   spellId
 
      uint32   negation
 
      uint32   distMax
 
      uint32   distMin
 
   }   playerWithAura
 
   struct {
      uint32   entry
 
   }   summonedCreatures
 
   struct {
      uint32   param1
 
      uint32   param2
 
      uint32   param3
 
      uint32   param4
 
   }   raw
 
   struct {
      uint32   index
 
      uint32   type
 
   }   instanceStorage
 
}; 
 

Detailed Description

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
1525 {
1526 type = t;
1527 raw.param1 = p1;
1528 raw.param2 = p2;
1529 raw.param3 = p3;
1530 raw.param4 = p4;
1531 x = 0.0f;
1532 y = 0.0f;
1533 z = 0.0f;
1534 o = 0.0f;
1535 }
float o
Definition: SmartScriptMgr.h:1537
float x
Definition: SmartScriptMgr.h:1537
float y
Definition: SmartScriptMgr.h:1537
struct SmartTarget::@191::@215 raw
float z
Definition: SmartScriptMgr.h:1537
SMARTAI_TARGETS type
Definition: SmartScriptMgr.h:1536

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

Member Data Documentation

◆ 

union { ... } SmartTarget::@192

◆ amount

uint32 SmartTarget::amount

◆ 

struct { ... } SmartTarget::closestAttackable

◆ 

struct { ... } SmartTarget::closestFriendly

◆ creature

uint32 SmartTarget::creature

◆ dbGuid

uint32 SmartTarget::dbGuid

Referenced by SmartScript::GetTargets().

◆ dead

SAIBool SmartTarget::dead

◆ dist

uint32 SmartTarget::dist

◆ distMax

uint32 SmartTarget::distMax

Referenced by SmartScript::GetTargets().

◆ distMin

uint32 SmartTarget::distMin

Referenced by SmartScript::GetTargets().

◆ entry

uint32 SmartTarget::entry

◆ 

struct { ... } SmartTarget::farthest

◆ 

struct { ... } SmartTarget::goClosest

◆ 

struct { ... } SmartTarget::goDistance

◆ 

struct { ... } SmartTarget::goGUID

◆ 

struct { ... } SmartTarget::goRange

◆ 

struct { ... } SmartTarget::hostileRandom

◆ id

uint32 SmartTarget::id

Referenced by SmartScript::GetTargets().

◆ index

uint32 SmartTarget::index

Referenced by SmartScript::GetTargets().

◆ 

struct { ... } SmartTarget::instanceStorage

◆ isInLos

SAIBool SmartTarget::isInLos

◆ livingState

uint32 SmartTarget::livingState

Referenced by SmartScript::GetTargets().

◆ maxCount

uint32 SmartTarget::maxCount

◆ maxDist

uint32 SmartTarget::maxDist

◆ minDist

uint32 SmartTarget::minDist

Referenced by SmartScript::GetTargets().

◆ negation

uint32 SmartTarget::negation

Referenced by SmartScript::GetTargets().

◆ o

◆ onlySpawned

uint32 SmartTarget::onlySpawned

Referenced by SmartScript::GetTargets().

◆ 

◆ param1

◆ param2

◆ param3

◆ param4

◆ 

struct { ... } SmartTarget::playerDistance

◆ playerOnly

SAIBool SmartTarget::playerOnly

◆ 

struct { ... } SmartTarget::playerRange

◆ 

struct { ... } SmartTarget::playerWithAura

◆ powerType

uint32 SmartTarget::powerType

Referenced by SmartScript::GetTargets().

◆ 

struct { ... } SmartTarget::randomPoint

◆ range

uint32 SmartTarget::range

◆ 

◆ resize

uint32 SmartTarget::resize

Referenced by SmartScript::GetTargets().

◆ roleMask

uint32 SmartTarget::roleMask

Referenced by SmartScript::GetTargets().

◆ 

struct { ... } SmartTarget::roleSelection

Referenced by SmartScript::GetTargets().

◆ seatMask

uint32 SmartTarget::seatMask

Referenced by SmartScript::GetTargets().

◆ self

uint32 SmartTarget::self

◆ spellId

uint32 SmartTarget::spellId

Referenced by SmartScript::GetTargets().

◆ 

struct { ... } SmartTarget::stored

◆ 

struct { ... } SmartTarget::summonedCreatures

◆ 

struct { ... } SmartTarget::threatList

◆ type [1/2]

◆ type [2/2]

uint32 SmartTarget::type

◆ 

struct { ... } SmartTarget::unitClosest

◆ 

struct { ... } SmartTarget::unitDistance

◆ 

struct { ... } SmartTarget::unitGUID

◆ 

struct { ... } SmartTarget::unitRange

◆ useCharmerOrOwner

SAIBool SmartTarget::useCharmerOrOwner

◆ 

struct { ... } SmartTarget::vehicle

◆ x

◆ y

◆ z