_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
91 int arg3,
int arg4,
int status);
99 #endif // !__NETWORK_H__
void NetworkCommands()
Recover network.
Definition: network.cpp:1129
void NetworkRecover()
Quit game: warn other users.
Definition: network.cpp:1207
void InitNetwork1()
Definition: network.cpp:409
void NetworkSendChatMessage(const std::string &msg)
Get all network commands.
Definition: network.cpp:648
CUDPSocket NetworkFildes
Network is in sync.
Definition: network.cpp:298
unsigned int NetworkLag
Network update each # game cycles.
Definition: network.h:56
Definition: netsockets.h:57
static CNetworkParameter Instance
Default communication port.
Definition: network.h:62
void NetworkSendExtendedCommand(int command, int arg1, int arg2, int arg3, int arg4, int status)
Send extended network command.
Definition: network.cpp:585
CNetworkParameter()
Definition: network.cpp:281
bool IsValid() const
Definition: netsockets.cpp:174
void NetworkSendCommand(int command, const CUnit &unit, int x, int y, const CUnit *dest, const CUnitType *type, int status)
Send network command.
Definition: network.cpp:542
unsigned int timeoutInS
Network lag (# update cycles)
Definition: network.h:57
Definition: unittype.h:508
void FixValues()
Definition: network.cpp:290
void ExitNetwork1()
Initialise network.
Definition: network.cpp:449
void NetworkCclRegister()
Definition: netconnect.cpp:2096
static const int defaultPort
Number of seconds until player times out.
Definition: network.h:60
bool IsNetworkGame()
Network is in sync.
Definition: network.h:76
unsigned int localPort
Local network address to use.
Definition: network.h:54
std::string localHost
Definition: network.h:53
void NetworkEvent()
Initialise network data for ingame communication.
Definition: network.cpp:872
void NetworkQuitGame()
Hold in sync.
Definition: network.cpp:909
void NetworkSendSelection(CUnit **units, int count)
Send Selections to Team.
Definition: network.cpp:612
void NetworkSync()
Handle network events.
bool NetworkInSync
Network file descriptor.
Definition: network.cpp:296
The big unit structure.
Definition: unit.h:135
unsigned int gameCyclesPerUpdate
Local network port to use.
Definition: network.h:55
void NetworkOnStartGame()
Cleanup network (port)
Definition: network.cpp:471
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.