Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
NetGameCommandMsg Class Reference

#include <NetCommandMsg.h>

Inherits NetCommandMsg.

Public Member Functions

 NetGameCommandMsg ()
 
 NetGameCommandMsg (GameMessage *msg)
 
GameMessageconstructGameMessage ()
 
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
 
GameMessageArgumentm_argList
 
GameMessageArgumentm_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 MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

The NetGameCommandMsg is the NetCommandMsg representation of a GameMessage

Definition at line 77 of file NetCommandMsg.h.

Constructor & Destructor Documentation

◆ NetGameCommandMsg() [1/2]

NetGameCommandMsg::NetGameCommandMsg ( )

Constructor with no argument, sets everything to default values.

Definition at line 92 of file NetCommandMsg.cpp.

◆ NetGameCommandMsg() [2/2]

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.

Member Function Documentation

◆ addArgument()

void NetGameCommandMsg::addArgument ( const GameMessageArgumentDataType type,
GameMessageArgumentType arg )

Add an argument to this command.

Definition at line 134 of file NetCommandMsg.cpp.

◆ constructGameMessage()

GameMessage * NetGameCommandMsg::constructGameMessage ( )

Construct a new GameMessage object from the data in this object.

Definition at line 172 of file NetCommandMsg.cpp.

◆ getContentsAsAsciiString()

AsciiString NetGameCommandMsg::getContentsAsAsciiString ( void )
virtual

Reimplemented from NetCommandMsg.

Definition at line 219 of file NetCommandMsg.cpp.

◆ setGameMessageType()

void NetGameCommandMsg::setGameMessageType ( GameMessage::Type type)

Sets the type of game message

Definition at line 215 of file NetCommandMsg.cpp.

Member Data Documentation

◆ m_argList

GameMessageArgument* NetGameCommandMsg::m_argList
protected

Definition at line 96 of file NetCommandMsg.h.

◆ m_argSize

Int NetGameCommandMsg::m_argSize
protected

Definition at line 94 of file NetCommandMsg.h.

◆ m_argTail

GameMessageArgument * NetGameCommandMsg::m_argTail
protected

Definition at line 96 of file NetCommandMsg.h.

◆ m_numArgs

Int NetGameCommandMsg::m_numArgs
protected

Definition at line 93 of file NetCommandMsg.h.

◆ m_type

GameMessage::Type NetGameCommandMsg::m_type
protected

Definition at line 95 of file NetCommandMsg.h.


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