#include <NetCommandMsg.h>
Inherits NetCommandMsg.
Public Member Functions | |
| NetGameCommandMsg () | |
| NetGameCommandMsg (GameMessage *msg) | |
| GameMessage * | constructGameMessage () |
| void | addArgument (const GameMessageArgumentDataType type, GameMessageArgumentType arg) |
| void | setGameMessageType (GameMessage::Type type) |
| virtual AsciiString | getContentsAsAsciiString (void) |
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 () |
| virtual Int | getSortNumber () |
| void | attach () |
| void | detach () |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Attributes | |
| Int | m_numArgs |
| Int | m_argSize |
| GameMessage::Type | m_type |
| GameMessageArgument * | m_argList |
| GameMessageArgument * | m_argTail |
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 NetGameCommandMsg is the NetCommandMsg representation of a GameMessage
Definition at line 77 of file NetCommandMsg.h.
| NetGameCommandMsg::NetGameCommandMsg | ( | ) |
Constructor with no argument, sets everything to default values.
Definition at line 92 of file NetCommandMsg.cpp.
| NetGameCommandMsg::NetGameCommandMsg | ( | GameMessage * | msg | ) |
Constructor with a GameMessage argument. Sets member variables appropriately for this GameMessage. Also copies all the arguments.
Definition at line 109 of file NetCommandMsg.cpp.
| void NetGameCommandMsg::addArgument | ( | const GameMessageArgumentDataType | type, |
| GameMessageArgumentType | arg ) |
Add an argument to this command.
Definition at line 134 of file NetCommandMsg.cpp.
| GameMessage * NetGameCommandMsg::constructGameMessage | ( | ) |
Construct a new GameMessage object from the data in this object.
Definition at line 172 of file NetCommandMsg.cpp.
|
virtual |
Reimplemented from NetCommandMsg.
Definition at line 219 of file NetCommandMsg.cpp.
| void NetGameCommandMsg::setGameMessageType | ( | GameMessage::Type | type | ) |
Sets the type of game message
Definition at line 215 of file NetCommandMsg.cpp.
|
protected |
Definition at line 96 of file NetCommandMsg.h.
|
protected |
Definition at line 94 of file NetCommandMsg.h.
|
protected |
Definition at line 96 of file NetCommandMsg.h.
|
protected |
Definition at line 93 of file NetCommandMsg.h.
|
protected |
Definition at line 95 of file NetCommandMsg.h.