#include <FrameData.h>
Public Member Functions | |
| FrameData () | |
| ~FrameData () | |
| void | init () |
| void | reset () |
| void | update () |
| UnsignedInt | getFrame () |
| void | setFrame (UnsignedInt frame) |
| FrameDataReturnType | allCommandsReady (Bool debugSpewage) |
| NetCommandList * | getCommandList () |
| 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 |
| NetCommandList * | m_commandList |
| UnsignedInt | m_lastFailedCC |
| UnsignedInt | m_lastFailedFrameCC |
Definition at line 40 of file FrameData.h.
| FrameData::FrameData | ( | ) |
Constructor
Definition at line 34 of file FrameData.cpp.
| FrameData::~FrameData | ( | ) |
Destructor
Definition at line 50 of file FrameData.cpp.
| void FrameData::addCommand | ( | NetCommandMsg * | msg | ) |
Add a command to this frame
Definition at line 163 of file FrameData.cpp.
| 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.
| void FrameData::destroyGameMessages | ( | ) |
destroy all the commands in this frame.
Definition at line 198 of file FrameData.cpp.
| UnsignedInt FrameData::getCommandCount | ( | ) |
return the number of commands received so far.
Definition at line 156 of file FrameData.cpp.
| NetCommandList * FrameData::getCommandList | ( | ) |
Return the list of commands for this frame
Definition at line 183 of file FrameData.cpp.
| UnsignedInt FrameData::getFrame | ( | ) |
return the frame number this frame data is associated with.
Definition at line 93 of file FrameData.cpp.
| UnsignedInt FrameData::getFrameCommandCount | ( | ) |
Get the command count for this frame.
Definition at line 149 of file FrameData.cpp.
| void FrameData::init | ( | ) |
Initialize this thing.
Definition at line 61 of file FrameData.cpp.
| void FrameData::reset | ( | ) |
Reset this thing.
Definition at line 80 of file FrameData.cpp.
| void FrameData::setFrame | ( | UnsignedInt | frame | ) |
Assign the frame number this frame data is associated with.
Definition at line 100 of file FrameData.cpp.
| void FrameData::setFrameCommandCount | ( | UnsignedInt | frameCommandCount | ) |
Set the command count for this frame
Definition at line 141 of file FrameData.cpp.
| void FrameData::update | ( | ) |
update the thing, doesn't do anything at the moment.
Definition at line 87 of file FrameData.cpp.
| void FrameData::zeroFrame | ( | ) |
Set both the command count and the frame command count to 0.
Definition at line 190 of file FrameData.cpp.
|
protected |
Definition at line 63 of file FrameData.h.
|
protected |
Definition at line 64 of file FrameData.h.
|
protected |
Definition at line 61 of file FrameData.h.
|
protected |
Definition at line 62 of file FrameData.h.
|
protected |
Definition at line 65 of file FrameData.h.
|
protected |
Definition at line 66 of file FrameData.h.