TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Position.h File Reference
#include "Common.h"
#include <G3D/Vector3.h>
+ Include dependency graph for Position.h:
+ This graph shows which files directly or indirectly include this file:

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

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

Macro Definition Documentation

#define MAPID_INVALID   0xFFFFFFFF

Function Documentation

TC_GAME_API 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:

TC_GAME_API 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:

TC_GAME_API 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:

TC_GAME_API 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:

TC_GAME_API 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:

TC_GAME_API 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: