本文整理匯總了C++中GetObjectInMap函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetObjectInMap函數的具體用法?C++ GetObjectInMap怎麽用?C++ GetObjectInMap使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetObjectInMap函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: GetPlayer
Player* ObjectAccessor::GetPlayer(WorldObject const& u, uint64 guid, bool alive)
{
if (Player* pPlayer = GetObjectInMap(guid, u.GetMap(), (Player*)NULL))
if (!alive || pPlayer->isAlive())
return pPlayer;
return NULL;
}
示例2: GetPet
Pet* ObjectAccessor::GetPet(WorldObject const& u, uint64 guid, bool alive)
{
if (Pet* pPet = GetObjectInMap(guid, u.GetMap(), (Pet*)NULL))
if (!alive || pPet->isAlive())
return pPet;
return NULL;
}
示例3: GetCreature
Creature* ObjectAccessor::GetCreature(WorldObject const& u, uint64 guid, bool alive)
{
if (Creature* pCreature = GetObjectInMap(guid, u.GetMap(), (Creature*)NULL))
if (!alive || pCreature->isAlive())
return pCreature;
return NULL;
}
示例4: GetUnit
Unit* ObjectAccessor::GetUnit(WorldObject const& u, uint64 guid, bool alive)
{
if (Unit* pUnit = GetObjectInMap(guid, u.GetMap(), (Unit*)NULL))
{
if (!alive || pUnit->isAlive())
return pUnit;
}
return NULL;
}
示例5: GetObjectInMap
Player* ObjectAccessor::GetPlayer(WorldObject const& u, uint64 guid)
{
return GetObjectInMap(guid, u.GetMap(), (Player*)NULL);
}
示例6: GetObjectInMap
Transport* ObjectAccessor::GetTransport(WorldObject const& u, uint64 guid)
{
return GetObjectInMap(guid, u.GetMap(), (Transport*)NULL);
}
示例7: GetObjectInMap
Pet* ObjectAccessor::GetPet(WorldObject const& u, ObjectGuid guid)
{
return GetObjectInMap(guid, u.GetMap(), (Pet*)NULL);
}