TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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)
 

Public Attributes

SMARTAI_TARGETS type
 
float x
 
float y
 
float z
 
float o
 
union {
   struct {
      uint32   creature
 
      uint32   minDist
 
      uint32   maxDist
 
   }   unitRange
 
   struct {
      uint32   dbGuid
 
      uint32   entry
 
   }   unitGUID
 
   struct {
      uint32   creature
 
      uint32   dist
 
   }   unitDistance
 
   struct {
      uint32   dist
 
   }   playerDistance
 
   struct {
      uint32   minDist
 
      uint32   maxDist
 
   }   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   map
 
   }   position
 
   struct {
      uint32   entry
 
      uint32   dist
 
      uint32   dead
 
   }   closest
 
   struct {
      uint32   maxDist
 
      uint32   playerOnly
 
   }   closestAttackable
 
   struct {
      uint32   maxDist
 
      uint32   playerOnly
 
   }   closestFriendly
 
   struct {
      uint32   param1
 
      uint32   param2
 
      uint32   param3
 
   }   raw
 
}; 
 

Constructor & Destructor Documentation

SmartTarget::SmartTarget ( SMARTAI_TARGETS  t = SMART_TARGET_NONE,
uint32  p1 = 0,
uint32  p2 = 0,
uint32  p3 = 0 
)
inline
1107  {
1108  type = t;
1109  raw.param1 = p1;
1110  raw.param2 = p2;
1111  raw.param3 = p3;
1112  x = 0.0f;
1113  y = 0.0f;
1114  z = 0.0f;
1115  o = 0.0f;
1116  }
SMARTAI_TARGETS type
Definition: SmartScriptMgr.h:1117
float y
Definition: SmartScriptMgr.h:1118
struct SmartTarget::@194::@209 raw
float z
Definition: SmartScriptMgr.h:1118
float x
Definition: SmartScriptMgr.h:1118
float o
Definition: SmartScriptMgr.h:1118

Member Data Documentation

union { ... }
struct { ... } SmartTarget::closest
struct { ... } SmartTarget::closestAttackable
struct { ... } SmartTarget::closestFriendly
uint32 SmartTarget::creature
uint32 SmartTarget::dbGuid
uint32 SmartTarget::dead
uint32 SmartTarget::dist
uint32 SmartTarget::entry
struct { ... } SmartTarget::goDistance
struct { ... } SmartTarget::goGUID
struct { ... } SmartTarget::goRange
uint32 SmartTarget::id
uint32 SmartTarget::map
uint32 SmartTarget::maxDist
uint32 SmartTarget::minDist
float SmartTarget::o
uint32 SmartTarget::param1
uint32 SmartTarget::param2
uint32 SmartTarget::param3
struct { ... } SmartTarget::playerDistance
uint32 SmartTarget::playerOnly
struct { ... } SmartTarget::playerRange
struct { ... } SmartTarget::position
struct { ... } SmartTarget::raw
struct { ... } SmartTarget::stored
SMARTAI_TARGETS SmartTarget::type
struct { ... } SmartTarget::unitDistance
struct { ... } SmartTarget::unitGUID
struct { ... } SmartTarget::unitRange
float SmartTarget::x
float SmartTarget::y
float SmartTarget::z

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