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

#include <FrameData.h>

Public Member Functions

 FrameData ()
 
 ~FrameData ()
 
void init ()
 
void reset ()
 
void update ()
 
UnsignedInt getFrame ()
 
void setFrame (UnsignedInt frame)
 
FrameDataReturnType allCommandsReady (Bool debugSpewage)
 
NetCommandListgetCommandList ()
 
void setFrameCommandCount (UnsignedInt totalCommandCount)
 
UnsignedInt getFrameCommandCount ()
 
void addCommand (NetCommandMsg *msg)
 
UnsignedInt getCommandCount ()
 
void zeroFrame ()
 
void destroyGameMessages ()
 

Protected Attributes

UnsignedInt m_frame
 
UnsignedInt m_frameCommandCount
 
UnsignedInt m_commandCount
 
NetCommandListm_commandList
 
UnsignedInt m_lastFailedCC
 
UnsignedInt m_lastFailedFrameCC
 

Detailed Description

Definition at line 40 of file FrameData.h.

Constructor & Destructor Documentation

◆ FrameData()

FrameData::FrameData ( )

Constructor

Definition at line 34 of file FrameData.cpp.

◆ ~FrameData()

FrameData::~FrameData ( )

Destructor

Definition at line 50 of file FrameData.cpp.

Member Function Documentation

◆ addCommand()

void FrameData::addCommand ( NetCommandMsg * msg)

Add a command to this frame

Definition at line 163 of file FrameData.cpp.

◆ allCommandsReady()

FrameDataReturnType FrameData::allCommandsReady ( Bool debugSpewage)

Returns true if all the frame command count is equal to the number of commands that have been received.

Definition at line 107 of file FrameData.cpp.

◆ destroyGameMessages()

void FrameData::destroyGameMessages ( )

destroy all the commands in this frame.

Definition at line 198 of file FrameData.cpp.

◆ getCommandCount()

UnsignedInt FrameData::getCommandCount ( )

return the number of commands received so far.

Definition at line 156 of file FrameData.cpp.

◆ getCommandList()

NetCommandList * FrameData::getCommandList ( )

Return the list of commands for this frame

Definition at line 183 of file FrameData.cpp.

◆ getFrame()

UnsignedInt FrameData::getFrame ( )

return the frame number this frame data is associated with.

Definition at line 93 of file FrameData.cpp.

◆ getFrameCommandCount()

UnsignedInt FrameData::getFrameCommandCount ( )

Get the command count for this frame.

Definition at line 149 of file FrameData.cpp.

◆ init()

void FrameData::init ( )

Initialize this thing.

Definition at line 61 of file FrameData.cpp.

◆ reset()

void FrameData::reset ( )

Reset this thing.

Definition at line 80 of file FrameData.cpp.

◆ setFrame()

void FrameData::setFrame ( UnsignedInt frame)

Assign the frame number this frame data is associated with.

Definition at line 100 of file FrameData.cpp.

◆ setFrameCommandCount()

void FrameData::setFrameCommandCount ( UnsignedInt frameCommandCount)

Set the command count for this frame

Definition at line 141 of file FrameData.cpp.

◆ update()

void FrameData::update ( )

update the thing, doesn't do anything at the moment.

Definition at line 87 of file FrameData.cpp.

◆ zeroFrame()

void FrameData::zeroFrame ( )

Set both the command count and the frame command count to 0.

Definition at line 190 of file FrameData.cpp.

Member Data Documentation

◆ m_commandCount

UnsignedInt FrameData::m_commandCount
protected

Definition at line 63 of file FrameData.h.

◆ m_commandList

NetCommandList* FrameData::m_commandList
protected

Definition at line 64 of file FrameData.h.

◆ m_frame

UnsignedInt FrameData::m_frame
protected

Definition at line 61 of file FrameData.h.

◆ m_frameCommandCount

UnsignedInt FrameData::m_frameCommandCount
protected

Definition at line 62 of file FrameData.h.

◆ m_lastFailedCC

UnsignedInt FrameData::m_lastFailedCC
protected

Definition at line 65 of file FrameData.h.

◆ m_lastFailedFrameCC

UnsignedInt FrameData::m_lastFailedFrameCC
protected

Definition at line 66 of file FrameData.h.


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