DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEmoticon Class Reference

#include <emoticon.h>

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

Public Member Functions

 CEmoticon ()
int Sizeof () const override
void OnReset () override
void OnConsoleInit () override
void OnRender () override
void OnRelease () override
bool OnCursorMove (float x, float y, IInput::ECursorType CursorType) override
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 void OnStateChange (int NewState, int OldState)
virtual void OnInit ()
virtual void OnShutdown ()
virtual void OnWindowResize ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnMapLoad ()
virtual void OnMessage (int Msg, void *pRawMsg)
virtual bool OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates)
Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
virtual ~CComponentInterfaces ()=default

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 CComponentInterfaces
class CGameClientGameClient () const
class IClientClient () const
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 CRenderMapRenderMap () 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

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()

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: