MoveList Class Reference

#include <moveList.h>

List of all members.

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)
Move Packets
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)
Move Packets
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
GameConnectionmConnection
Vector< MovemMoveList
U32 mMoveCredit
GameConnectionmConnection
Vector< MovemMoveList

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
}


Member Enumeration Documentation

Enumerator:
MoveCountBits 
MaxMoveCount  MaxMoveCount should not exceed the MoveManager's own maximum (MaxMoveQueueSize).

anonymous enum [protected]

Enumerator:
TotalTicksBits 
TotalTicksMask 
ServerTicksUninitialized 

Enumerator:
MoveCountBits 
MaxMoveCount  MaxMoveCount should not exceed the MoveManager's own maximum (MaxMoveQueueSize).


Constructor & Destructor Documentation

MoveList::MoveList (  ) 

MoveList::MoveList (  ) 


Member Function Documentation

void MoveList::init (  )  [inline]

void MoveList::setConnection ( GameConnection connection  )  [inline]

void MoveList::ghostReadExtra ( NetObject ,
BitStream ,
bool  newGhost 
)

void MoveList::ghostWriteExtra ( NetObject ,
BitStream  
) [inline]

void MoveList::ghostPreRead ( NetObject ,
bool  newGhost 
)

void MoveList::clientWriteMovePacket ( BitStream bstream  ) 

void MoveList::clientReadMovePacket ( BitStream  ) 

void MoveList::serverWriteMovePacket ( BitStream  ) 

void MoveList::serverReadMovePacket ( BitStream bstream  ) 

void MoveList::writeDemoStartBlock ( ResizeBitStream stream  ) 

void MoveList::readDemoStartBlock ( BitStream stream  ) 

void MoveList::resetClientMoves (  )  [inline]

void MoveList::resetCatchup (  )  [inline]

void MoveList::collectMove (  ) 

void MoveList::pushMove ( const Move mv  ) 

virtual U32 MoveList::getMoveList ( Move **  ,
U32 numMoves 
) [virtual]

virtual bool MoveList::areMovesPending (  )  [virtual]

virtual void MoveList::clearMoves ( U32  count  )  [virtual]

void MoveList::markControlDirty (  ) 

bool MoveList::isMismatch (  )  [inline]

bool MoveList::isBacklogged (  ) 

void MoveList::onAdvanceObjects (  )  [inline]

bool MoveList::getNextMove ( Move curMove  )  [protected]

void MoveList::resetMoveList (  )  [protected]

S32 MoveList::getServerTicks ( U32  serverTickNum  )  [protected]

void MoveList::updateClientServerTickDiff ( S32 tickDiff  )  [protected]

bool MoveList::serverTicksInitialized (  )  [inline, protected]

void MoveList::init (  )  [inline]

void MoveList::setConnection ( GameConnection connection  )  [inline]

void MoveList::ghostReadExtra ( NetObject ,
BitStream ,
bool  newGhost 
) [inline]

void MoveList::ghostWriteExtra ( NetObject ,
BitStream  
) [inline]

void MoveList::ghostPreRead ( NetObject ,
bool  newGhost 
) [inline]

void MoveList::clientWriteMovePacket ( BitStream bstream  ) 

void MoveList::clientReadMovePacket ( BitStream  ) 

void MoveList::serverWriteMovePacket ( BitStream  ) 

void MoveList::serverReadMovePacket ( BitStream bstream  ) 

void MoveList::writeDemoStartBlock ( ResizeBitStream stream  ) 

void MoveList::readDemoStartBlock ( BitStream stream  ) 

void MoveList::collectMove (  ) 

void MoveList::pushMove ( const Move mv  ) 

U32 MoveList::getMoveList ( Move **  ,
U32 numMoves 
)

void MoveList::clearMoves ( U32  count  ) 

void MoveList::markControlDirty (  )  [inline]

bool MoveList::isMismatch (  )  [inline]

bool MoveList::isBacklogged (  ) 

void MoveList::incMoveCredit ( U32  ticks  ) 

bool MoveList::getNextMove ( Move curMove  )  [protected]

bool MoveList::areMovesPending (  )  [protected]


Member Data Documentation