#include <NetCommandMsg.h>
Inherits NetCommandMsg.
Public Member Functions | |
| NetAckStage1CommandMsg (NetCommandMsg *msg) | |
| NetAckStage1CommandMsg () | |
| UnsignedShort | getCommandID () |
| void | setCommandID (UnsignedShort commandID) |
| UnsignedByte | getOriginalPlayerID () |
| void | setOriginalPlayerID (UnsignedByte originalPlayerID) |
| virtual Int | getSortNumber () |
Public Member Functions inherited from NetCommandMsg | |
| NetCommandMsg () | |
| UnsignedInt | GetTimestamp () |
| void | SetTimestamp (UnsignedInt timestamp) |
| void | setExecutionFrame (UnsignedInt frame) |
| void | setPlayerID (UnsignedInt playerID) |
| void | setID (UnsignedShort id) |
| UnsignedInt | getExecutionFrame () |
| UnsignedInt | getPlayerID () |
| UnsignedShort | getID () |
| void | setNetCommandType (NetCommandType type) |
| NetCommandType | getNetCommandType () |
| void | attach () |
| void | detach () |
| virtual AsciiString | getContentsAsAsciiString (void) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Attributes | |
| UnsignedShort | m_commandID |
| UnsignedByte | m_originalPlayerID |
Protected Attributes inherited from NetCommandMsg | |
| UnsignedInt | m_timestamp |
| UnsignedInt | m_executionFrame |
| UnsignedInt | m_playerID |
| UnsignedShort | m_id |
| NetCommandType | m_commandType |
| Int | m_referenceCount |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
The NetAckStage1CommandMsg is the NetCommandMsg representation of an ack message for the initial recipient.
Definition at line 128 of file NetCommandMsg.h.
| NetAckStage1CommandMsg::NetAckStage1CommandMsg | ( | NetCommandMsg * | msg | ) |
Constructor. Sets the member variables according to the given message.
Definition at line 291 of file NetCommandMsg.cpp.
| NetAckStage1CommandMsg::NetAckStage1CommandMsg | ( | ) |
Constructor. Sets the member variables to default values.
Definition at line 300 of file NetCommandMsg.cpp.
| UnsignedShort NetAckStage1CommandMsg::getCommandID | ( | ) |
Returns the command ID of the command being ack'd.
Definition at line 313 of file NetCommandMsg.cpp.
| UnsignedByte NetAckStage1CommandMsg::getOriginalPlayerID | ( | ) |
Get the player id of the player who originally sent the command.
Definition at line 327 of file NetCommandMsg.cpp.
|
virtual |
Returns the value by which this type of message should be sorted.
Reimplemented from NetCommandMsg.
Definition at line 338 of file NetCommandMsg.cpp.
| void NetAckStage1CommandMsg::setCommandID | ( | UnsignedShort | commandID | ) |
Set the command ID of the command being ack'd.
Definition at line 320 of file NetCommandMsg.cpp.
| void NetAckStage1CommandMsg::setOriginalPlayerID | ( | UnsignedByte | originalPlayerID | ) |
Set the player id of the player who originally sent the command.
Definition at line 334 of file NetCommandMsg.cpp.
|
protected |
Definition at line 143 of file NetCommandMsg.h.
|
protected |
Definition at line 144 of file NetCommandMsg.h.