DDraceNetwork Docs
CMapSounds Class Reference

#include <mapsounds.h>

Inheritance diagram for CMapSounds:
[legend]
Collaboration diagram for CMapSounds:
[legend]

Classes

class  CSourceQueueEntry
 

Public Member Functions

 CMapSounds ()
 
virtual int Sizeof () const override
 
void Play (int Channel, int SoundId)
 
void PlayAt (int Channel, int SoundId, vec2 Position)
 
virtual void OnMapLoad () override
 
virtual void OnRender () override
 
virtual void OnStateChange (int NewState, int OldState) override
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMapLoad ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 

Private Member Functions

void Clear ()
 

Private Attributes

int m_aSounds [MAX_MAPSOUNDS]
 
int m_Count
 
std::vector< CSourceQueueEntrym_vSourceQueue
 

Additional Inherited Members

- Protected Member Functions inherited from CComponent
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Constructor & Destructor Documentation

◆ CMapSounds()

CMapSounds::CMapSounds ( )

Member Function Documentation

◆ Clear()

void CMapSounds::Clear ( )
private

◆ OnMapLoad()

void CMapSounds::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

◆ OnRender()

void CMapSounds::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnStateChange()

void CMapSounds::OnStateChange ( int  NewState,
int  OldState 
)
overridevirtual

This method is called when the client changes state, e.g from offline to online.

See also
IClient::STATE_CONNECTING
IClient::STATE_LOADING
IClient::STATE_ONLINE

Reimplemented from CComponent.

◆ Play()

void CMapSounds::Play ( int  Channel,
int  SoundId 
)

◆ PlayAt()

void CMapSounds::PlayAt ( int  Channel,
int  SoundId,
vec2  Position 
)

◆ Sizeof()

virtual int CMapSounds::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aSounds

int CMapSounds::m_aSounds[MAX_MAPSOUNDS]
private

◆ m_Count

int CMapSounds::m_Count
private

◆ m_vSourceQueue

std::vector<CSourceQueueEntry> CMapSounds::m_vSourceQueue
private

The documentation for this class was generated from the following files: