billingplayermanager.h

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 65 行

H
65
字号
//////////////////////////////////////////////////////////////////////////////// Filename    : BillingPlayerManager.h// Written By  : Reiot// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __BILLING_PLAYER_MANANGER_H__#define __BILLING_PLAYER_MANANGER_H__#include "Types.h"#include "Exception.h"#include "Thread.h"#include "Socket.h"#include "Packet.h"#include "Mutex.h"#include "BillingInfo.h"	// for #define __CONNECT_BILLING_SYSTEM__class BillingPlayer;class CommonBillingPacket;//////////////////////////////////////////////////////////////////////////////// class BillingPlayerManager;//// 溅绢靛 辑滚客狼 烹脚阑 傈淬窍绰 静饭靛捞促.// 楷搬 谗扁搁 促矫 楷搬秦具 等促. 瞪 锭鳖瘤~~//////////////////////////////////////////////////////////////////////////////class BillingPlayerManager : public Thread {public:	BillingPlayerManager() throw(Error);	~BillingPlayerManager() throw(Error);public:	void init() throw(Error) {}	void stop() throw(Error);	void run() throw();	void sendPacket( Packet* pPacket ) throw( ProtocolException, Error );	// Pay Login/Logout	void sendPayInit() throw( ProtocolException, Error );	void sendPayCheck( CommonBillingPacket* pPacket ) throw( ProtocolException, Error );	void sendPayLogin( Player* pPlayer ) throw( ProtocolException, Error );	void sendPayLogout( Player* pPlayer ) throw( ProtocolException, Error );	void setForceDisconnect( bool bForceDisconnect = true ) { m_bForceDisconnect = bForceDisconnect; }private:	BillingPlayer* m_pBillingPlayer;	mutable Mutex	m_Mutex;	bool m_bForceDisconnect;};// global variable declarationextern BillingPlayerManager* g_pBillingPlayerManager;#endif

⌨️ 快捷键说明

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