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 ( )
68{
69 _position.Relocate(0, 0, 0, 0);
70 _transportOffset.Relocate(0, 0, 0, 0);
71}
void Relocate(float x, float y)
Definition: Position.h:72
Position _transportOffset
Definition: Spell.h:107
WorldLocation _position
Definition: Spell.h:105

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 
)
74{
75 _position.Relocate(x, y, z, orientation);
76 _position.m_mapId = mapId;
77 _transportOffset.Relocate(0, 0, 0, 0);
78}
uint32 m_mapId
Definition: Position.h:318

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

◆ SpellDestination() [3/4]

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

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

◆ SpellDestination() [4/4]

SpellDestination::SpellDestination ( WorldObject const &  wObj)
87{
88 _transportGUID = wObj.GetTransGUID();
89 _transportOffset.Relocate(wObj.GetTransOffsetX(), wObj.GetTransOffsetY(), wObj.GetTransOffsetZ(), wObj.GetTransOffsetO());
90 _position.Relocate(wObj);
91}
ObjectGuid _transportGUID
Definition: Spell.h:106

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