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