AzerothCore 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 ( )
69{
70 _position.Relocate(0, 0, 0, 0);
71 _transportOffset.Relocate(0, 0, 0, 0);
72}
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 
)
75{
76 _position.Relocate(x, y, z, orientation);
77 _position.m_mapId = mapId;
78 _transportOffset.Relocate(0, 0, 0, 0);
79}
uint32 m_mapId
Definition: Position.h:319

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

◆ SpellDestination() [3/4]

SpellDestination::SpellDestination ( Position const &  pos)
82{
84 _transportOffset.Relocate(0, 0, 0, 0);
85}

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

◆ SpellDestination() [4/4]

SpellDestination::SpellDestination ( WorldObject const &  wObj)
88{
89 _transportGUID = wObj.GetTransGUID();
90 _transportOffset.Relocate(wObj.GetTransOffsetX(), wObj.GetTransOffsetY(), wObj.GetTransOffsetZ(), wObj.GetTransOffsetO());
91 _position.Relocate(wObj);
92}
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