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 
 
      uint32   aura 
 
   }   hostileRandom 
 
   struct { 
 
      uint32   maxDist 
 
      SAIBool   playerOnly 
 
      SAIBool   isInLos 
 
      uint32   minDist 
 
   }   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 
 
   struct { 
 
      SAIBool   includePets 
 
   }   invokerParty 
 
};  
 

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
1576 {
1577 type = t;
1578 raw.param1 = p1;
1579 raw.param2 = p2;
1580 raw.param3 = p3;
1581 raw.param4 = p4;
1582 x = 0.0f;
1583 y = 0.0f;
1584 z = 0.0f;
1585 o = 0.0f;
1586 }
float o
Definition SmartScriptMgr.h:1588
float x
Definition SmartScriptMgr.h:1588
float y
Definition SmartScriptMgr.h:1588
struct SmartTarget::@196::@220 raw
float z
Definition SmartScriptMgr.h:1588
SMARTAI_TARGETS type
Definition SmartScriptMgr.h:1587

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

Member Data Documentation

◆ [union]

union { ... } SmartTarget

◆ amount

uint32 SmartTarget::amount

◆ aura

uint32 SmartTarget::aura

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::closestAttackable

◆ [struct]

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]

struct { ... } SmartTarget::farthest

◆ [struct]

struct { ... } SmartTarget::goClosest

◆ [struct]

struct { ... } SmartTarget::goDistance

◆ [struct]

struct { ... } SmartTarget::goGUID

◆ [struct]

struct { ... } SmartTarget::goRange

◆ [struct]

struct { ... } SmartTarget::hostileRandom

◆ id

uint32 SmartTarget::id

Referenced by SmartScript::GetTargets().

◆ includePets

SAIBool SmartTarget::includePets

Referenced by SmartScript::GetTargets().

◆ index

uint32 SmartTarget::index

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::instanceStorage

◆ [struct]

struct { ... } SmartTarget::invokerParty

◆ isInLos

SAIBool SmartTarget::isInLos

◆ livingState

uint32 SmartTarget::livingState

Referenced by SmartScript::GetTargets().

◆ maxCount

uint32 SmartTarget::maxCount

Referenced by SmartScript::GetTargets().

◆ 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().

◆ [struct]

◆ param1

◆ param2

◆ param3

◆ param4

◆ [struct]

struct { ... } SmartTarget::playerDistance

◆ playerOnly

SAIBool SmartTarget::playerOnly

◆ [struct]

struct { ... } SmartTarget::playerRange

◆ [struct]

struct { ... } SmartTarget::playerWithAura

◆ powerType

uint32 SmartTarget::powerType

Referenced by SmartScript::GetTargets().

◆ [struct]

struct { ... } SmartTarget::randomPoint

◆ range

uint32 SmartTarget::range

◆ [struct]

◆ resize

uint32 SmartTarget::resize

Referenced by SmartScript::GetTargets().

◆ roleMask

uint32 SmartTarget::roleMask

Referenced by SmartScript::GetTargets().

◆ [struct]

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]

struct { ... } SmartTarget::stored

◆ [struct]

struct { ... } SmartTarget::summonedCreatures

◆ [struct]

struct { ... } SmartTarget::threatList

◆ type [1/2]

◆ type [2/2]

uint32 SmartTarget::type

◆ [struct]

struct { ... } SmartTarget::unitClosest

◆ [struct]

struct { ... } SmartTarget::unitDistance

◆ [struct]

struct { ... } SmartTarget::unitGUID

◆ [struct]

struct { ... } SmartTarget::unitRange

◆ useCharmerOrOwner

SAIBool SmartTarget::useCharmerOrOwner

◆ [struct]

struct { ... } SmartTarget::vehicle

◆ x

◆ y

◆ z


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