DDraceNetwork Docs
CEmoticon Class Reference

#include <emoticon.h>

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

Public Member Functions

 CEmoticon ()
 
virtual int Sizeof () const override
 
virtual void OnReset () override
 
virtual void OnConsoleInit () override
 
virtual void OnRender () override
 
virtual void OnRelease () override
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType) override
 
virtual bool OnInput (const IInput::CEvent &Event) override
 
void Emote (int Emoticon)
 
void EyeEmote (int EyeEmote)
 
bool IsActive () const
 
- 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)
 

Static Private Member Functions

static void ConKeyEmoticon (IConsole::IResult *pResult, void *pUserData)
 
static void ConEmote (IConsole::IResult *pResult, void *pUserData)
 

Private Attributes

bool m_WasActive
 
bool m_Active
 
vec2 m_SelectorMouse
 
int m_SelectedEmote
 
int m_SelectedEyeEmote
 
CUi::CTouchState m_TouchState
 
bool m_TouchPressedOutside
 

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

◆ CEmoticon()

CEmoticon::CEmoticon ( )

Member Function Documentation

◆ ConEmote()

void CEmoticon::ConEmote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConKeyEmoticon()

void CEmoticon::ConKeyEmoticon ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Emote()

void CEmoticon::Emote ( int  Emoticon)

◆ EyeEmote()

void CEmoticon::EyeEmote ( int  EyeEmote)

◆ IsActive()

bool CEmoticon::IsActive ( ) const
inline

◆ OnConsoleInit()

void CEmoticon::OnConsoleInit ( )
overridevirtual

Called to let the components register their console commands.

Reimplemented from CComponent.

◆ OnCursorMove()

bool CEmoticon::OnCursorMove ( float  x,
float  y,
IInput::ECursorType  CursorType 
)
overridevirtual

Called on mouse movement, where the x and y values are deltas.

Parameters
xThe amount of change in the x coordinate since the last call.
yThe amount of change in the y coordinate since the last call.
CursorTypeThe type of cursor that caused the movement.

Reimplemented from CComponent.

◆ OnInput()

bool CEmoticon::OnInput ( const IInput::CEvent Event)
overridevirtual

Called on a input event.

Parameters
EventThe input event.

Reimplemented from CComponent.

◆ OnRelease()

void CEmoticon::OnRelease ( )
overridevirtual

Called when the input gets released, for example when a text box loses focus.

Reimplemented from CComponent.

◆ OnRender()

void CEmoticon::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CEmoticon::OnReset ( )
overridevirtual

Called to reset the component. This method is usually called on your component constructor to avoid code duplication.

See also
CHud::CHud()
CHud::OnReset()

Reimplemented from CComponent.

◆ Sizeof()

virtual int CEmoticon::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_Active

bool CEmoticon::m_Active
private

◆ m_SelectedEmote

int CEmoticon::m_SelectedEmote
private

◆ m_SelectedEyeEmote

int CEmoticon::m_SelectedEyeEmote
private

◆ m_SelectorMouse

vec2 CEmoticon::m_SelectorMouse
private

◆ m_TouchPressedOutside

bool CEmoticon::m_TouchPressedOutside
private

◆ m_TouchState

CUi::CTouchState CEmoticon::m_TouchState
private

◆ m_WasActive

bool CEmoticon::m_WasActive
private

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