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

#include <LANAPI.h>

Public Types

enum  {
  MSG_REQUEST_LOCATIONS , MSG_GAME_ANNOUNCE , MSG_LOBBY_ANNOUNCE , MSG_REQUEST_JOIN ,
  MSG_JOIN_ACCEPT , MSG_JOIN_DENY , MSG_REQUEST_GAME_LEAVE , MSG_REQUEST_LOBBY_LEAVE ,
  MSG_SET_ACCEPT , MSG_MAP_AVAILABILITY , MSG_CHAT , MSG_GAME_START ,
  MSG_GAME_START_TIMER , MSG_GAME_OPTIONS , MSG_INACTIVE , MSG_REQUEST_GAME_INFO ,
  MSG_MAX
}
 

Public Attributes

enum LANMessage:: { ... }  LANMessageType
 
WideChar name [g_lanPlayerNameLength+1]
 My name, for convenience.
 
char userName [g_lanLoginNameLength+1]
 login name, for convenience
 
char hostName [g_lanHostNameLength+1]
 machine name, for convenience
 
union { 
 
   struct { 
 
      Int   seconds 
 
   }   StartTimer 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
   }   GameToLeave 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      Bool   inProgress 
 
      char   options [m_lanMaxOptionsLength+1] 
 
      Bool   isDirectConnect 
 
   }   GameInfo 
 
   struct { 
 
      UnsignedInt   ip 
 
      WideChar   playerName [g_lanPlayerNameLength+1] 
 
   }   PlayerInfo 
 
   struct { 
 
      UnsignedInt   gameIP 
 
      UnsignedInt   exeCRC 
 
      UnsignedInt   iniCRC 
 
      char   serial [g_maxSerialLength] 
 
   }   GameToJoin 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      UnsignedInt   gameIP 
 
      UnsignedInt   playerIP 
 
      Int   slotPosition 
 
   }   GameJoined 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      UnsignedInt   gameIP 
 
      UnsignedInt   playerIP 
 
      LANAPIInterface::ReturnType   reason 
 
   }   GameNotJoined 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      Bool   isAccepted 
 
   }   Accept 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      UnsignedInt   mapCRC 
 
      Bool   hasMap 
 
   }   MapStatus 
 
   struct { 
 
      WideChar   gameName [g_lanGameNameLength+1] 
 
      LANAPIInterface::ChatType   chatType 
 
      WideChar   message [g_lanMaxChatLength+1] 
 
   }   Chat 
 
   struct { 
 
      char   options [m_lanMaxOptionsLength+1] 
 
   }   GameOptions 
 
};  
 

Detailed Description

LAN message class

Definition at line 294 of file LANAPI.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MSG_REQUEST_LOCATIONS 

Hey, where is everybody?

MSG_GAME_ANNOUNCE 

Here I am, and here's my game info!

MSG_LOBBY_ANNOUNCE 

Hey, I'm in the lobby!

MSG_REQUEST_JOIN 

Let me in! Let me in!

MSG_JOIN_ACCEPT 

Okay, you can join.

MSG_JOIN_DENY 

Go away! We don't want any!

MSG_REQUEST_GAME_LEAVE 

I want to leave the game.

MSG_REQUEST_LOBBY_LEAVE 

I'm leaving the lobby.

MSG_SET_ACCEPT 

I'm cool with everything as is.

MSG_MAP_AVAILABILITY 

I do (not) have the map.

MSG_CHAT 

Just spouting my mouth off.

MSG_GAME_START 

Hold on; we're starting!

MSG_GAME_START_TIMER 

The game will start in N seconds.

MSG_GAME_OPTIONS 

Here's some info about the game.

MSG_INACTIVE 

I've alt-tabbed out. Unaccept me cause I'm a poo-flinging monkey.

MSG_REQUEST_GAME_INFO 

For direct connect, get the game info from a specific IP Address.

MSG_MAX 

Definition at line 296 of file LANAPI.h.

Member Data Documentation

◆ [union]

union { ... } LANMessage

◆ [struct]

struct { ... } LANMessage::Accept

◆ [struct]

struct { ... } LANMessage::Chat

◆ chatType

LANAPIInterface::ChatType LANMessage::chatType

Definition at line 408 of file LANAPI.h.

◆ exeCRC

UnsignedInt LANMessage::exeCRC

Definition at line 366 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::GameInfo

◆ gameIP

UnsignedInt LANMessage::gameIP

Definition at line 365 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::GameJoined

◆ gameName

WideChar LANMessage::gameName[g_lanGameNameLength+1]

Definition at line 343 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::GameNotJoined

◆ [struct]

struct { ... } LANMessage::GameOptions

◆ [struct]

struct { ... } LANMessage::GameToJoin

◆ [struct]

struct { ... } LANMessage::GameToLeave

◆ hasMap

Bool LANMessage::hasMap

Definition at line 401 of file LANAPI.h.

◆ hostName

char LANMessage::hostName[g_lanHostNameLength+1]

machine name, for convenience

Definition at line 328 of file LANAPI.h.

◆ iniCRC

UnsignedInt LANMessage::iniCRC

Definition at line 367 of file LANAPI.h.

◆ inProgress

Bool LANMessage::inProgress

Definition at line 350 of file LANAPI.h.

◆ ip

UnsignedInt LANMessage::ip

Definition at line 358 of file LANAPI.h.

◆ isAccepted

Bool LANMessage::isAccepted

Definition at line 393 of file LANAPI.h.

◆ isDirectConnect

Bool LANMessage::isDirectConnect

Definition at line 352 of file LANAPI.h.

◆ []

enum { ... } LANMessage::LANMessageType

◆ mapCRC

UnsignedInt LANMessage::mapCRC

Definition at line 400 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::MapStatus

◆ message

WideChar LANMessage::message[g_lanMaxChatLength+1]

Definition at line 409 of file LANAPI.h.

◆ name

WideChar LANMessage::name[g_lanPlayerNameLength+1]

My name, for convenience.

Definition at line 326 of file LANAPI.h.

◆ options

char LANMessage::options[m_lanMaxOptionsLength+1]

Definition at line 351 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::PlayerInfo

◆ playerIP

UnsignedInt LANMessage::playerIP

Definition at line 376 of file LANAPI.h.

◆ playerName

WideChar LANMessage::playerName[g_lanPlayerNameLength+1]

Definition at line 359 of file LANAPI.h.

◆ reason

LANAPIInterface::ReturnType LANMessage::reason

Definition at line 386 of file LANAPI.h.

◆ seconds

Int LANMessage::seconds

Definition at line 337 of file LANAPI.h.

◆ serial

char LANMessage::serial[g_maxSerialLength]

Definition at line 368 of file LANAPI.h.

◆ slotPosition

Int LANMessage::slotPosition

Definition at line 377 of file LANAPI.h.

◆ [struct]

struct { ... } LANMessage::StartTimer

◆ userName

char LANMessage::userName[g_lanLoginNameLength+1]

login name, for convenience

Definition at line 327 of file LANAPI.h.


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