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

#include <PeerThread.h>

Public Types

enum  {
  PEERRESPONSE_LOGIN , PEERRESPONSE_DISCONNECT , PEERRESPONSE_MESSAGE , PEERRESPONSE_GROUPROOM ,
  PEERRESPONSE_STAGINGROOM , PEERRESPONSE_STAGINGROOMLISTCOMPLETE , PEERRESPONSE_STAGINGROOMPLAYERINFO , PEERRESPONSE_JOINGROUPROOM ,
  PEERRESPONSE_CREATESTAGINGROOM , PEERRESPONSE_JOINSTAGINGROOM , PEERRESPONSE_PLAYERJOIN , PEERRESPONSE_PLAYERLEFT ,
  PEERRESPONSE_PLAYERCHANGEDNICK , PEERRESPONSE_PLAYERINFO , PEERRESPONSE_PLAYERCHANGEDFLAGS , PEERRESPONSE_ROOMUTM ,
  PEERRESPONSE_PLAYERUTM , PEERRESPONSE_QUICKMATCHSTATUS , PEERRESPONSE_GAMESTART , PEERRESPONSE_FAILEDTOHOST ,
  PEERRESPONSE_MAX
}
 

Public Attributes

enum PeerResponse:: { ... }  peerResponseType
 
std::string groupRoomName
 
std::string nick
 
std::string oldNick
 
std::wstring text
 
std::string locale
 
std::string stagingServerGameOptions
 
std::wstring stagingServerName
 
std::string stagingServerPingString
 
std::string stagingServerLadderIP
 
std::string stagingRoomMapName
 
std::string stagingRoomPlayerNames [MAX_SLOTS]
 
std::string command
 
std::string commandOptions
 
union { 
 
   struct { 
 
      DisconnectReason   reason 
 
   }   discon 
 
   struct { 
 
      Int   id 
 
      Int   numWaiting 
 
      Int   maxWaiting 
 
      Int   numGames 
 
      Int   numPlaying 
 
   }   groupRoom 
 
   struct { 
 
      Int   id 
 
      Bool   ok 
 
   }   joinGroupRoom 
 
   struct { 
 
      Int   result 
 
   }   createStagingRoom 
 
   struct { 
 
      Int   id 
 
      Bool   ok 
 
      Bool   isHostPresent 
 
      Int   result 
 
   }   joinStagingRoom 
 
   struct { 
 
      Bool   isPrivate 
 
      Bool   isAction 
 
      Int   profileID 
 
   }   message 
 
   struct { 
 
      Int   profileID 
 
      Int   wins 
 
      Int   losses 
 
      RoomType   roomType 
 
      Int   flags 
 
      UnsignedInt   IP 
 
      Int   rankPoints 
 
      Int   side 
 
      Int   preorder 
 
      UnsignedInt   internalIP 
 
      UnsignedInt   externalIP 
 
   }   player 
 
   struct { 
 
      Int   id 
 
      Int   action 
 
      Bool   isStaging 
 
      Bool   requiresPassword 
 
      Bool   allowObservers 
 
      Bool   useStats 
 
      UnsignedInt   version 
 
      UnsignedInt   exeCRC 
 
      UnsignedInt   iniCRC 
 
      UnsignedShort   ladderPort 
 
      Int   wins [MAX_SLOTS] 
 
      Int   losses [MAX_SLOTS] 
 
      Int   profileID [MAX_SLOTS] 
 
      Int   faction [MAX_SLOTS] 
 
      Int   color [MAX_SLOTS] 
 
      Int   numPlayers 
 
      Int   numObservers 
 
      Int   maxPlayers 
 
      Int   percentComplete 
 
   }   stagingRoom 
 
   struct { 
 
      QMStatus   status 
 
      Int   poolSize 
 
      Int   mapIdx 
 
      Int   seed 
 
      UnsignedInt   IP [MAX_SLOTS] 
 
