extendedMoveList.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _EXTENDEDMOVELIST_H_
  2. #define _EXTENDEDMOVELIST_H_
  3. #ifndef _TVECTOR_H_
  4. #include "core/util/tVector.h"
  5. #endif
  6. #ifndef _MOVELIST_H_
  7. #include "T3D/gameBase/moveList.h"
  8. #endif
  9. #include "T3D/gameBase/extended/extendedMove.h"
  10. class ExtendedMoveList : public MoveList
  11. {
  12. typedef MoveList Parent;
  13. public:
  14. ExtendedMoveList();
  15. void clientWriteMovePacket(BitStream *);
  16. void clientReadMovePacket(BitStream *);
  17. void serverWriteMovePacket(BitStream *);
  18. void serverReadMovePacket(BitStream *);
  19. void advanceMove();
  20. void onAdvanceObjects() {}
  21. U32 getMoves(Move** movePtr,U32* numMoves);
  22. U32 getExtMoves( ExtendedMove** movePtr, U32 *numMoves );
  23. void collectMove();
  24. void pushMove( const Move &mv );
  25. void pushExtMove( const ExtendedMove &mv );
  26. void clearMoves( U32 count );
  27. virtual void reset();
  28. bool isBacklogged();
  29. bool areMovesPending();
  30. void ackMoves( U32 count );
  31. protected:
  32. U32 mMoveCredit;
  33. Vector<ExtendedMove> mExtMoveVec;
  34. protected:
  35. bool getNextExtMove( ExtendedMove &curMove );
  36. };
  37. #endif // _EXTENDEDMOVELIST_H_