AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SpellDestination Struct Reference

#include "Spell.h"

Public Member Functions

 SpellDestination ()
 
 SpellDestination (float x, float y, float z, float orientation=0.0f, uint32 mapId=MAPID_INVALID)
 
 SpellDestination (Position const &pos)
 
 SpellDestination (WorldObject const &wObj)
 
void Relocate (Position const &pos)
 
void RelocateOffset (Position const &offset)
 

Public Attributes

WorldLocation _position
 
ObjectGuid _transportGUID
 
Position _transportOffset
 

Detailed Description

Constructor & Destructor Documentation

◆ SpellDestination() [1/4]

SpellDestination::SpellDestination ( )
62{
63 _position.Relocate(0, 0, 0, 0);
64 _transportOffset.Relocate(0, 0, 0, 0);
65}
void Relocate(float x, float y)
Definition: Position.h:73
Position _transportOffset
Definition: Spell.h:105
WorldLocation _position
Definition: Spell.h:103

References _position, _transportOffset, and Position::Relocate().

◆ SpellDestination() [2/4]

SpellDestination::SpellDestination ( float  x,
float  y,
float  z,
float  orientation = 0.0f,
uint32  mapId = MAPID_INVALID 
)
68{
69 _position.Relocate(x, y, z, orientation);
70 _position.m_mapId = mapId;
71 _transportOffset.Relocate(0, 0, 0, 0);
72}
uint32 m_mapId
Definition: Position.h:319

References _position, _transportOffset, WorldLocation::m_mapId, and Position::Relocate().

◆ SpellDestination() [3/4]

SpellDestination::SpellDestination ( Position const &  pos)
75{
77 _transportOffset.Relocate(0, 0, 0, 0);
78}

References _position, _transportOffset, and Position::Relocate().

◆ SpellDestination() [4/4]

SpellDestination::SpellDestination ( WorldObject const &  wObj)
81{
82 _transportGUID = wObj.GetTransGUID();
83 _transportOffset.Relocate(wObj.GetTransOffsetX(), wObj.GetTransOffsetY(), wObj.GetTransOffsetZ(), wObj.GetTransOffsetO());
84 _position.Relocate(wObj);
85}
ObjectGuid _transportGUID
Definition: Spell.h:104

References _position, _transportGUID, _transportOffset, WorldObject::GetTransGUID(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), and Position::Relocate().

Member Function Documentation

◆ Relocate()

◆ RelocateOffset()

Member Data Documentation

◆ _position

◆ _transportGUID

◆ _transportOffset