____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <netconnect.h>
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. | |
Definition at line 89 of file netconnect.h.
| unsigned char * CServerSetup::Serialize | ( | ) | const |
Definition at line 128 of file netconnect.cpp.
References CompOpt, Difficulty, FogOfWar, GameTypeOption, LastFrame, MapRichness, PlayerMax, Ready, ResourcesOption, RevealMap, Size(), and UnitsOption.
| void CServerSetup::Deserialize | ( | const unsigned char * | p | ) |
Definition at line 155 of file netconnect.cpp.
References CompOpt, Difficulty, FogOfWar, GameTypeOption, LastFrame, MapRichness, PlayerMax, Ready, ResourcesOption, RevealMap, and UnitsOption.
| 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] |
Definition at line 94 of file netconnect.h.
References CompOpt, Difficulty, FogOfWar, GameTypeOption, LastFrame, MapRichness, Ready, ResourcesOption, RevealMap, and UnitsOption.
Referenced by NetworkInitClientConnect(), and NetworkInitServerConnect().
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().
| Uint8 CServerSetup::FogOfWar |
Fog of war option.
Definition at line 104 of file netconnect.h.
Referenced by Clear(), Deserialize(), and Serialize().
| Uint8 CServerSetup::RevealMap |
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().
| Uint8 CServerSetup::Difficulty |
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] |
Last message received.
Definition at line 111 of file netconnect.h.
Referenced by Clear(), Deserialize(), KickDeadClient(), NetworkProcessServerRequest(), NetworkServerStartGame(), Serialize(), ServerParseGoodBye(), ServerParseHello(), ServerParseIAmHere(), ServerParseMap(), ServerParseResync(), ServerParseState(), and ServerParseWaiting().
1.5.6