#include <NetCommandMsg.h>
Inherits NetCommandMsg.
Public Member Functions | |
| NetAckStage2CommandMsg (NetCommandMsg *msg) | |
| NetAckStage2CommandMsg () | |
| 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 NetAckStage2CommandMsg is the NetCommandMsg representation of an ack message for all eventual recipients. (when this is returned, all the players in the relay mask have received the packet)
Definition at line 152 of file NetCommandMsg.h.
| NetAckStage2CommandMsg::NetAckStage2CommandMsg | ( | NetCommandMsg * | msg | ) |
Constructor. Sets the member variables according to the given message.
Definition at line 348 of file NetCommandMsg.cpp.
| NetAckStage2CommandMsg::NetAckStage2CommandMsg | ( | ) |
Constructor. Sets the member variables to default values.
Definition at line 357 of file NetCommandMsg.cpp.
| UnsignedShort NetAckStage2CommandMsg::getCommandID | ( | ) |
Returns the command ID of the command being ack'd.
Definition at line 370 of file NetCommandMsg.cpp.
| UnsignedByte NetAckStage2CommandMsg::getOriginalPlayerID | ( | ) |
Get the player id of the player who originally sent the command.
Definition at line 384 of file NetCommandMsg.cpp.
|
virtual |
Returns the value by which this type of message should be sorted.
Reimplemented from NetCommandMsg.
Definition at line 395 of file NetCommandMsg.cpp.
| void NetAckStage2CommandMsg::setCommandID | ( | UnsignedShort | commandID | ) |
Set the command ID of the command being ack'd.
Definition at line 377 of file NetCommandMsg.cpp.
| void NetAckStage2CommandMsg::setOriginalPlayerID | ( | UnsignedByte | originalPlayerID | ) |
Set the player id of the player who originally sent the command.
Definition at line 391 of file NetCommandMsg.cpp.
|
protected |
Definition at line 167 of file NetCommandMsg.h.
|
protected |
Definition at line 168 of file NetCommandMsg.h.