OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4LeagueResponseHeadAuthCheck Class Reference

#include <C4League.h>

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

Public Member Functions

int32_t getScore (const char *szLeague) const
 
int32_t getRank (const char *szLeague) const
 
int32_t getRankSymbol (const char *szLeague) const
 
const char * getClanTag () const
 
const char * getProgressData (const char *szLeague) const
 
void CompileFunc (StdCompiler *pComp)
 
const char * getCSID () const
 
const char * getMessage () const
 
bool isSuccess () const
 
bool isStatusRegister () const
 
const char * getAccount () const
 
const char * getAUID () const
 
const char * getFBID () const
 
const char * getLoginToken () const
 

Detailed Description

Definition at line 163 of file C4League.h.

Member Function Documentation

void C4LeagueResponseHeadAuthCheck::CompileFunc ( StdCompiler pComp)

Definition at line 177 of file C4League.cpp.

References C4NetMaxLeagues, C4LeagueResponseHead::CompileFunc(), mkArrayAdapt(), mkNamingAdapt(), mkParAdapt(), StdCompiler::RCT_All, and StdCompiler::Value().

178 {
179  // Base members
181 
182  // Leagues, Scores, Ranks
183  pComp->Value(mkNamingAdapt(mkArrayAdapt(Leagues, C4NetMaxLeagues, ""), "League"));
184  pComp->Value(mkNamingAdapt(mkArrayAdapt(Scores, C4NetMaxLeagues, 0), "Score"));
185  pComp->Value(mkNamingAdapt(mkArrayAdapt(Ranks, C4NetMaxLeagues, 0), "Rank"));
186  pComp->Value(mkNamingAdapt(mkArrayAdapt(RankSymbols, C4NetMaxLeagues, 0), "RankSymbol"));
187 
188  // Progress data (per scenario; not per league)
189  pComp->Value(mkNamingAdapt(mkParAdapt(ProgressData, StdCompiler::RCT_All), "ProgressData", ""));
190 
191  // Clan tag
192  pComp->Value(mkNamingAdapt(mkParAdapt(ClanTag, StdCompiler::RCT_All), "ClanTag", ""));
193 
194 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
StdArrayAdapt< T > mkArrayAdapt(T *pArray, int iSize)
Definition: StdAdaptors.h:311
const int32_t C4NetMaxLeagues
Definition: C4League.h:29
void Value(const T &rStruct)
Definition: StdCompiler.h:171
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:459
void CompileFunc(StdCompiler *pComp)
Definition: C4League.cpp:102

Here is the call graph for this function:

const char* C4LeagueResponseHead::getAccount ( ) const
inlineinherited

Definition at line 123 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply(), and C4LeagueClient::GetAuthReply().

123 { return Account.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getAUID ( ) const
inlineinherited

Definition at line 124 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

124 { return AUID.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHeadAuthCheck::getClanTag ( ) const
inline

Definition at line 178 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply().

178 { return ClanTag.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getCSID ( ) const
inlineinherited

Definition at line 119 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetStartReply().

119 { return CSID.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getFBID ( ) const
inlineinherited

Definition at line 125 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

125 { return FBID.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getLoginToken ( ) const
inlineinherited

Definition at line 126 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

126 { return LoginToken.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getMessage ( ) const
inlineinherited

Definition at line 120 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply(), C4LeagueClient::GetAuthReply(), C4LeagueClient::GetEndReply(), C4LeagueClient::GetReportDisconnectReply(), C4LeagueClient::GetStartReply(), and C4LeagueClient::GetUpdateReply().

120 { return Message.getData(); }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

const char * C4LeagueResponseHeadAuthCheck::getProgressData ( const char *  szLeague) const

Definition at line 171 of file C4League.cpp.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply().

172 {
173  // progress data is the same for all leagues
174  return ProgressData.getData();
175 }
const char * getData() const
Definition: StdBuf.h:450

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t C4LeagueResponseHeadAuthCheck::getRank ( const char *  szLeague) const

Definition at line 155 of file C4League.cpp.

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

156 {
157  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
158  if (Leagues[i] == szLeague)
159  return Ranks[i];
160  return 0;
161 }
const int32_t C4NetMaxLeagues
Definition: C4League.h:29

Here is the caller graph for this function:

int32_t C4LeagueResponseHeadAuthCheck::getRankSymbol ( const char *  szLeague) const

Definition at line 163 of file C4League.cpp.

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

164 {
165  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
166  if (Leagues[i] == szLeague)
167  return RankSymbols[i];
168  return 0;
169 }
const int32_t C4NetMaxLeagues
Definition: C4League.h:29

Here is the caller graph for this function:

int32_t C4LeagueResponseHeadAuthCheck::getScore ( const char *  szLeague) const

Definition at line 147 of file C4League.cpp.

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

148 {
149  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
150  if (Leagues[i] == szLeague)
151  return Scores[i];
152  return 0;
153 }
const int32_t C4NetMaxLeagues
Definition: C4League.h:29

Here is the caller graph for this function:

bool C4LeagueResponseHead::isStatusRegister ( ) const
inlineinherited

Definition at line 122 of file C4League.h.

References StdStrBuf::getData(), and SEqualNoCase().

Referenced by C4LeagueClient::GetAuthReply().

122 { return SEqualNoCase(Status.getData(), "Register"); }
const char * getData() const
Definition: StdBuf.h:450
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:184

Here is the call graph for this function:

Here is the caller graph for this function:

bool C4LeagueResponseHead::isSuccess ( ) const
inlineinherited

Definition at line 121 of file C4League.h.

References StdStrBuf::getData(), and SEqualNoCase().

Referenced by C4LeagueClient::GetAuthCheckReply(), C4LeagueClient::GetAuthReply(), C4LeagueClient::GetEndReply(), C4LeagueClient::GetReportDisconnectReply(), and C4LeagueClient::GetStartReply().

121 { return SEqualNoCase(Status.getData(), "Success"); }
const char * getData() const
Definition: StdBuf.h:450
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:184

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: