本文整理汇总了C++中CUser::AddQuestTextTime方法的典型用法代码示例。如果您正苦于以下问题:C++ CUser::AddQuestTextTime方法的具体用法?C++ CUser::AddQuestTextTime怎么用?C++ CUser::AddQuestTextTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUser
的用法示例。
在下文中一共展示了CUser::AddQuestTextTime方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RemoveAllDynamicObj
void CPartyQuestProcessor::RemoveAllDynamicObj( DWORD dwWorldID, D3DXVECTOR3 vPos, int nRange )
{
CWorld* pWorld = g_WorldMng.GetWorld( dwWorldID );
if( !pWorld )
return;
CObj* pObj;
D3DXVECTOR3 vDist;
FOR_LINKMAP( pWorld, vPos, pObj, nRange, CObj::linkDynamic, nTempLayer )
{
if( pObj )
{
if( pObj->GetType() == OT_MOVER && ((CMover *)pObj)->IsPeaceful() == FALSE )
{
pObj->Delete();
}
}
}
END_LINKMAP
D3DXVECTOR3 vPos2 = D3DXVECTOR3( 6968.0f, 0, 3328.8f );
FOR_LINKMAP( pWorld, vPos, pObj, nRange, CObj::linkPlayer, nTempLayer )
{
if( pObj )
{
CUser* pUser = (CUser*)pObj;
pUser->AddQuestTextTime( 0, 0, 0xffffffff );
( (CUser*)pObj )->REPLACE( g_uIdofMulti, WI_WORLD_MADRIGAL, vPos2, REPLACE_NORMAL, nDefaultLayer );
}
}
END_LINKMAP
}
示例2: SendQuestLimitTime
void CPartyQuestProcessor::SendQuestLimitTime( int nState, DWORD dwTime, u_long idParty )
{
CParty* pParty = g_PartyMng.GetParty( idParty );
if( pParty )
{
int i; for( i = 0 ; i < pParty->GetSizeofMember() ; ++i )
{
CUser* pUsertmp = (CUser *)prj.GetUserByID( pParty->GetPlayerId( i ) );
if( IsValidObj( pUsertmp ) )
{
pUsertmp->AddQuestTextTime( 1, nState, dwTime );
}
}
}
}
示例3: Process
//.........这里部分代码省略.........
// 아직 열시미 잡고있는중이다~
{
switch( pElem->nProcess )
{
case PQP_WORMON:
{
TRACE( "PQP_WORMON - p\n" );
if( ++pElem->nCount < 10 )
continue;
CRect rect;
rect.SetRect( pProp->x1, pProp->y2, pProp->x2, pProp->y1 );
BOOL bsurvivor = FALSE; // is survivor exists?
if( pParty )
{
CUser* pUser;
for( int k = 0 ; k < pParty->GetSizeofMember() ; k++ )
{
u_long idPlayer = pParty->GetPlayerId( k );
pUser = (CUser*)prj.GetUserByID( idPlayer );
if( IsValidObj( pUser ) )
{
POINT point = { (int)pUser->GetPos().x, (int)pUser->GetPos().z };
if( rect.PtInRect( point ) && pUser->IsLive() )
{
bsurvivor = TRUE;
break;
}
else
{
pUser->AddQuestTextTime( 0, 0, 0xffffffff );
}
}
}
for( int k = 0 ; k < pParty->GetSizeofMember() ; k++ )
{
u_long idPlayer = pParty->GetPlayerId( k );
pUser = (CUser*)prj.GetUserByID( idPlayer );
if( IsValidObj( pUser ) )
{
POINT point = { (int)pUser->GetPos().x, (int)pUser->GetPos().z };
if( !rect.PtInRect( point ) )
{
pUser->AddQuestTextTime( 0, 0, 0xffffffff );
}
}
}
}
if( !bsurvivor )
{
// if( pParty )
// {
// pParty->ReplaceLodestar( rect );
// }
/*
CMover* pWormon = prj.GetMover( pElem->objidWormon );
if( pWormon )
pWormon->Delete();
*/
CPoint point;