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

#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 MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

The NetAckStage1CommandMsg is the NetCommandMsg representation of an ack message for the initial recipient.

Definition at line 128 of file NetCommandMsg.h.

Constructor & Destructor Documentation

◆ NetAckStage1CommandMsg() [1/2]

NetAckStage1CommandMsg::NetAckStage1CommandMsg ( NetCommandMsg * msg)

Constructor. Sets the member variables according to the given message.

Definition at line 291 of file NetCommandMsg.cpp.

◆ NetAckStage1CommandMsg() [2/2]

NetAckStage1CommandMsg::NetAckStage1CommandMsg ( )

Constructor. Sets the member variables to default values.

Definition at line 300 of file NetCommandMsg.cpp.

Member Function Documentation

◆ getCommandID()

UnsignedShort NetAckStage1CommandMsg::getCommandID ( )

Returns the command ID of the command being ack'd.

Definition at line 313 of file NetCommandMsg.cpp.

◆ getOriginalPlayerID()

UnsignedByte NetAckStage1CommandMsg::getOriginalPlayerID ( )

Get the player id of the player who originally sent the command.

Definition at line 327 of file NetCommandMsg.cpp.

◆ getSortNumber()

Int NetAckStage1CommandMsg::getSortNumber ( )
virtual

Returns the value by which this type of message should be sorted.

Reimplemented from NetCommandMsg.

Definition at line 338 of file NetCommandMsg.cpp.

◆ setCommandID()

void NetAckStage1CommandMsg::setCommandID ( UnsignedShort commandID)

Set the command ID of the command being ack'd.

Definition at line 320 of file NetCommandMsg.cpp.

◆ setOriginalPlayerID()

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.

Member Data Documentation

◆ m_commandID

UnsignedShort NetAckStage1CommandMsg::m_commandID
protected

Definition at line 143 of file NetCommandMsg.h.

◆ m_originalPlayerID

UnsignedByte NetAckStage1CommandMsg::m_originalPlayerID
protected

Definition at line 144 of file NetCommandMsg.h.


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