|
Public Member Functions |
| MoveList () |
void | init () |
void | setConnection (GameConnection *connection) |
void | writeDemoStartBlock (ResizeBitStream *stream) |
void | readDemoStartBlock (BitStream *stream) |
void | resetClientMoves () |
void | resetCatchup () |
void | collectMove () |
void | pushMove (const Move &mv) |
virtual U32 | getMoveList (Move **, U32 *numMoves) |
virtual bool | areMovesPending () |
virtual void | clearMoves (U32 count) |
void | markControlDirty () |
bool | isMismatch () |
bool | isBacklogged () |
void | onAdvanceObjects () |
| MoveList () |
void | init () |
void | setConnection (GameConnection *connection) |
void | collectMove () |
void | pushMove (const Move &mv) |
U32 | getMoveList (Move **, U32 *numMoves) |
void | clearMoves (U32 count) |
void | markControlDirty () |
bool | isMismatch () |
bool | isBacklogged () |
void | incMoveCredit (U32 ticks) |
|
Write/read move data to the packet.
|
void | ghostReadExtra (NetObject *, BitStream *, bool newGhost) |
void | ghostWriteExtra (NetObject *, BitStream *) |
void | ghostPreRead (NetObject *, bool newGhost) |
void | clientWriteMovePacket (BitStream *bstream) |
void | clientReadMovePacket (BitStream *) |
void | serverWriteMovePacket (BitStream *) |
void | serverReadMovePacket (BitStream *bstream) |
|
Write/read move data to the packet.
|
void | ghostReadExtra (NetObject *, BitStream *, bool newGhost) |
void | ghostWriteExtra (NetObject *, BitStream *) |
void | ghostPreRead (NetObject *, bool newGhost) |
void | clientWriteMovePacket (BitStream *bstream) |
void | clientReadMovePacket (BitStream *) |
void | serverWriteMovePacket (BitStream *) |
void | serverReadMovePacket (BitStream *bstream) |
void | writeDemoStartBlock (ResizeBitStream *stream) |
void | readDemoStartBlock (BitStream *stream) |
Protected Types |
| TotalTicksBits = 10 |
| TotalTicksMask = (1<<TotalTicksBits)-1 |
| ServerTicksUninitialized = 0xFFFFFFFF |
enum | {
TotalTicksBits = 10,
TotalTicksMask = (1<<TotalTicksBits)-1,
ServerTicksUninitialized = 0xFFFFFFFF
} |
Protected Member Functions |
bool | getNextMove (Move &curMove) |
void | resetMoveList () |
S32 | getServerTicks (U32 serverTickNum) |
void | updateClientServerTickDiff (S32 &tickDiff) |
bool | serverTicksInitialized () |
bool | getNextMove (Move &curMove) |
bool | areMovesPending () |
Protected Attributes |
U32 | mLastMoveAck |
U32 | mLastClientMove |
U32 | mFirstMoveIndex |
U32 | mLastSentMove |
bool | mControlMismatch |
F32 | mAvgMoveQueueSize |
U32 | mTargetMoveListSize |
U32 | mMaxMoveListSize |
F32 | mSmoothMoveAvg |
F32 | mMoveListSizeSlack |
U32 | mTotalServerTicks |
GameConnection * | mConnection |
Vector< Move > | mMoveList |
U32 | mMoveCredit |
GameConnection * | mConnection |
Vector< Move > | mMoveList |
Private Types |
| MoveCountBits = 5 |
| MaxMoveCount = 30 |
| MaxMoveCount should not exceed the MoveManager's own maximum (MaxMoveQueueSize).
|
enum | PrivateConstants {
MoveCountBits = 5,
MaxMoveCount = 30
} |
enum | PrivateConstants {
MoveCountBits = 5,
MaxMoveCount = 30
} |