#include <ObjectGuid.h>
ObjectGuid::ObjectGuid |
( |
| ) |
|
|
inline |
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
void ObjectGuid::Clear |
( |
| ) |
|
|
inline |
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
202 {
return Global(type, counter); }
static ObjectGuid Global(HighGuid type, LowType counter)
Definition: ObjectGuid.cpp:111
static ObjectGuid RealmSpecific(HighGuid type, LowType counter)
Definition: ObjectGuid.cpp:116
208 {
return MapSpecific(type, 0, mapId, 0, entry, counter); }
static ObjectGuid MapSpecific(HighGuid type, uint8 subType, uint16 mapId, uint32 serverId, uint32 entry, LowType counter)
Definition: ObjectGuid.cpp:121
LowType ObjectGuid::GetCounter |
( |
| ) |
const |
|
inline |
uint64 _low
Definition: ObjectGuid.h:325
#define UI64LIT(N)
Definition: Define.h:138
uint32 ObjectGuid::GetEntry |
( |
| ) |
const |
|
inline |
uint32_t uint32
Definition: g3dmath.h:168
uint64 _high
Definition: ObjectGuid.h:326
HighGuid
Definition: ObjectGuid.h:60
uint64 _high
Definition: ObjectGuid.h:326
uint32 ObjectGuid::GetMapId |
( |
| ) |
const |
|
inline |
uint32_t uint32
Definition: g3dmath.h:168
uint64 _high
Definition: ObjectGuid.h:326
#define UI64LIT(N)
Definition: Define.h:138
LowType ObjectGuid::GetMaxCounter |
( |
| ) |
const |
|
inline |
LowType GetMaxCounter() const
Definition: ObjectGuid.h:228
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
std::vector< uint8 > ObjectGuid::GetRawValue |
( |
| ) |
const |
129 std::vector<uint8> raw(16);
130 memcpy(raw.data(),
this,
sizeof(*this));
uint32 ObjectGuid::GetRealmId |
( |
| ) |
const |
|
inline |
uint32_t uint32
Definition: g3dmath.h:168
uint64 _high
Definition: ObjectGuid.h:326
Definition: ObjectGuid.h:36
Definition: ObjectGuid.h:32
Definition: ObjectGuid.h:37
Definition: ObjectGuid.h:39
Definition: ObjectGuid.h:34
Definition: ObjectGuid.h:29
Definition: ObjectGuid.h:38
Definition: ObjectGuid.h:33
Definition: ObjectGuid.h:35
Definition: ObjectGuid.h:30
TypeID ObjectGuid::GetTypeId |
( |
| ) |
const |
|
inline |
TypeID GetTypeId() const
Definition: ObjectGuid.h:283
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
96 return Names.Values[
uint32(high)];
uint32_t uint32
Definition: g3dmath.h:168
char const* ObjectGuid::GetTypeName |
( |
| ) |
const |
|
inline |
char const * GetTypeName() const
Definition: ObjectGuid.h:299
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool IsEmpty() const
Definition: ObjectGuid.h:242
uint64_t uint64
Definition: g3dmath.h:170
ObjectGuid()
Definition: ObjectGuid.h:210
bool ObjectGuid::HasEntry |
( |
| ) |
const |
|
inlineprivate |
bool HasEntry() const
Definition: ObjectGuid.h:316
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsAnyTypeCreature |
( |
| ) |
const |
|
inline |
bool IsVehicle() const
Definition: ObjectGuid.h:245
bool IsCreature() const
Definition: ObjectGuid.h:243
bool IsPet() const
Definition: ObjectGuid.h:244
bool ObjectGuid::IsAnyTypeGameObject |
( |
| ) |
const |
|
inline |
bool IsGameObject() const
Definition: ObjectGuid.h:252
bool IsMOTransport() const
Definition: ObjectGuid.h:256
bool ObjectGuid::IsAreaTrigger |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsConversation |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsCorpse |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsCreature |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsCreatureOrPet |
( |
| ) |
const |
|
inline |
bool IsCreature() const
Definition: ObjectGuid.h:243
bool IsPet() const
Definition: ObjectGuid.h:244
bool ObjectGuid::IsCreatureOrVehicle |
( |
| ) |
const |
|
inline |
bool IsVehicle() const
Definition: ObjectGuid.h:245
bool IsCreature() const
Definition: ObjectGuid.h:243
bool ObjectGuid::IsDynamicObject |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsEmpty |
( |
| ) |
const |
|
inline |
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
bool ObjectGuid::IsGameObject |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsGuild |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsItem |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsMOTransport |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsParty |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsPet |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsPlayer |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool IsEmpty() const
Definition: ObjectGuid.h:242
bool ObjectGuid::IsSceneObject |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
bool ObjectGuid::IsUnit |
( |
| ) |
const |
|
inline |
bool IsPlayer() const
Definition: ObjectGuid.h:249
bool IsAnyTypeCreature() const
Definition: ObjectGuid.h:248
bool ObjectGuid::IsVehicle |
( |
| ) |
const |
|
inline |
HighGuid GetHigh() const
Definition: ObjectGuid.h:217
uint32 Realm
Definition: Realm.h:53
Realm realm
Definition: World.cpp:3485
#define UI64LIT(N)
Definition: Define.h:138
uint64_t uint64
Definition: g3dmath.h:170
Battlenet::RealmHandle Id
Definition: Realm.h:86
uint64_t uint64
Definition: Define.h:149
ObjectGuid()
Definition: ObjectGuid.h:210
bool ObjectGuid::operator! |
( |
| ) |
const |
|
inline |
bool IsEmpty() const
Definition: ObjectGuid.h:242
287 {
return !(*
this == guid); }
290 if (
_high < guid._high)
292 else if (
_high > guid._high)
295 return _low < guid._low;
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
286 {
return _low == guid._low &&
_high == guid._high; }
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
uint64 _low
Definition: ObjectGuid.h:325
uint64_t uint64
Definition: Define.h:149
uint8_t uint8
Definition: Define.h:152
#define ASSERT
Definition: Errors.h:55
uint64 _low
Definition: ObjectGuid.h:325
uint64_t uint64
Definition: Define.h:149
uint8_t uint8
Definition: Define.h:152
#define ASSERT
Definition: Errors.h:55
uint32 Realm
Definition: Realm.h:53
Realm realm
Definition: World.cpp:3485
uint64_t uint64
Definition: g3dmath.h:170
Battlenet::RealmHandle Id
Definition: Realm.h:86
ObjectGuid()
Definition: ObjectGuid.h:210
void ObjectGuid::SetRawValue |
( |
std::vector< uint8 > const & |
guid | ) |
|
136 ASSERT(guid.size() ==
sizeof(*this));
137 memcpy(
this, guid.data(),
sizeof(*this));
#define ASSERT
Definition: Errors.h:55
uint64 _low
Definition: ObjectGuid.h:325
uint64 _high
Definition: ObjectGuid.h:326
std::string ObjectGuid::ToString |
( |
| ) |
const |
101 std::ostringstream str;
102 str <<
"GUID Full: 0x" <<
std::hex << std::uppercase << std::setw(16) << std::setfill(
'0') <<
_high << std::setw(16) <<
_low << std::dec << std::nouppercase;
105 str << (
IsPet() ?
" Pet number: " :
" Entry: ") <<
GetEntry();
IntFormatSpec< int, TypeSpec<'x'> > hex(int value)
uint64 _low
Definition: ObjectGuid.h:325
char const * GetTypeName() const
Definition: ObjectGuid.h:299
uint32 GetEntry() const
Definition: ObjectGuid.h:220
bool HasEntry() const
Definition: ObjectGuid.h:316
uint64 _high
Definition: ObjectGuid.h:326
bool IsPet() const
Definition: ObjectGuid.h:244
LowType GetCounter() const
Definition: ObjectGuid.h:221
184 std::ostringstream tmp;
185 tmp <<
std::hex << std::setw(16) << std::setfill(
'0') << guid._high << std::setw(16) << std::setfill(
'0') << guid._low;
IntFormatSpec< int, TypeSpec<'x'> > hex(int value)
151 std::size_t pos = buf.
wpos();
152 buf <<
uint8(lowMask);
153 buf <<
uint8(highMask);
157 buf.
append(packed, packedSize);
159 buf.
append(packed, packedSize);
161 buf.
put(pos, lowMask);
162 buf.
put(pos + 1, highMask);
void FlushBits()
Definition: ByteBuffer.h:150
size_t wpos() const
Definition: ByteBuffer.h:454
static size_t PackUInt64(uint64 value, uint8 *mask, uint8 *result)
Definition: ByteBuffer.h:660
void put(size_t pos, T value)
Definition: ByteBuffer.h:227
void append(T value)
Definition: ByteBuffer.h:143
uint8_t uint8
Definition: g3dmath.h:164
uint8_t uint8
Definition: Define.h:152
169 uint8 lowMask, highMask;
170 buf >> lowMask >> highMask;
void ReadPackedUInt64(uint64 &guid)
Definition: ByteBuffer.h:511
uint64 _low
Definition: ObjectGuid.h:325
uint8_t uint8
Definition: Define.h:152
uint64 _high
Definition: ObjectGuid.h:326
The documentation for this class was generated from the following files: