void CHL2MP_Player::State_Enter( HL2MPPlayerState newState ) { m_iPlayerState = newState; m_pCurStateInfo = State_LookupInfo( newState ); // Initialize the new state. if ( m_pCurStateInfo && m_pCurStateInfo->pfnEnterState ) (this->*m_pCurStateInfo->pfnEnterState)(); }
void CPlayerBall::State_Enter(ball_state_t newState, bool cancelQueuedState) { m_eBallState = newState; m_pCurStateInfo = State_LookupInfo( newState ); m_flStateEnterTime = gpGlobals->curtime; m_pPl = NULL; if ( m_pCurStateInfo && m_pCurStateInfo->pfnEnterState ) { (this->*m_pCurStateInfo->pfnEnterState)(); } }
void CSDKPlayer::State_Enter( SDKPlayerState newState ) { m_iPlayerState = newState; m_pCurStateInfo = State_LookupInfo( newState ); if ( SDK_ShowStateTransitions.GetInt() == -1 || SDK_ShowStateTransitions.GetInt() == entindex() ) { if ( m_pCurStateInfo ) Msg( "ShowStateTransitions: entering '%s'\n", m_pCurStateInfo->m_pStateName ); else Msg( "ShowStateTransitions: entering #%d\n", newState ); } // Initialize the new state. if ( m_pCurStateInfo && m_pCurStateInfo->pfnEnterState ) (this->*m_pCurStateInfo->pfnEnterState)(); }