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

       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"

CNetworkCommand Class Reference

#include <network.h>

List of all members.

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.


Detailed Description

Network command message.

Definition at line 110 of file network.h.


Constructor & Destructor Documentation

CNetworkCommand::CNetworkCommand (  )  [inline]

Definition at line 112 of file network.h.


Member Function Documentation

void CNetworkCommand::Clear (  )  [inline]

Definition at line 113 of file network.h.

References Dest, Unit, X, and Y.

Referenced by CNetworkCommandQueue::Clear().

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]


Member Data Documentation

Command for unit.

Definition at line 119 of file network.h.

Referenced by Clear(), Deserialize(), NetworkEvent(), NetworkSendCommand(), NetworkSendCommands(), ParseNetworkCommand(), and Serialize().

Map position Y.

Definition at line 121 of file network.h.

Referenced by Clear(), Deserialize(), NetworkSendCommand(), NetworkSendCommands(), ParseNetworkCommand(), and Serialize().

Destination unit.

Definition at line 122 of file network.h.

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


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

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