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

#include <NetCommandRef.h>

Inherits MemoryPoolObject.

Public Member Functions

 NetCommandRef (NetCommandMsg *msg)
 
NetCommandMsggetCommand ()
 
NetCommandRefgetNext ()
 
NetCommandRefgetPrev ()
 
void setNext (NetCommandRef *next)
 
void setPrev (NetCommandRef *prev)
 
void setRelay (UnsignedByte relay)
 
UnsignedByte getRelay () const
 
time_t getTimeLastSent () const
 
void setTimeLastSent (time_t timeLastSent)
 
- Public Member Functions inherited from MemoryPoolObject
void deleteInstance ()
 

Protected Attributes

NetCommandMsgm_msg
 
NetCommandRefm_next
 
NetCommandRefm_prev
 
UnsignedByte m_relay
 Need this in the command reference since the relay value will be different depending on where this particular reference is being sent.
 
time_t m_timeLastSent
 

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

Definition at line 45 of file NetCommandRef.h.

Constructor & Destructor Documentation

◆ NetCommandRef()

NetCommandRef::NetCommandRef ( NetCommandMsg * msg)

Constructor. Attach to the given network command.

Definition at line 40 of file NetCommandRef.cpp.

Member Function Documentation

◆ getCommand()

NetCommandMsg * NetCommandRef::getCommand ( )
inline

Return the command message.

Definition at line 83 of file NetCommandRef.h.

◆ getNext()

NetCommandRef * NetCommandRef::getNext ( )
inline

Return the next command ref in the list.

Definition at line 91 of file NetCommandRef.h.

◆ getPrev()

NetCommandRef * NetCommandRef::getPrev ( )
inline

Return the previous command ref in the list.

Definition at line 99 of file NetCommandRef.h.

◆ getRelay()

UnsignedByte NetCommandRef::getRelay ( ) const
inline

Return the send relay for this refreence of the command.

Definition at line 147 of file NetCommandRef.h.

◆ getTimeLastSent()

time_t NetCommandRef::getTimeLastSent ( ) const
inline

Return the time for the last time this command was sent from this reference.

Definition at line 123 of file NetCommandRef.h.

◆ setNext()

void NetCommandRef::setNext ( NetCommandRef * next)
inline

Set the next command ref in the list.

Definition at line 107 of file NetCommandRef.h.

◆ setPrev()

void NetCommandRef::setPrev ( NetCommandRef * prev)
inline

Set the previous command ref in the list.

Definition at line 115 of file NetCommandRef.h.

◆ setRelay()

void NetCommandRef::setRelay ( UnsignedByte relay)
inline

Set the send relay for this reference of the command.

Definition at line 139 of file NetCommandRef.h.

◆ setTimeLastSent()

void NetCommandRef::setTimeLastSent ( time_t timeLastSent)
inline

Set the time for the last time this command was sent from this reference.

Definition at line 131 of file NetCommandRef.h.

Member Data Documentation

◆ m_msg

NetCommandMsg* NetCommandRef::m_msg
protected

Definition at line 69 of file NetCommandRef.h.

◆ m_next

NetCommandRef* NetCommandRef::m_next
protected

Definition at line 70 of file NetCommandRef.h.

◆ m_prev

NetCommandRef* NetCommandRef::m_prev
protected

Definition at line 71 of file NetCommandRef.h.

◆ m_relay

UnsignedByte NetCommandRef::m_relay
protected

Need this in the command reference since the relay value will be different depending on where this particular reference is being sent.

Definition at line 72 of file NetCommandRef.h.

◆ m_timeLastSent

time_t NetCommandRef::m_timeLastSent
protected

Definition at line 73 of file NetCommandRef.h.


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