⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cunreliablequeueout.h

📁 <B>DirectX9.0 3D游戏编程</B>
💻 H
字号:
/*******************************************************************
 *         Advanced 3D Game Programming using DirectX 9.0
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * copyright (c) 2003 by Peter A Walsh and Adrian Perez
 * See license.txt for modification and distribution information
 ******************************************************************/
// cUnreliableQueueOut.h: interface for the cUnreliableQueueOut class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CUNRELIABLEQUEUEOUT_H__8E4CCAC2_D4DB_11D3_AE4F_00E029031C67__INCLUDED_)
#define AFX_CUNRELIABLEQUEUEOUT_H__8E4CCAC2_D4DB_11D3_AE4F_00E029031C67__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "cMonitor.h"
#include "cDataPacket.h"
#include <list>
using namespace std;


class cUnreliableQueueOut : public cMonitor
{
  list<cDataPacket *> d_packets;
  DWORD               d_currentPacketID;
  unsigned char       d_maxPackets,
                      d_numPackets;

public:
	cUnreliableQueueOut();
	virtual ~cUnreliableQueueOut();

	void  Clear();
	void  AddPacket( char *pData, unsigned short len );
  bool  GetPreviousPacket( DWORD packetID, cDataPacket *pPacket );
  void  SetMaxPackets( unsigned char maxPackets );


  DWORD GetCurrentID()
  {
    return d_currentPacketID;
  }
};

#endif // !defined(AFX_CUNRELIABLEQUEUEOUT_H__8E4CCAC2_D4DB_11D3_AE4F_00E029031C67__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -