#include <NetCommandMsg.h>
Inherits NetCommandMsg.
Public Member Functions | |
| NetAckBothCommandMsg (NetCommandMsg *msg) | |
| NetAckBothCommandMsg () | |
| 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 NetAckBothCommandMsg is the NetCommandMsg representation of the combination of a stage 1 ack and a stage 2 ack.
Definition at line 104 of file NetCommandMsg.h.
| NetAckBothCommandMsg::NetAckBothCommandMsg | ( | NetCommandMsg * | msg | ) |
Constructor. Sets the member variables according to the given message.
Definition at line 234 of file NetCommandMsg.cpp.
| NetAckBothCommandMsg::NetAckBothCommandMsg | ( | ) |
Constructor. Sets the member variables to default values.
Definition at line 243 of file NetCommandMsg.cpp.
| UnsignedShort NetAckBothCommandMsg::getCommandID | ( | ) |
Returns the command ID of the command being ack'd.
Definition at line 256 of file NetCommandMsg.cpp.
| UnsignedByte NetAckBothCommandMsg::getOriginalPlayerID | ( | ) |
Get the player id of the player who originally sent the command.
Definition at line 270 of file NetCommandMsg.cpp.
|
virtual |
Returns the value by which this type of message should be sorted.
Reimplemented from NetCommandMsg.
Definition at line 281 of file NetCommandMsg.cpp.
| void NetAckBothCommandMsg::setCommandID | ( | UnsignedShort | commandID | ) |
Set the command ID of the command being ack'd.
Definition at line 263 of file NetCommandMsg.cpp.
| void NetAckBothCommandMsg::setOriginalPlayerID | ( | UnsignedByte | originalPlayerID | ) |
Set the player id of the player who originally sent the command.
Definition at line 277 of file NetCommandMsg.cpp.
|
protected |
Definition at line 119 of file NetCommandMsg.h.
|
protected |
Definition at line 120 of file NetCommandMsg.h.