本文整理汇总了C++中CUser::AddTextD3D方法的典型用法代码示例。如果您正苦于以下问题:C++ CUser::AddTextD3D方法的具体用法?C++ CUser::AddTextD3D怎么用?C++ CUser::AddTextD3D使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUser
的用法示例。
在下文中一共展示了CUser::AddTextD3D方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Send
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
}
}
}
示例2: ReturnAll
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" );
}
}
}
示例3: StartRound
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 );
}
示例4: SendPrize
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." );
}
}
}