____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 <network.h>
Public Member Functions | |
| CNetworkCommand () | |
| void | Clear () |
| void | Serialize (unsigned char *p) const |
| void | Deserialize (unsigned char *p) |
Static Public Member Functions | |
| static size_t | Size () |
Public Attributes | |
| Uint16 | Unit |
| Command for unit. | |
| Uint16 | X |
| Map position X. | |
| Uint16 | Y |
| Map position Y. | |
| Uint16 | Dest |
| Destination unit. | |
Definition at line 110 of file network.h.
| void CNetworkCommand::Clear | ( | ) | [inline] |
| void CNetworkCommand::Serialize | ( | unsigned char * | p | ) | const |
Definition at line 302 of file network.cpp.
References Dest, Unit, X, and Y.
Referenced by CNetworkPacket::Serialize().
| void CNetworkCommand::Deserialize | ( | unsigned char * | p | ) |
Definition at line 314 of file network.cpp.
References Dest, Unit, X, and Y.
Referenced by CNetworkPacket::Deserialize().
| static size_t CNetworkCommand::Size | ( | ) | [inline, static] |
Definition at line 117 of file network.h.
Referenced by CNetworkPacket::Deserialize(), CNetworkPacket::Serialize(), and CNetworkPacket::Size().
| Uint16 CNetworkCommand::Unit |
Command for unit.
Definition at line 119 of file network.h.
Referenced by Clear(), Deserialize(), NetworkEvent(), NetworkSendCommand(), NetworkSendCommands(), ParseNetworkCommand(), and Serialize().
| Uint16 CNetworkCommand::X |
Map position X.
Definition at line 120 of file network.h.
Referenced by Clear(), Deserialize(), NetworkEvent(), NetworkQuit(), NetworkRecover(), NetworkSendCommand(), NetworkSendCommands(), ParseNetworkCommand(), and Serialize().
| Uint16 CNetworkCommand::Y |
Map position Y.
Definition at line 121 of file network.h.
Referenced by Clear(), Deserialize(), NetworkSendCommand(), NetworkSendCommands(), ParseNetworkCommand(), and Serialize().
| Uint16 CNetworkCommand::Dest |
Destination unit.
Definition at line 122 of file network.h.
Referenced by Clear(), Deserialize(), NetworkSendCommand(), ParseNetworkCommand(), and Serialize().
1.5.6