DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
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
>
7
8
#include <
game/client/component.h
>
9
10
class
CBroadcast
:
public
CComponent
11
{
12
// broadcasts
13
char
m_aBroadcastText
[1024];
14
int
m_BroadcastTick
;
15
float
m_BroadcastRenderOffset
;
16
STextContainerIndex
m_TextContainerIndex
;
17
18
void
RenderServerBroadcast
();
19
20
public
:
21
int
Sizeof
()
const override
{
return
sizeof
(*this); }
22
void
OnReset
()
override
;
23
void
OnWindowResize
()
override
;
24
void
OnRender
()
override
;
25
void
OnMessage
(
int
MsgType,
void
*pRawMsg)
override
;
26
27
void
DoBroadcast
(
const
char
*pText);
28
};
29
30
#endif
CBroadcast
Definition
broadcast.h:11
CBroadcast::m_BroadcastTick
int m_BroadcastTick
Definition
broadcast.h:14
CBroadcast::OnMessage
void OnMessage(int MsgType, void *pRawMsg) override
Definition
broadcast.cpp:84
CBroadcast::RenderServerBroadcast
void RenderServerBroadcast()
Definition
broadcast.cpp:41
CBroadcast::Sizeof
int Sizeof() const override
Definition
broadcast.h:21
CBroadcast::m_BroadcastRenderOffset
float m_BroadcastRenderOffset
Definition
broadcast.h:15
CBroadcast::DoBroadcast
void DoBroadcast(const char *pText)
Definition
broadcast.cpp:93
CBroadcast::m_TextContainerIndex
STextContainerIndex m_TextContainerIndex
Definition
broadcast.h:16
CBroadcast::OnReset
void OnReset() override
Definition
broadcast.cpp:20
CBroadcast::m_aBroadcastText
char m_aBroadcastText[1024]
Definition
broadcast.h:13
CBroadcast::OnWindowResize
void OnWindowResize() override
Definition
broadcast.cpp:27
CBroadcast::OnRender
void OnRender() override
Definition
broadcast.cpp:33
CComponent
Definition
component.h:165
component.h
STextContainerIndex
Definition
textrender.h:175
textrender.h
src
game
client
components
broadcast.h
Generated by
1.18.0