DDraceNetwork Docs
emoticon.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_COMPONENTS_EMOTICON_H
4#define GAME_CLIENT_COMPONENTS_EMOTICON_H
5#include <base/vmath.h>
6#include <engine/console.h>
7
9#include <game/client/ui.h>
10
11class CEmoticon : public CComponent
12{
15
19
22
23 static void ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData);
24 static void ConEmote(IConsole::IResult *pResult, void *pUserData);
25
26public:
27 CEmoticon();
28 virtual int Sizeof() const override { return sizeof(*this); }
29
30 virtual void OnReset() override;
31 virtual void OnConsoleInit() override;
32 virtual void OnRender() override;
33 virtual void OnRelease() override;
34 virtual bool OnCursorMove(float x, float y, IInput::ECursorType CursorType) override;
35 virtual bool OnInput(const IInput::CEvent &Event) override;
36
37 void Emote(int Emoticon);
38 void EyeEmote(int EyeEmote);
39
40 bool IsActive() const { return m_Active; }
41};
42
43#endif
Definition: component.h:20
Definition: emoticon.h:12
virtual bool OnInput(const IInput::CEvent &Event) override
Definition: emoticon.cpp:62
void Emote(int Emoticon)
Definition: emoticon.cpp:203
virtual void OnReset() override
Definition: emoticon.cpp:38
virtual void OnRelease() override
Definition: emoticon.cpp:47
vec2 m_SelectorMouse
Definition: emoticon.h:16
virtual bool OnCursorMove(float x, float y, IInput::ECursorType CursorType) override
Definition: emoticon.cpp:52
virtual void OnRender() override
Definition: emoticon.cpp:72
void EyeEmote(int EyeEmote)
Definition: emoticon.cpp:217
bool m_TouchPressedOutside
Definition: emoticon.h:21
bool m_WasActive
Definition: emoticon.h:13
static void ConEmote(IConsole::IResult *pResult, void *pUserData)
Definition: emoticon.cpp:27
int m_SelectedEyeEmote
Definition: emoticon.h:18
virtual int Sizeof() const override
Definition: emoticon.h:28
CEmoticon()
Definition: emoticon.cpp:15
virtual void OnConsoleInit() override
Definition: emoticon.cpp:32
static void ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData)
Definition: emoticon.cpp:20
bool m_Active
Definition: emoticon.h:14
bool IsActive() const
Definition: emoticon.h:40
CUi::CTouchState m_TouchState
Definition: emoticon.h:20
int m_SelectedEmote
Definition: emoticon.h:17
Definition: ui.h:327
Definition: console.h:45
Definition: input.h:24
ECursorType
Definition: input.h:39