DDraceNetwork Docs
broadcast.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_BROADCAST_H
4#define GAME_CLIENT_COMPONENTS_BROADCAST_H
5
6#include <engine/textrender.h>
8
10
11class CBroadcast : public CComponent
12{
13 // broadcasts
14 char m_aBroadcastText[1024];
18
21
22public:
23 virtual int Sizeof() const override { return sizeof(*this); }
24 virtual void OnReset() override;
25 virtual void OnWindowResize() override;
26 virtual void OnRender() override;
27 virtual void OnMessage(int MsgType, void *pRawMsg) override;
28
29 void DoBroadcast(const char *pText);
30};
31
32#endif
Definition: broadcast.h:12
int m_BroadcastTick
Definition: broadcast.h:15
virtual void OnMessage(int MsgType, void *pRawMsg) override
Definition: broadcast.cpp:73
void RenderServerBroadcast()
Definition: broadcast.cpp:37
void OnBroadcastMessage(const CNetMsg_Sv_Broadcast *pMsg)
float m_BroadcastRenderOffset
Definition: broadcast.h:16
void DoBroadcast(const char *pText)
Definition: broadcast.cpp:82
virtual int Sizeof() const override
Definition: broadcast.h:23
STextContainerIndex m_TextContainerIndex
Definition: broadcast.h:17
virtual void OnReset() override
Definition: broadcast.cpp:16
char m_aBroadcastText[1024]
Definition: broadcast.h:14
virtual void OnWindowResize() override
Definition: broadcast.cpp:23
virtual void OnRender() override
Definition: broadcast.cpp:29
Definition: component.h:20
Definition: protocol.h:681
Definition: textrender.h:293