Beispiel #1
0
void CDDom::Send( CString strMessage, FONT_MSG font, D3DCOLOR d3dcolor )
{
	if( GetRunTime() == RUN_CLOSED )
		return;
	for( vector<u_long>::iterator it = m_User.begin(); it != m_User.end(); ++it )
	{
		CUser*	pUser		= static_cast<CUser*>( prj.GetUserByID( (*it ) ) );
		if( IsValidObj( pUser ) )
		{
#ifdef __NEW_FONT
			//pUser->SendTextFont( strMessage, static_cast<u_int>( font ), d3dcolor );
			pUser->AddTextD3D( strMessage, d3dcolor );//
#else
			pUser->AddTextD3D( strMessage, d3dcolor );
#endif
		}
	}
}
Beispiel #2
0
void CDDom::Send( CString strMessage )
{
	if( GetRunTime() == RUN_CLOSED )
		return;

	for( vector<u_long>::iterator it = m_User.begin(); it != m_User.end(); ++it )
	{
		CUser*	pUser		= static_cast<CUser*>( prj.GetUserByID( (*it ) ) );
		if( IsValidObj( pUser ) )
		{
			pUser->AddTextD3D( strMessage, DoubleDom::Color::nBlueCol );
		}
	}
}
Beispiel #3
0
void CDDom::ReturnAll( void )
{
	//CItemElem item;
	//item.m_dwItemId = II_CHR_FOO_COO_REMANTIS;
	//item.m_nItemNum = 5;

	for( vector<u_long>::iterator it = m_User.begin(); it != m_User.end(); ++it )
	{
		CUser* pUser		= static_cast<CUser*>( prj.GetUserByID( (*it) ) );
		if( IsValidObj( pUser ) )
		{
			pUser->m_ddomTeam = MAX_TEAM;
			pUser->SendAdditionalMover( pUser );
			pUser->AddTextD3D( "Thank you for participating", DoubleDom::Color::nBlueCol );
			pUser->Replace( g_uIdofMulti, WI_WORLD_MADRIGAL, D3DXVECTOR3( 6971.0F, 100.0F, 3327.0F ), REPLACE_FORCE, nDefaultLayer );
			//item.SetSerialNumber();
			//g_dpDBClient.SendQueryPostMail( pUser->m_idPlayer, 0, item, 10000, "Double Domination", "Thank you for participating" );
		}
	}
}			
Beispiel #4
0
void CDDom::StartRound( void )
{
	if( GetRunTime() != RUN_COOLDOWN )
		return;

	CString strRound;
	strRound.Format( "The round: %u has begun", m_dwRound +1 );
	for( vector<u_long>::iterator it = m_User.begin(); it != m_User.end(); ++it )
	{
		CUser*	pUser	= static_cast<CUser*>( prj.GetUserByID( (*it ) ) );
		if( IsValidObj( pUser ) )
		{
			pUser->AddTextD3D( strRound, DoubleDom::Color::nBlueCol );
			Safe( pUser );
		} 
	}

	SendTouch( MAX_TEAM, BASE_A );
	SendTouch( MAX_TEAM, BASE_B ); 
	SetRunTime( RUN_FIGHT );
}
Beispiel #5
0
void CDDomTeam::SendPrize( void )
{
	for( vector<DOMPLAYER>::iterator it = m_TeamPlayer.begin(); it != m_TeamPlayer.end(); ++it )
	{
		CUser*	pUser		= static_cast<CUser*>( prj.GetUserByID( it->idObj ) );
		if(	IsValidObj( pUser ) )
		{
			pUser->AddTextD3D( "You have won the Double Domination match!", DoubleDom::Color::nBlueCol );
			//item.SetSerialNumber();
	//		if( pUser->CreateItem( item ) == FALSE )
			//{
			//	g_dpDBClient.SendQueryPostMail( pUser->m_idPlayer, 0, item, 10000, "Double Domination", "You have won the match." );
			//}
		}
		else if( it->idObj != 0 )
		{
			//item.SetSerialNumber();
			//g_dpDBClient.SendQueryPostMail( pUser->m_idPlayer, 0, item, 10000, "Double Domination", "You have won the match." );
		}
	}
}