Ejemplo n.º 1
0
CClientSound::CClientSound ( CClientManager* pManager, ElementID ID ) : CClientEntity ( ID )
{
    m_pManager = pManager;
    m_pSoundManager = pManager->GetSoundManager();
    m_pSound = NULL;

    SetTypeName ( "sound" );

    m_pSoundManager->AddToList ( this );

    RelateDimension ( pManager->GetSoundManager ()->GetDimension () );

    m_fVolume = 1.0f;
    m_fMinDistance = 2.0f;
    m_usDimension = 0;
    m_b3D = false;
}
Ejemplo n.º 2
0
CClientRadarArea::CClientRadarArea ( class CClientManager* pManager, ElementID ID ) : ClassInit ( this ), CClientEntity ( ID )
{
    // Init
    m_pManager = pManager;
    m_pRadarAreaManager = pManager->GetRadarAreaManager ();
    m_Color = SColorRGBA ( 255, 255, 255, 255 );
    m_bFlashing = false;
    m_ulFlashCycleStart = 0;
    m_bStreamedIn = true;

    SetTypeName ( "radararea" );

    // Make sure we're visible/invisible according to our dimension
    RelateDimension ( m_pRadarAreaManager->GetDimension () );

    // Add us to the manager's list
    m_pRadarAreaManager->AddToList ( this );
}
Ejemplo n.º 3
0
CClientSound::CClientSound ( CClientManager* pManager, ElementID ID ) : CClientEntity ( ID )
{
    m_pManager = pManager;
    m_pSoundManager = pManager->GetSoundManager();
    m_pSound = NULL;

    SetTypeName ( "sound" );

    m_pSoundManager->AddToList ( this );

    RelateDimension ( pManager->GetSoundManager ()->GetDimension () );

    m_strPath = "";
    m_fVolume = 1.0f;
    m_fDefaultFrequency = 44100.0f;
    m_fMinDistance = 5.0f;
    m_fMaxDistance = 200.0f;
    m_usDimension = 0;
    m_b3D = false;
    m_pThread = 0;

    for ( int i=0; i<9; i++ )
        m_FxEffects[i] = 0;
}
Ejemplo n.º 4
0
void CClientRadarArea::SetDimension ( unsigned short usDimension )
{
    m_usDimension = usDimension;
    RelateDimension ( m_pRadarAreaManager->GetDimension () );
}
Ejemplo n.º 5
0
void CClientSound::SetDimension ( unsigned short usDimension )
{
    m_usDimension = usDimension;
    RelateDimension ( m_pManager->GetSoundManager ()->GetDimension () );
}