      Int   side [MAX_SLOTS] 
 
      Int   color [MAX_SLOTS] 
 
      Int   nat [MAX_SLOTS] 
 
   }   qmStatus 
 
};  
 

Detailed Description

Definition at line 223 of file PeerThread.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PEERRESPONSE_LOGIN 
PEERRESPONSE_DISCONNECT 
PEERRESPONSE_MESSAGE 
PEERRESPONSE_GROUPROOM 
PEERRESPONSE_STAGINGROOM 
PEERRESPONSE_STAGINGROOMLISTCOMPLETE 
PEERRESPONSE_STAGINGROOMPLAYERINFO 
PEERRESPONSE_JOINGROUPROOM 
PEERRESPONSE_CREATESTAGINGROOM 
PEERRESPONSE_JOINSTAGINGROOM 
PEERRESPONSE_PLAYERJOIN 
PEERRESPONSE_PLAYERLEFT 
PEERRESPONSE_PLAYERCHANGEDNICK 
PEERRESPONSE_PLAYERINFO 
PEERRESPONSE_PLAYERCHANGEDFLAGS 
PEERRESPONSE_ROOMUTM 
PEERRESPONSE_PLAYERUTM 
PEERRESPONSE_QUICKMATCHSTATUS 
PEERRESPONSE_GAMESTART 
PEERRESPONSE_FAILEDTOHOST 
PEERRESPONSE_MAX 

Definition at line 226 of file PeerThread.h.

Member Data Documentation

◆ [union]

union { ... } PeerResponse

◆ action

Int PeerResponse::action

Definition at line 332 of file PeerThread.h.

◆ allowObservers

Bool PeerResponse::allowObservers

Definition at line 335 of file PeerThread.h.

◆ color

Int PeerResponse::color[MAX_SLOTS]

Definition at line 345 of file PeerThread.h.

◆ command

std::string PeerResponse::command

Definition at line 269 of file PeerThread.h.

◆ commandOptions

std::string PeerResponse::commandOptions

Definition at line 270 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::createStagingRoom

◆ [struct]

struct { ... } PeerResponse::discon

◆ exeCRC

UnsignedInt PeerResponse::exeCRC

Definition at line 338 of file PeerThread.h.

◆ externalIP

UnsignedInt PeerResponse::externalIP

Definition at line 326 of file PeerThread.h.

◆ faction

Int PeerResponse::faction[MAX_SLOTS]

Definition at line 344 of file PeerThread.h.

◆ flags

Int PeerResponse::flags

Definition at line 320 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::groupRoom

◆ groupRoomName

std::string PeerResponse::groupRoomName

Definition at line 251 of file PeerThread.h.

◆ id

Int PeerResponse::id

Definition at line 281 of file PeerThread.h.

◆ iniCRC

UnsignedInt PeerResponse::iniCRC

Definition at line 339 of file PeerThread.h.

◆ internalIP

UnsignedInt PeerResponse::internalIP

Definition at line 325 of file PeerThread.h.

◆ IP

UnsignedInt PeerResponse::IP[MAX_SLOTS]

Definition at line 321 of file PeerThread.h.

◆ isAction

Bool PeerResponse::isAction

Definition at line 310 of file PeerThread.h.

◆ isHostPresent

Bool PeerResponse::isHostPresent

Definition at line 303 of file PeerThread.h.

◆ isPrivate

Bool PeerResponse::isPrivate

Definition at line 309 of file PeerThread.h.

◆ isStaging

Bool PeerResponse::isStaging

Definition at line 333 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::joinGroupRoom

◆ [struct]

struct { ... } PeerResponse::joinStagingRoom

◆ ladderPort

UnsignedShort PeerResponse::ladderPort

Definition at line 340 of file PeerThread.h.

◆ locale

std::string PeerResponse::locale

Definition at line 256 of file PeerThread.h.

◆ losses

Int PeerResponse::losses[MAX_SLOTS]

