本文整理汇总了C++中CMover::ClearDest方法的典型用法代码示例。如果您正苦于以下问题:C++ CMover::ClearDest方法的具体用法?C++ CMover::ClearDest怎么用?C++ CMover::ClearDest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMover
的用法示例。
在下文中一共展示了CMover::ClearDest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
if( g_WorldMng.Get()->GetFullHeight( pMover->GetPos() ) < pMover->GetPos().y ) {
if( pMover->SendActMsg( OBJMSG_LOOKDOWN ) == 1 ) {
fMoved = true;
}
}
}
else if( bDown ) {
if( pMover->SendActMsg( OBJMSG_LOOKUP ) == 1 ) {
fMoved = true;
}
}
else {
if( pMover->SendActMsg( OBJMSG_STOP_LOOK ) == 1 ) {
fMoved = true;
}
}
if( bLeft ) {
m_fRollAng -= 1.0f;
if( m_fRollAng < -45.0f )
m_fRollAng = -45.0f;
if( pMover->SendActMsg( OBJMSG_LTURN, (int)( fTurnAngle * 100.0f ) ) == 1 ) {
fMoved = true;
}
}
else if( bRight ) {
m_fRollAng += 1.0f;
if( m_fRollAng > 45.0f )
m_fRollAng = 45.0f;
if( pMover->SendActMsg( OBJMSG_RTURN, (int)( fTurnAngle * 100.0f ) ) == 1 ) {
fMoved = true;
}
}
else {
if( m_fRollAng < 0 )
{
m_fRollAng += 2.0f;
if( m_fRollAng > 0 ) m_fRollAng = 0;
} else
if( m_fRollAng > 0 )
{
m_fRollAng -= 2.0f;
if( m_fRollAng < 0 ) m_fRollAng = 0;
}
if( pMover->SendActMsg( OBJMSG_STOP_TURN ) == 1 ) {
fMoved = true;
// fBehavior = true;
}
}
// 오른쪽 버튼 드래그는 빗자루 움직임
if( dwMessage == WM_MOUSEMOVE /*&& m_bRButtonDown*/ )
{
float fAng = pMover->GetAngle();
float fAdd = (point.x - m_ptMouseOld.x) / 2.0f;
fAng -= fAdd;
pMover->SetAngle( fAng );
float fAngX = pMover->GetAngleX();
float fAddX = (point.y - m_ptMouseOld.y) / 4.0f;
fAngX += fAddX;
if( fAddX > 0 && fAngX > 45.0f )
fAngX = 45.0f;
else
if( fAddX < 0 && fAngX < -45.0f )
fAngX = -45.0f;
pMover->SetAngleX( fAngX );
if( fAdd || fAddX )
g_DPlay.PostPlayerAngle( TRUE );
}
BOOL bTempKey;
if( bTempKey = g_bKeyTable[ '8' ] )
{
if( !m_bTemp3ed )
{
pMover->SendActMsg( OBJMSG_TEMP2 );
// __bTestLOD ^= 1;
}
}
m_bTemp3ed = bTempKey;
if( fMoved )
{
g_DPlay.SendPlayerMoved2( nFrame );
}
if( fBehavior )
{
pMover->ClearDest();
g_DPlay.SendPlayerBehavior2();
}
return nMsg;
}