Ejemplo n.º 1
0
void PCManager::sendGuildWarPointMsg(CWarCastle* castle, int zoneindex)
{
	map_t::iterator iter = playerMap_.begin();
	map_t::iterator endIter = playerMap_.end();
	for (; iter != endIter; ++iter)
	{
		CPC* pc = (*iter).pPlayer;
		if (pc && pc->GetJoinFlag(zoneindex) != WCJF_NONE && pc->m_pZone && pc->m_pZone->m_index == zoneindex)
		{
			CNetMsg::SP rmsg(new CNetMsg);
			GuildWarPointMsg(rmsg, pc, castle);
			SEND_Q(rmsg, pc->m_desc);
		}
	}
}
Ejemplo n.º 2
0
void PCManager::sendToWarJoinUser(CNetMsg::SP& msg, int zoneindex, bool bInZone)
{
	map_t::iterator iter = playerMap_.begin();
	map_t::iterator endIter = playerMap_.end();
	for (; iter != endIter; ++iter)
	{
		CPC* pc = (*iter).pPlayer;
		if (pc && pc->GetJoinFlag(zoneindex) == WCJF_NONE)
		{
			continue;
		}

		if (pc && !bInZone || (pc->m_pZone && pc->m_pZone->m_index == zoneindex))
		{
			SEND_Q(msg, pc->m_desc);
		}
	}
}