void FWarpEmpire::operator() (LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->IsPC() && ch->GetEmpire() == m_bEmpire) { ch->WarpSet(m_x, m_y, m_lMapIndexTo); } } }
void operator()(LPENTITY ent) { if (NULL != ent && true == ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER pChar = static_cast<LPCHARACTER>(ent); if (true == pChar->IsPC()) { if (NULL != pChar->GetGuild()) { if (dwGuildID == pChar->GetGuild()->GetID()) { pChar->WarpSet(x, y, mapIndex); } } } } }