本文整理匯總了C++中GetObjectInWorld函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetObjectInWorld函數的具體用法?C++ GetObjectInWorld怎麽用?C++ GetObjectInWorld使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetObjectInWorld函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: GetObjectInWorld
Player* ObjectAccessor::FindPlayer(uint64 guid)
{
Player* plr = GetObjectInWorld(guid, (Player*)NULL);
if (!plr || !plr->IsInWorld())
return NULL;
return plr;
}
示例2: GetObjectInWorld
Corpse*
ObjectAccessor::GetCorpse(WorldObject const &u, uint64 guid)
{
Corpse * ret = GetObjectInWorld(guid, (Corpse*)NULL);
if(!ret)
return NULL;
if(ret->GetMapId() != u.GetMapId())
return NULL;
if(ret->GetInstanceId() != u.GetInstanceId())
return NULL;
return ret;
}
示例3: GetObjectInWorld
Unit* ObjectAccessor::FindUnit(uint64 guid)
{
return GetObjectInWorld(guid, (Unit*)NULL);
}
示例4: GetObjectInWorld
DynamicObject* ObjectAccessor::FindDynamicObject(uint64 guid)
{
return GetObjectInWorld(guid, (DynamicObject*)NULL);
}
示例5: GetObjectInWorld
Pet* ObjectAccessor::FindPet(ObjectGuid guid)
{
return GetObjectInWorld(guid, (Pet*)NULL);
}