Definition at line 318 of file PeerThread.h.

◆ mapIdx

Int PeerResponse::mapIdx

Definition at line 356 of file PeerThread.h.

◆ maxPlayers

Int PeerResponse::maxPlayers

Definition at line 348 of file PeerThread.h.

◆ maxWaiting

Int PeerResponse::maxWaiting

Definition at line 283 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::message

◆ nat

Int PeerResponse::nat[MAX_SLOTS]

Definition at line 361 of file PeerThread.h.

◆ nick

std::string PeerResponse::nick

Definition at line 253 of file PeerThread.h.

◆ numGames

Int PeerResponse::numGames

Definition at line 284 of file PeerThread.h.

◆ numObservers

Int PeerResponse::numObservers

Definition at line 347 of file PeerThread.h.

◆ numPlayers

Int PeerResponse::numPlayers

Definition at line 346 of file PeerThread.h.

◆ numPlaying

Int PeerResponse::numPlaying

Definition at line 285 of file PeerThread.h.

◆ numWaiting

Int PeerResponse::numWaiting

Definition at line 282 of file PeerThread.h.

◆ ok

Bool PeerResponse::ok

Definition at line 291 of file PeerThread.h.

◆ oldNick

std::string PeerResponse::oldNick

Definition at line 254 of file PeerThread.h.

◆ []

enum { ... } PeerResponse::peerResponseType

◆ percentComplete

Int PeerResponse::percentComplete

Definition at line 349 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::player

◆ poolSize

Int PeerResponse::poolSize

Definition at line 355 of file PeerThread.h.

◆ preorder

Int PeerResponse::preorder

Definition at line 324 of file PeerThread.h.

◆ profileID

Int PeerResponse::profileID[MAX_SLOTS]

Definition at line 311 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::qmStatus

◆ rankPoints

Int PeerResponse::rankPoints

Definition at line 322 of file PeerThread.h.

◆ reason

DisconnectReason PeerResponse::reason

Definition at line 276 of file PeerThread.h.

◆ requiresPassword

Bool PeerResponse::requiresPassword

Definition at line 334 of file PeerThread.h.

◆ result

Int PeerResponse::result

Definition at line 296 of file PeerThread.h.

◆ roomType

RoomType PeerResponse::roomType

Definition at line 319 of file PeerThread.h.

◆ seed

Int PeerResponse::seed

Definition at line 357 of file PeerThread.h.

◆ side

Int PeerResponse::side[MAX_SLOTS]

Definition at line 323 of file PeerThread.h.

◆ [struct]

struct { ... } PeerResponse::stagingRoom

◆ stagingRoomMapName

std::string PeerResponse::stagingRoomMapName

Definition at line 264 of file PeerThread.h.

◆ stagingRoomPlayerNames

std::string PeerResponse::stagingRoomPlayerNames[MAX_SLOTS]

Definition at line 267 of file PeerThread.h.

◆ stagingServerGameOptions

std::string PeerResponse::stagingServerGameOptions

Definition at line 258 of file PeerThread.h.

◆ stagingServerLadderIP

std::string PeerResponse::stagingServerLadderIP

Definition at line 263 of file PeerThread.h.

◆ stagingServerName

std::wstring PeerResponse::stagingServerName

Definition at line 261 of file PeerThread.h.

◆ stagingServerPingString

std::string PeerResponse::stagingServerPingString

Definition at line 262 of file PeerThread.h.

◆ status

QMStatus PeerResponse::status

Definition at line 354 of file PeerThread.h.

◆ text

std::wstring PeerResponse::text

Definition at line 255 of file PeerThread.h.

◆ useStats

Bool PeerResponse::useStats

Definition at line 336 of file PeerThread.h.

◆ version

UnsignedInt PeerResponse::version

Definition at line 337 of file PeerThread.h.

◆ wins

Int PeerResponse::wins[MAX_SLOTS]

Definition at line 317 of file PeerThread.h.


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