DDraceNetwork Docs
translation_context.h
Go to the documentation of this file.
1#ifndef ENGINE_SHARED_TRANSLATION_CONTEXT_H
2#define ENGINE_SHARED_TRANSLATION_CONTEXT_H
3
6
8
10{
11public:
13 {
14 Reset();
15 }
16
17 void Reset();
18
19 // this class is not used
20 // it could be used in the in game menu
21 // to grey out buttons and similar
22 //
23 // but that can not be done without mixing it
24 // into the 0.6 code so it is out of scope for ddnet
26 {
27 public:
34
36 {
37 Reset();
38 }
39
40 void Reset()
41 {
42 m_KickVote = false;
43 m_KickMin = 0;
44 m_SpecVote = false;
45 m_TeamLock = false;
46 m_TeamBalance = false;
47 m_PlayerSlots = 0;
48 }
49
51
53 {
54 public:
56 {
57 Reset();
58 }
59
60 void Reset()
61 {
62 m_Active = false;
63
65 m_ColorBody = 0;
66 m_ColorFeet = 0;
67
68 m_aName[0] = '\0';
69 m_aClan[0] = '\0';
70 m_Country = 0;
71 m_aSkinName[0] = '\0';
72 m_SkinColor = 0;
73 m_Team = 0;
75 }
76
78
82
88 int m_Team;
90 };
91
96
98
101 // 0.7 game flags
102 // use in combination with protocol7::GAMEFLAG_*
103 // for example protocol7::GAMEFLAG_TEAMS
109
113
118
121};
122
123#endif
Definition: translation_context.h:53
int m_ColorFeet
Definition: translation_context.h:81
bool m_Active
Definition: translation_context.h:77
char m_aName[MAX_NAME_LENGTH]
Definition: translation_context.h:83
int m_ColorBody
Definition: translation_context.h:80
void Reset()
Definition: translation_context.h:60
char m_aClan[MAX_CLAN_LENGTH]
Definition: translation_context.h:84
char m_aSkinName[protocol7::MAX_SKIN_LENGTH]
Definition: translation_context.h:86
int m_SkinColor
Definition: translation_context.h:87
int m_Team
Definition: translation_context.h:88
int m_Country
Definition: translation_context.h:85
CClientData()
Definition: translation_context.h:55
int m_UseCustomColor
Definition: translation_context.h:79
int m_PlayerFlags7
Definition: translation_context.h:89
Definition: translation_context.h:26
bool m_TeamBalance
Definition: translation_context.h:32
int m_PlayerSlots
Definition: translation_context.h:33
bool m_TeamLock
Definition: translation_context.h:31
void Reset()
Definition: translation_context.h:40
bool m_KickVote
Definition: translation_context.h:28
bool m_SpecVote
Definition: translation_context.h:30
int m_KickMin
Definition: translation_context.h:29
CServerSettings()
Definition: translation_context.h:35
Definition: translation_context.h:10
int m_GameStartTick7
Definition: translation_context.h:119
int m_GameStateEndTick7
Definition: translation_context.h:120
CTranslationContext()
Definition: translation_context.h:12
int m_FlagCarrierBlue
Definition: translation_context.h:114
float m_aDamageTakenTick[MAX_CLIENTS]
Definition: translation_context.h:95
int m_TeamscoreRed
Definition: translation_context.h:116
bool m_ShouldSendGameInfo
Definition: translation_context.h:99
int m_aDamageTaken[MAX_CLIENTS]
Definition: translation_context.h:94
void Reset()
Definition: translation_context.cpp:5
CClientData m_aClients[MAX_CLIENTS]
Definition: translation_context.h:93
int m_MapDownloadChunksPerRequest
Definition: translation_context.h:112
int m_TeamscoreBlue
Definition: translation_context.h:117
int m_aLocalClientId[NUM_DUMMIES]
Definition: translation_context.h:97
int m_GameFlags
Definition: translation_context.h:104
int m_MatchCurrent
Definition: translation_context.h:108
int m_MapDownloadChunkSize
Definition: translation_context.h:111
int m_MapdownloadTotalsize
Definition: translation_context.h:110
int m_TimeLimit
Definition: translation_context.h:106
const protocol7::CNetObj_PlayerInfoRace * m_apPlayerInfosRace[MAX_CLIENTS]
Definition: translation_context.h:92
class CTranslationContext::CServerSettings m_ServerSettings
int m_FlagCarrierRed
Definition: translation_context.h:115
int m_ScoreLimit
Definition: translation_context.h:105
int m_MatchNum
Definition: translation_context.h:107
int m_GameStateFlags7
Definition: translation_context.h:100
@ NUM_DUMMIES
Definition: enums.h:8
@ MAX_CLAN_LENGTH
Definition: protocol.h:98
@ MAX_CLIENTS
Definition: protocol.h:88
@ MAX_NAME_LENGTH
Definition: protocol.h:97
@ MAX_SKIN_LENGTH
Definition: protocol7.h:63
Definition: protocol7.h:477