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 
 
      uint32   findCreatureAliveState 
 
   }   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 
 
};  
 
std::string param_string
 

Detailed Description

Definition at line 1340 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 1342 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 1374 of file SmartScriptMgr.h.

◆ dbGuid

uint32 SmartTarget::dbGuid

Definition at line 1382 of file SmartScriptMgr.h.

◆ dist

uint32 SmartTarget::dist

Definition at line 1389 of file SmartScriptMgr.h.

◆ entry

uint32 SmartTarget::entry

Definition at line 1383 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::farthest

◆ findCreatureAliveState

uint32 SmartTarget::findCreatureAliveState

Definition at line 1434 of file SmartScriptMgr.h.

◆ [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 1406 of file SmartScriptMgr.h.

◆ isInLos

SAIBool SmartTarget::isInLos

Definition at line 1369 of file SmartScriptMgr.h.

◆ maxDist

uint32 SmartTarget::maxDist

Definition at line 1360 of file SmartScriptMgr.h.

◆ maxSize

uint32 SmartTarget::maxSize

Definition at line 1377 of file SmartScriptMgr.h.

◆ minDist

uint32 SmartTarget::minDist

Definition at line 1375 of file SmartScriptMgr.h.

◆ o

float SmartTarget::o

Definition at line 1355 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::owner

◆ param1

uint32 SmartTarget::param1

Definition at line 1472 of file SmartScriptMgr.h.

◆ param2

uint32 SmartTarget::param2

Definition at line 1473 of file SmartScriptMgr.h.

◆ param3

uint32 SmartTarget::param3

Definition at line 1474 of file SmartScriptMgr.h.

◆ param4

uint32 SmartTarget::param4

Definition at line 1475 of file SmartScriptMgr.h.

◆ param_string

std::string SmartTarget::param_string

Definition at line 1479 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::playerDistance

◆ playerOnly

SAIBool SmartTarget::playerOnly

Definition at line 1361 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::playerRange

◆ powerType

uint32 SmartTarget::powerType

Definition at line 1362 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::raw

◆ seatMask

uint32 SmartTarget::seatMask

Definition at line 1462 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::stored

◆ [struct]

struct { ... } SmartTarget::threatList

◆ type

SMARTAI_TARGETS SmartTarget::type

Definition at line 1354 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 1457 of file SmartScriptMgr.h.

◆ [struct]

struct { ... } SmartTarget::vehicle

◆ x

float SmartTarget::x

Definition at line 1355 of file SmartScriptMgr.h.

◆ y

float SmartTarget::y

Definition at line 1355 of file SmartScriptMgr.h.

◆ z

float SmartTarget::z

Definition at line 1355 of file SmartScriptMgr.h.


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