AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Position.h File Reference
#include "Common.h"
#include "G3D/Vector3.h"

Go to the source code of this file.

Classes

struct  Position
 
struct  Position::PositionXYStreamer
 
struct  Position::PositionXYZStreamer
 
struct  Position::PositionXYZOStreamer
 
class  WorldLocation
 

Macros

#define MAPID_INVALID   0xFFFFFFFF
 

Functions

ByteBufferoperator<< (ByteBuffer &buf, Position::PositionXYStreamer const &streamer)
 
ByteBufferoperator>> (ByteBuffer &buf, Position::PositionXYStreamer const &streamer)
 
ByteBufferoperator<< (ByteBuffer &buf, Position::PositionXYZStreamer const &streamer)
 
ByteBufferoperator>> (ByteBuffer &buf, Position::PositionXYZStreamer const &streamer)
 
ByteBufferoperator<< (ByteBuffer &buf, Position::PositionXYZOStreamer const &streamer)
 
ByteBufferoperator>> (ByteBuffer &buf, Position::PositionXYZOStreamer const &streamer)
 

Macro Definition Documentation

◆ MAPID_INVALID

#define MAPID_INVALID   0xFFFFFFFF

Function Documentation

◆ operator<<() [1/3]

ByteBuffer & operator<< ( ByteBuffer buf,
Position::PositionXYStreamer const &  streamer 
)

◆ operator<<() [2/3]

ByteBuffer & operator<< ( ByteBuffer buf,
Position::PositionXYZOStreamer const &  streamer 
)
206{
207 float x, y, z, o;
208 streamer.m_pos->GetPosition(x, y, z, o);
209 buf << x << y << z << o;
210 return buf;
211}

References Position::GetPosition(), and Position::PositionXYZOStreamer::m_pos.

◆ operator<<() [3/3]

ByteBuffer & operator<< ( ByteBuffer buf,
Position::PositionXYZStreamer const &  streamer 
)
190{
191 float x, y, z;
192 streamer.m_pos->GetPosition(x, y, z);
193 buf << x << y << z;
194 return buf;
195}

References Position::GetPosition(), and Position::PositionXYZStreamer::m_pos.

◆ operator>>() [1/3]

ByteBuffer & operator>> ( ByteBuffer buf,
Position::PositionXYStreamer const &  streamer 
)

◆ operator>>() [2/3]

ByteBuffer & operator>> ( ByteBuffer buf,
Position::PositionXYZOStreamer const &  streamer 
)
182{
183 float x, y, z, o;
184 buf >> x >> y >> z >> o;
185 streamer.m_pos->Relocate(x, y, z, o);
186 return buf;
187}

References Position::PositionXYZOStreamer::m_pos, and Position::Relocate().

◆ operator>>() [3/3]

ByteBuffer & operator>> ( ByteBuffer buf,
Position::PositionXYZStreamer const &  streamer 
)
198{
199 float x, y, z;
200 buf >> x >> y >> z;
201 streamer.m_pos->Relocate(x, y, z);
202 return buf;
203}

References Position::PositionXYZStreamer::m_pos, and Position::Relocate().