____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

CServerSetup Class Reference

#include <netconnect.h>

List of all members.

Public Member Functions

unsigned char * Serialize () const
void Deserialize (const unsigned char *p)
void Clear ()

Static Public Member Functions

static size_t Size ()

Public Attributes

Uint8 ResourcesOption
 Resources option.
Uint8 UnitsOption
 Unit # option.
Uint8 FogOfWar
 Fog of war option.
Uint8 RevealMap
 Reveal all the map.
Uint8 GameTypeOption
 Game type option.
Uint8 Difficulty
 Difficulty option.
Uint8 MapRichness
 Map richness option.
Uint8 CompOpt [PlayerMax]
 Free slot option selection {"Available", "Computer", "Closed" }.
Uint8 Ready [PlayerMax]
 Client ready state.
Uint32 LastFrame [PlayerMax]
 Last message received.


Detailed Description

Multiplayer game setup menu state

Definition at line 89 of file netconnect.h.


Member Function Documentation

unsigned char * CServerSetup::Serialize (  )  const

void CServerSetup::Deserialize ( const unsigned char *  p  ) 

static size_t CServerSetup::Size (  )  [inline, static]

Definition at line 93 of file netconnect.h.

References PlayerMax.

Referenced by CInitMessage::Deserialize(), CInitMessage::Serialize(), and Serialize().

void CServerSetup::Clear (  )  [inline]


Member Data Documentation

Resources option.

Definition at line 102 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Unit # option.

Definition at line 103 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Fog of war option.

Definition at line 104 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Reveal all the map.

Definition at line 105 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Game type option.

Definition at line 106 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Difficulty option.

Definition at line 107 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Map richness option.

Definition at line 108 of file netconnect.h.

Referenced by Clear(), Deserialize(), and Serialize().

Uint8 CServerSetup::CompOpt[PlayerMax]

Free slot option selection {"Available", "Computer", "Closed" }.

Definition at line 109 of file netconnect.h.

Referenced by Clear(), Deserialize(), NetworkGamePrepareGameSettings(), NetworkInitServerConnect(), NetworkServerStartGame(), Serialize(), and ServerParseHello().

Uint8 CServerSetup::Ready[PlayerMax]

Client ready state.

Definition at line 110 of file netconnect.h.

Referenced by Clear(), Deserialize(), KickDeadClient(), NetClientCheckLocalState(), Serialize(), and ServerParseState().

Uint32 CServerSetup::LastFrame[PlayerMax]


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

Generated on Sat Feb 21 00:28:24 2009 for Bos Wars by  doxygen 1.5.6