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

#include <C4League.h>

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

Public Member Functions

const char * getLeague () const
 
const char * getStreamingAddr () const
 
bool haveSeed () const
 
int32_t getSeed () const
 
int32_t getMaxPlayers () 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 131 of file C4League.h.

Member Function Documentation

void C4LeagueResponseHeadStart::CompileFunc ( StdCompiler pComp)

Definition at line 116 of file C4League.cpp.

References C4LeagueResponseHead::CompileFunc(), mkNamingAdapt(), mkNamingCountAdapt(), and StdCompiler::Value().

117 {
118  // Base members
120 
121  // League name
122  pComp->Value(mkNamingAdapt(League, "League", ""));
123  pComp->Value(mkNamingAdapt(StreamingAddr, "StreamTo", ""));
124  pComp->Value(mkNamingCountAdapt(fHaveSeed, "Seed"));
125  if (fHaveSeed)
126  pComp->Value(mkNamingAdapt(iSeed, "Seed", (int32_t)0));
127  pComp->Value(mkNamingAdapt(iMaxPlayers, "MaxPlayers", (int32_t)0));
128 }
StdNamingCountAdapt< int_t > mkNamingCountAdapt(int_t &iCount, const char *szName)
Definition: StdAdaptors.h:976
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void Value(const T &rStruct)
Definition: StdCompiler.h:161
void CompileFunc(StdCompiler *pComp)
Definition: C4League.cpp:101

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:442

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:442

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:442

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:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHeadStart::getLeague ( ) const
inline

Definition at line 141 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetStartReply().

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

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:442

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t C4LeagueResponseHeadStart::getMaxPlayers ( ) const
inline

Definition at line 145 of file C4League.h.

Referenced by C4LeagueClient::GetStartReply().

145 { return iMaxPlayers; }

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:442

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t C4LeagueResponseHeadStart::getSeed ( ) const
inline

Definition at line 144 of file C4League.h.

Referenced by C4LeagueClient::GetStartReply().

144 { return iSeed; }

Here is the caller graph for this function:

const char* C4LeagueResponseHeadStart::getStreamingAddr ( ) const
inline

Definition at line 142 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetStartReply().

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool C4LeagueResponseHeadStart::haveSeed ( ) const
inline

Definition at line 143 of file C4League.h.

Referenced by C4LeagueClient::GetStartReply().

143 { return !!fHaveSeed; }

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:442
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:185

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:442
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:185

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: