Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PeerThreadClass Class Reference

Inherits ThreadClass.

Public Member Functions

 PeerThreadClass ()
 
void Thread_Function ()
 
void markAsDisconnected (void)
 
void connectCallback (PEER peer, PEERBool success)
 
void nickErrorCallback (PEER peer, Int type, const char *nick)
 
Bool isConnecting (void)
 
Bool isConnected (void)
 
Int addServerToMap (SBServer server)
 
Int removeServerFromMap (SBServer server)
 
void clearServers (void)
 
SBServer findServerByID (Int id)
 
Int findServer (SBServer server)
 
Bool isHosting (void)
 
void stopHostingAlready (PEER peer)
 
Bool hasPassword (void)
 
Bool allowObservers (void)
 
Bool useStats (void) const
 
std::string getMapName (void)
 
UnsignedInt exeCRC (void)
 
UnsignedInt iniCRC (void)
 
UnsignedInt gameVersion (void)
 
std::wstring getLocalStagingServerName (void)
 
Int getLocalRoomID (void)
 
std::string ladderIP (void)
 
UnsignedShort ladderPort (void)
 
std::string pingStr (void)
 
std::string getPlayerName (Int idx)
 
Int getPlayerWins (Int idx)
 
Int getPlayerLosses (Int idx)
 
Int getPlayerProfileID (Int idx)
 
Int getPlayerFaction (Int idx)
 
Int getPlayerColor (Int idx)
 
Int getNumPlayers (void)
 
Int getMaxPlayers (void)
 
Int getNumObservers (void)
 
void roomJoined (Bool val)
 
void setQMGroupRoom (Int groupID)
 
void sawEndOfEnumPlayers (void)
 
void sawMatchbot (std::string bot)
 
QMStatus getQMStatus (void)
 
void handleQMMatch (PEER peer, Int mapIndex, Int seed, char *playerName[MAX_SLOTS], char *playerIP[MAX_SLOTS], char *playerSide[MAX_SLOTS], char *playerColor[MAX_SLOTS], char *playerNAT[MAX_SLOTS])
 
std::string getQMBotName (void)
 
Int getQMGroupRoom (void)
 
Int getQMLadder (void)
 
Int getCurrentGroupRoom (void)
 
void pushStatsToRoom (PEER peer)
 
void getStatsFromRoom (PEER peer, RoomType roomType)
 
void trackStatsForPlayer (RoomType roomType, const char *nick, const char *key, const char *val)
 
int lookupStatForPlayer (RoomType roomType, const char *nick, const char *key)
 
void clearPlayerStats (RoomType roomType)
 
void setSawCompleteGameList (Bool val)
 
Bool getSawCompleteGameList ()
 
- Public Member Functions inherited from ThreadClass
 ThreadClass (const char *name=NULL, ExceptionHandlerType exception_handler=NULL)
 
virtual ~ThreadClass ()
 
void Execute ()
 
void Set_Priority (int priority)
 
void Stop (unsigned ms=3000)
 
bool Is_Running ()
 
const char * Get_Name (void)
 

Additional Inherited Members

- Public Types inherited from ThreadClass
typedef int(* ExceptionHandlerType) (int exception_code, struct _EXCEPTION_POINTERS *e_info)
 
- Static Public Member Functions inherited from ThreadClass
static void Sleep_Ms (unsigned ms=0)
 
static void Switch_Thread ()
 
static unsigned _Get_Current_Thread_ID ()
 
static int Get_Thread_By_Index (int index, char *name_ptr=NULL)
 
- Protected Attributes inherited from ThreadClass
volatile bool running
 
char ThreadName [64]
 
unsigned ThreadID
 
ExceptionHandlerType ExceptionHandler
 

Detailed Description

Definition at line 185 of file PeerThread.cpp.

Constructor & Destructor Documentation

◆ PeerThreadClass()

PeerThreadClass::PeerThreadClass ( )
inline

Definition at line 189 of file PeerThread.cpp.

Member Function Documentation

◆ addServerToMap()

Int PeerThreadClass::addServerToMap ( SBServer server)

Definition at line 426 of file PeerThread.cpp.

◆ allowObservers()

Bool PeerThreadClass::allowObservers ( void )
inline

Definition at line 246 of file PeerThread.cpp.

◆ clearPlayerStats()

void PeerThreadClass::clearPlayerStats ( RoomType roomType)

Definition at line 393 of file PeerThread.cpp.

◆ clearServers()

void PeerThreadClass::clearServers ( void )

Definition at line 448 of file PeerThread.cpp.

◆ connectCallback()

void PeerThreadClass::connectCallback ( PEER peer,
PEERBool success )

Definition at line 2249 of file PeerThread.cpp.

◆ exeCRC()

UnsignedInt PeerThreadClass::exeCRC ( void )
inline

Definition at line 249 of file PeerThread.cpp.

◆ findServer()

Int PeerThreadClass::findServer ( SBServer server)

Definition at line 469 of file PeerThread.cpp.

◆ findServerByID()

SBServer PeerThreadClass::findServerByID ( Int id)

Definition at line 453 of file PeerThread.cpp.

◆ gameVersion()

UnsignedInt PeerThreadClass::gameVersion ( void )
inline

Definition at line 251 of file PeerThread.cpp.

◆ getCurrentGroupRoom()

Int PeerThreadClass::getCurrentGroupRoom ( void )
inline

Definition at line 277 of file PeerThread.cpp.

◆ getLocalRoomID()

Int PeerThreadClass::getLocalRoomID ( void )
inline

Definition at line 253 of file PeerThread.cpp.

◆ getLocalStagingServerName()

std::wstring PeerThreadClass::getLocalStagingServerName ( void )
inline

Definition at line 252 of file PeerThread.cpp.

◆ getMapName()

std::string PeerThreadClass::getMapName ( void )
inline

Definition at line 248 of file PeerThread.cpp.

◆ getMaxPlayers()

Int PeerThreadClass::getMaxPlayers ( void )
inline

Definition at line 264 of file PeerThread.cpp.

◆ getNumObservers()

Int PeerThreadClass::getNumObservers ( void )
inline

Definition at line 265 of file PeerThread.cpp.

◆ getNumPlayers()

Int PeerThreadClass::getNumPlayers ( void )
inline

Definition at line 263 of file PeerThread.cpp.

◆ getPlayerColor()

Int PeerThreadClass::getPlayerColor ( Int idx)
inline

Definition at line 262 of file PeerThread.cpp.

◆ getPlayerFaction()

Int PeerThreadClass::getPlayerFaction ( Int idx)
inline

Definition at line 261 of file PeerThread.cpp.

◆ getPlayerLosses()

Int PeerThreadClass::getPlayerLosses ( Int idx)
inline

Definition at line 259 of file PeerThread.cpp.

◆ getPlayerName()

std::string PeerThreadClass::getPlayerName ( Int idx)
inline

Definition at line 257 of file PeerThread.cpp.

◆ getPlayerProfileID()

Int PeerThreadClass::getPlayerProfileID ( Int idx)
inline

Definition at line 260 of file PeerThread.cpp.

◆ getPlayerWins()

Int PeerThreadClass::getPlayerWins ( Int idx)
inline

Definition at line 258 of file PeerThread.cpp.

◆ getQMBotName()

std::string PeerThreadClass::getQMBotName ( void )
inline

Definition at line 273 of file PeerThread.cpp.

◆ getQMGroupRoom()

Int PeerThreadClass::getQMGroupRoom ( void )
inline

Definition at line 274 of file PeerThread.cpp.

◆ getQMLadder()

Int PeerThreadClass::getQMLadder ( void )
inline

Definition at line 275 of file PeerThread.cpp.

◆ getQMStatus()

QMStatus PeerThreadClass::getQMStatus ( void )
inline

Definition at line 271 of file PeerThread.cpp.

◆ getSawCompleteGameList()

Bool PeerThreadClass::getSawCompleteGameList ( )
inline

Definition at line 288 of file PeerThread.cpp.

◆ getStatsFromRoom()

void PeerThreadClass::getStatsFromRoom ( PEER peer,
RoomType roomType )

Definition at line 420 of file PeerThread.cpp.

◆ handleQMMatch()

void PeerThreadClass::handleQMMatch ( PEER peer,
Int mapIndex,
Int seed,
char * playerName[MAX_SLOTS],
char * playerIP[MAX_SLOTS],
char * playerSide[MAX_SLOTS],
char * playerColor[MAX_SLOTS],
char * playerNAT[MAX_SLOTS] )

Definition at line 1822 of file PeerThread.cpp.

◆ hasPassword()

Bool PeerThreadClass::hasPassword ( void )
inline

Definition at line 245 of file PeerThread.cpp.

◆ iniCRC()

UnsignedInt PeerThreadClass::iniCRC ( void )
inline

Definition at line 250 of file PeerThread.cpp.

◆ isConnected()

Bool PeerThreadClass::isConnected ( void )
inline

Definition at line 234 of file PeerThread.cpp.

◆ isConnecting()

Bool PeerThreadClass::isConnecting ( void )
inline

Definition at line 233 of file PeerThread.cpp.

◆ isHosting()

Bool PeerThreadClass::isHosting ( void )
inline

Definition at line 243 of file PeerThread.cpp.

◆ ladderIP()

std::string PeerThreadClass::ladderIP ( void )
inline

Definition at line 254 of file PeerThread.cpp.

◆ ladderPort()

UnsignedShort PeerThreadClass::ladderPort ( void )
inline

Definition at line 255 of file PeerThread.cpp.

◆ lookupStatForPlayer()

int PeerThreadClass::lookupStatForPlayer ( RoomType roomType,
const char * nick,
const char * key )

Definition at line 373 of file PeerThread.cpp.

◆ markAsDisconnected()

void PeerThreadClass::markAsDisconnected ( void )
inline

Definition at line 228 of file PeerThread.cpp.

◆ nickErrorCallback()

void PeerThreadClass::nickErrorCallback ( PEER peer,
Int type,
const char * nick )

Definition at line 2293 of file PeerThread.cpp.

◆ pingStr()

std::string PeerThreadClass::pingStr ( void )
inline

Definition at line 256 of file PeerThread.cpp.

◆ pushStatsToRoom()

void PeerThreadClass::pushStatsToRoom ( PEER peer)

Definition at line 406 of file PeerThread.cpp.

◆ removeServerFromMap()

Int PeerThreadClass::removeServerFromMap ( SBServer server)

Definition at line 433 of file PeerThread.cpp.

◆ roomJoined()

void PeerThreadClass::roomJoined ( Bool val)
inline

Definition at line 267 of file PeerThread.cpp.

◆ sawEndOfEnumPlayers()

void PeerThreadClass::sawEndOfEnumPlayers ( void )
inline

Definition at line 269 of file PeerThread.cpp.

◆ sawMatchbot()

void PeerThreadClass::sawMatchbot ( std::string bot)
inline

Definition at line 270 of file PeerThread.cpp.

◆ setQMGroupRoom()

void PeerThreadClass::setQMGroupRoom ( Int groupID)
inline

Definition at line 268 of file PeerThread.cpp.

◆ setSawCompleteGameList()

void PeerThreadClass::setSawCompleteGameList ( Bool val)
inline

Definition at line 287 of file PeerThread.cpp.

◆ stopHostingAlready()

void PeerThreadClass::stopHostingAlready ( PEER peer)

Definition at line 1019 of file PeerThread.cpp.

◆ Thread_Function()

void PeerThreadClass::Thread_Function ( void )
virtual

gameName[0]='c';gameName[1]='c';gameName[2]='g';gameName[3]='e'; gameName[4]='n';gameName[5]='e';gameName[6]='r';gameName[7]='a'; gameName[8]='l';gameName[9]='s';gameName[10]='b';gameName[11]='\0'; secretKey[0]='g';secretKey[1]='3';secretKey[2]='T';secretKey[3]='9'; secretKey[4]='s';secretKey[5]='2';secretKey[6]='\0'; /*

Implements ThreadClass.

Definition at line 1168 of file PeerThread.cpp.

◆ trackStatsForPlayer()

void PeerThreadClass::trackStatsForPlayer ( RoomType roomType,
const char * nick,
const char * key,
const char * val )

Definition at line 353 of file PeerThread.cpp.

◆ useStats()

Bool PeerThreadClass::useStats ( void ) const
inline

Definition at line 247 of file PeerThread.cpp.


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