本文整理汇总了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);
}