#include <C4Network2Reference.h>
Public Member Functions | |
C4Network2Reference () | |
~C4Network2Reference () | |
const C4Network2Address & | getAddr (int i) const |
C4Network2Address & | getAddr (int i) |
int | getAddrCnt () const |
const char * | getTitle () const |
int32_t | getIcon () const |
C4Network2Status | getGameStatus () const |
const char * | getComment () const |
const C4GameVersion & | getGameVersion () const |
bool | isPasswordNeeded () const |
bool | isJoinAllowed () const |
bool | isOfficialServer () const |
int32_t | getSortOrder () const |
int32_t | getTime () const |
int32_t | getStartTime () const |
StdStrBuf | getGameGoalString () const |
bool | isEditor () const |
C4NetpuncherID | getNetpuncherGameID () const |
StdStrBuf | getNetpuncherAddr () const |
void | SetSourceAddress (const C4NetIO::EndpointAddress &ip) |
const C4NetIO::EndpointAddress & | GetSourceAddress () const |
void | InitLocal () |
void | SortNullIPsBack () |
void | CompileFunc (StdCompiler *pComp) |
Public Attributes | |
C4GameParameters | Parameters |
Definition at line 28 of file C4Network2Reference.h.
C4Network2Reference::C4Network2Reference | ( | ) |
Definition at line 25 of file C4Network2Reference.cpp.
|
default |
void C4Network2Reference::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 100 of file C4Network2Reference.cpp.
References C4ClientMaxAddr, C4GameVersion::iVer, mkArrayAdapt(), mkArrayAdaptDM(), mkIntPackAdapt(), mkNamingAdapt(), mkParAdapt(), Parameters, StdCompiler::RCT_All, StdCompiler::RCT_IdtfAllowEmpty, C4GameVersion::sEngineName, and StdCompiler::Value().
|
inline |
Definition at line 67 of file C4Network2Reference.h.
|
inline |
Definition at line 66 of file C4Network2Reference.h.
Referenced by C4StartupNetListEntry::IsSameAddress(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 68 of file C4Network2Reference.h.
Referenced by C4StartupNetListEntry::IsSameAddress(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 72 of file C4Network2Reference.h.
References StdStrBuf::getData().
Referenced by C4StartupNetListEntry::KeywordMatch(), and C4StartupNetListEntry::SetReference().
StdStrBuf C4Network2Reference::getGameGoalString | ( | ) | const |
Definition at line 146 of file C4Network2Reference.cpp.
References FormatString(), StdStrBuf::getData(), C4GameParameters::GetGameGoalString(), StdStrBuf::getLength(), LoadResStr(), and Parameters.
Referenced by C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 71 of file C4Network2Reference.h.
Referenced by C4StartupNetDlg::DoOK(), getSortOrder(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 73 of file C4Network2Reference.h.
References Game.
Referenced by C4StartupNetDlg::DoOK(), getSortOrder(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 70 of file C4Network2Reference.h.
Referenced by C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 83 of file C4Network2Reference.h.
|
inline |
Definition at line 82 of file C4Network2Reference.h.
int32_t C4Network2Reference::getSortOrder | ( | ) | const |
Definition at line 128 of file C4Network2Reference.cpp.
References Config, getGameStatus(), getGameVersion(), isJoinAllowed(), C4GameParameters::isLeague(), isOfficialServer(), isPasswordNeeded(), C4Config::Network, Parameters, and C4ConfigNetwork::UseAlternateServer.
Referenced by C4StartupNetListEntry::OnReference(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 86 of file C4Network2Reference.h.
|
inline |
Definition at line 79 of file C4Network2Reference.h.
|
inline |
Definition at line 78 of file C4Network2Reference.h.
Referenced by C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 69 of file C4Network2Reference.h.
References StdStrBuf::getData().
Referenced by C4Game::InitNetworkFromReference(), C4StartupNetListEntry::KeywordMatch(), and C4StartupNetListEntry::SetReference().
void C4Network2Reference::InitLocal | ( | ) |
Definition at line 40 of file C4Network2Reference.cpp.
References Application, C4ConfigNetwork::Comment, Config, ValidatedStdCopyStrBufBase::CopyValidated(), C4PlayerInfo::DiscardResource(), C4Network2Client::getAddr(), C4Network2Client::getAddrCnt(), C4PlayerInfo::GetID(), C4PlayerInfoList::GetIndexedInfo(), C4Network2::getNetpuncherAddr(), C4Network2::getNetpuncherGameID(), C4ClientPlayerInfos::GetPlayerInfo(), C4Application::isEditor, C4Network2::isJoinAllowed(), C4Network2::isObservingAllowed(), C4Network2::isPassworded(), Network, C4Config::Network, Parameters, C4GameParameters::PlayerInfos, C4GameVersion::Set(), C4PlayerInfo::SetLeaguePerformance(), and C4Network2::Status.
Referenced by C4Network2::Execute(), C4Network2::LeagueEnd(), C4Network2::LeagueStart(), and C4Network2::LeagueUpdate().
|
inline |
Definition at line 81 of file C4Network2Reference.h.
Referenced by C4StartupNetDlg::DoOK(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 75 of file C4Network2Reference.h.
Referenced by C4StartupNetDlg::DoOK(), getSortOrder(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 76 of file C4Network2Reference.h.
Referenced by getSortOrder(), and C4StartupNetListEntry::SetReference().
|
inline |
Definition at line 74 of file C4Network2Reference.h.
Referenced by getSortOrder(), and C4StartupNetListEntry::SetReference().
void C4Network2Reference::SetSourceAddress | ( | const C4NetIO::EndpointAddress & | ip | ) |
Definition at line 33 of file C4Network2Reference.cpp.
References C4ClientMaxAddr, and C4Network2Address::SetAddr().
void C4Network2Reference::SortNullIPsBack | ( | ) |
Definition at line 84 of file C4Network2Reference.cpp.
C4GameParameters C4Network2Reference::Parameters |
Definition at line 35 of file C4Network2Reference.h.
Referenced by CompileFunc(), getGameGoalString(), getSortOrder(), InitLocal(), C4Game::InitNetworkFromReference(), C4StartupNetListEntry::IsSameHost(), C4StartupNetListEntry::KeywordMatch(), C4StartupNetListEntry::OnReference(), and C4StartupNetListEntry::SetReference().