OpenClonk
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

◆ CompileFunc()

void C4LeagueResponseHeadAuthCheck::CompileFunc ( StdCompiler pComp)

Definition at line 176 of file C4League.cpp.

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

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

Here is the call graph for this function:

◆ getAccount()

const char* C4LeagueResponseHead::getAccount ( ) const
inlineinherited

Definition at line 123 of file C4League.h.

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

References StdStrBuf::getData().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAUID()

const char* C4LeagueResponseHead::getAUID ( ) const
inlineinherited

Definition at line 124 of file C4League.h.

124 { return AUID.getData(); }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClanTag()

const char* C4LeagueResponseHeadAuthCheck::getClanTag ( ) const
inline

Definition at line 178 of file C4League.h.

178 { return ClanTag.getData(); }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCSID()

const char* C4LeagueResponseHead::getCSID ( ) const
inlineinherited

Definition at line 119 of file C4League.h.

119 { return CSID.getData(); }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetStartReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFBID()

const char* C4LeagueResponseHead::getFBID ( ) const
inlineinherited

Definition at line 125 of file C4League.h.

125 { return FBID.getData(); }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLoginToken()

const char* C4LeagueResponseHead::getLoginToken ( ) const
inlineinherited

Definition at line 126 of file C4League.h.

126 { return LoginToken.getData(); }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMessage()

const char* C4LeagueResponseHead::getMessage ( ) const
inlineinherited

Definition at line 120 of file C4League.h.

120 { return Message.getData(); }

References StdStrBuf::getData().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProgressData()

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

Definition at line 170 of file C4League.cpp.

171 {
172  // progress data is the same for all leagues
173  return ProgressData.getData();
174 }

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getRank()

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

Definition at line 154 of file C4League.cpp.

155 {
156  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
157  if (Leagues[i] == szLeague)
158  return Ranks[i];
159  return 0;
160 }

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

Here is the caller graph for this function:

◆ getRankSymbol()

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

Definition at line 162 of file C4League.cpp.

163 {
164  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
165  if (Leagues[i] == szLeague)
166  return RankSymbols[i];
167  return 0;
168 }

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

Here is the caller graph for this function:

◆ getScore()

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

Definition at line 146 of file C4League.cpp.

147 {
148  for (int32_t i = 0; i < C4NetMaxLeagues; i++)
149  if (Leagues[i] == szLeague)
150  return Scores[i];
151  return 0;
152 }

References C4NetMaxLeagues.

Referenced by C4LeagueClient::GetAuthCheckReply().

Here is the caller graph for this function:

◆ isStatusRegister()

bool C4LeagueResponseHead::isStatusRegister ( ) const
inlineinherited

Definition at line 122 of file C4League.h.

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

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

Referenced by C4LeagueClient::GetAuthReply().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSuccess()

bool C4LeagueResponseHead::isSuccess ( ) const
inlineinherited

Definition at line 121 of file C4League.h.

121 { return SEqualNoCase(Status.getData(), "Success"); }

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

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

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: