当前位置: 首页>>代码示例>>C++>>正文


C++ CUser::AddTextD3D方法代码示例

本文整理汇总了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
        }
    }
}
开发者ID:careysky,项目名称:FlyFF,代码行数:18,代码来源:DDom.cpp

示例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" );
        }
    }
}			
开发者ID:careysky,项目名称:FlyFF,代码行数:20,代码来源:DDom.cpp

示例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 );
}
开发者ID:careysky,项目名称:FlyFF,代码行数:21,代码来源:DDom.cpp

示例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." );
        }
    }
}
开发者ID:careysky,项目名称:FlyFF,代码行数:21,代码来源:DDom.cpp


注:本文中的CUser::AddTextD3D方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。