#include <FrameDataManager.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| FrameDataManager (Bool isLocal) | |
| void | init () |
| void | reset () |
| void | update () |
| void | addNetCommandMsg (NetCommandMsg *msg) |
| void | setIsLocal (Bool isLocal) |
| FrameDataReturnType | allCommandsReady (UnsignedInt frame, Bool debugSpewage) |
| NetCommandList * | getFrameCommandList (UnsignedInt frame) |
| UnsignedInt | getCommandCount (UnsignedInt frame) |
| void | setFrameCommandCount (UnsignedInt frame, UnsignedInt commandCount) |
| UnsignedInt | getFrameCommandCount (UnsignedInt frame) |
| void | zeroFrames (UnsignedInt startingFrame, UnsignedInt numFrames) |
| void | destroyGameMessages () |
| void | resetFrame (UnsignedInt frame, Bool isAdvancing=TRUE) |
| void | setQuitFrame (UnsignedInt frame) |
| UnsignedInt | getQuitFrame () |
| Bool | getIsQuitting () |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Attributes | |
| FrameData * | m_frameData |
| Bool | m_isLocal |
| Bool | m_isQuitting |
| UnsignedInt | m_quitFrame |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 34 of file FrameDataManager.h.
| FrameDataManager::FrameDataManager | ( | Bool | isLocal | ) |
Constructor. isLocal tells it whether its the frame data manager for the local player or not.
Definition at line 34 of file FrameDataManager.cpp.
| void FrameDataManager::addNetCommandMsg | ( | NetCommandMsg * | msg | ) |
Add a network command to the appropriate frame.
Definition at line 90 of file FrameDataManager.cpp.
| FrameDataReturnType FrameDataManager::allCommandsReady | ( | UnsignedInt | frame, |
| Bool | debugSpewage ) |
Returns true if all the commands for the given frame are ready.
Definition at line 105 of file FrameDataManager.cpp.
| void FrameDataManager::destroyGameMessages | ( | ) |
Destroy all the commands held by this object.
Definition at line 181 of file FrameDataManager.cpp.
| UnsignedInt FrameDataManager::getCommandCount | ( | UnsignedInt | frame | ) |
Returns the command count for the given frame.
Definition at line 141 of file FrameDataManager.cpp.
| UnsignedInt FrameDataManager::getFrameCommandCount | ( | UnsignedInt | frame | ) |
Definition at line 159 of file FrameDataManager.cpp.
| NetCommandList * FrameDataManager::getFrameCommandList | ( | UnsignedInt | frame | ) |
Returns the command list for the given frame.
Definition at line 114 of file FrameDataManager.cpp.
| Bool FrameDataManager::getIsQuitting | ( | ) |
returns true if this frame data manager is quitting.
Definition at line 205 of file FrameDataManager.cpp.
| UnsignedInt FrameDataManager::getQuitFrame | ( | ) |
returns the quit frame.
Definition at line 198 of file FrameDataManager.cpp.
| void FrameDataManager::init | ( | ) |
Initialize all of the frame datas associated with this manager.
Definition at line 61 of file FrameDataManager.cpp.
| void FrameDataManager::reset | ( | ) |
Reset the state of all the frames.
Definition at line 77 of file FrameDataManager.cpp.
| void FrameDataManager::resetFrame | ( | UnsignedInt | frame, |
| Bool | isAdvancing = TRUE ) |
Reset the contents of the given frame.
Definition at line 122 of file FrameDataManager.cpp.
| void FrameDataManager::setFrameCommandCount | ( | UnsignedInt | frame, |
| UnsignedInt | commandCount ) |
Set the frame command count for the given frame.
Definition at line 150 of file FrameDataManager.cpp.
| void FrameDataManager::setIsLocal | ( | Bool | isLocal | ) |
| void FrameDataManager::setQuitFrame | ( | UnsignedInt | frame | ) |
Sets the quit frame, also sets the isQuitting flag.
Definition at line 190 of file FrameDataManager.cpp.
| void FrameDataManager::update | ( | ) |
update function. Does nothing at this time.
Definition at line 84 of file FrameDataManager.cpp.
| void FrameDataManager::zeroFrames | ( | UnsignedInt | startingFrame, |
| UnsignedInt | numFrames ) |
Set both the command count and the frame command count to 0 for the given frames.
Definition at line 168 of file FrameDataManager.cpp.
|
protected |
Definition at line 60 of file FrameDataManager.h.
|
protected |
Definition at line 61 of file FrameDataManager.h.
|
protected |
Definition at line 63 of file FrameDataManager.h.
|
protected |
Definition at line 64 of file FrameDataManager.h.