TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Position.cpp File Reference
#include "Position.h"
#include "ByteBuffer.h"
#include "GridDefines.h"
#include <G3D/g3dmath.h>
+ Include dependency graph for Position.cpp:

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)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer buf,
Position::PositionXYStreamer const streamer 
)
168 {
169  buf << streamer.Pos->GetPositionX();
170  buf << streamer.Pos->GetPositionY();
171  return buf;
172 }

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer buf,
Position::PositionXYZStreamer const streamer 
)
183 {
184  buf << streamer.Pos->GetPositionX();
185  buf << streamer.Pos->GetPositionY();
186  buf << streamer.Pos->GetPositionZ();
187  return buf;
188 }

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer buf,
Position::PositionXYZOStreamer const streamer 
)
199 {
200  buf << streamer.Pos->GetPositionX();
201  buf << streamer.Pos->GetPositionY();
202  buf << streamer.Pos->GetPositionZ();
203  buf << streamer.Pos->GetOrientation();
204  return buf;
205 }

+ Here is the call graph for this function:

ByteBuffer& operator>> ( ByteBuffer buf,
Position::PositionXYStreamer const streamer 
)
175 {
176  float x, y;
177  buf >> x >> y;
178  streamer.Pos->Relocate(x, y);
179  return buf;
180 }
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the call graph for this function:

ByteBuffer& operator>> ( ByteBuffer buf,
Position::PositionXYZStreamer const streamer 
)
191 {
192  float x, y, z;
193  buf >> x >> y >> z;
194  streamer.Pos->Relocate(x, y, z);
195  return buf;
196 }
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the call graph for this function:

ByteBuffer& operator>> ( ByteBuffer buf,
Position::PositionXYZOStreamer const streamer 
)
208 {
209  float x, y, z, o;
210  buf >> x >> y >> z >> o;
211  streamer.Pos->Relocate(x, y, z, o);
212  return buf;
213 }
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37

+ Here is the call graph for this function: