cbillingplayermanager.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 71 行

H
71
字号
///////////////////////////////////////////////////////////////////////////////// filename		: CBillingPlayerManager.h///////////////////////////////////////////////////////////////////////////////#ifndef __CBILLING_PLAYER_MANAGER__#define __CBILLING_PLAYER_MANAGER__// include files#include "Types.h"#include "Exception.h"#include "Thread.h"#include "Socket.h"#include "Mutex.h"#include "CBillingInfo.h"#ifdef __LOGIN_SERVER__	#include "LoginPlayer.h"#elif defined(__GAME_SERVER__)	#include "GamePlayer.h"#endifclass CBillingPlayer;/////////////////////////////////////////////////////// class CBillingPlayerManager//// 吝惫 呼傅 辑滚客 烹脚阑 傈淬窍绰 静饭靛/////////////////////////////////////////////////////class CBillingPlayerManager : public Thread{public:	CBillingPlayerManager() throw ( Error );	~CBillingPlayerManager() throw ( Error );public:	void init() throw ( Error ) {}	void stop() throw ( Error );	void run() throw ();	// 呼傅 包访 菩哦 焊郴扁 窃荐#ifdef __LOGIN_SERVER__	void sendLogin( LoginPlayer* pLoginPlayer ) throw ( ProtocolException, Error );#elif defined(__GAME_SERVER__)	bool sendLogin( GamePlayer* pGamePlayer ) throw ( ProtocolException, Error );	void sendIntervalValidation() throw ( ProtocolException, Error );	bool sendMinusPoint( GamePlayer* pGamePlayer ) throw ( ProtocolException, Error );	void sendMinusMinute( GamePlayer* pGamePlayer ) throw ( ProtocolException, Error );	void sendLogout( GamePlayer* pGamePlayer ) throw ( ProtocolException, Error );#endif	void setForceDisconnect( bool bForceDisconnect = true ) { m_bForceDisconnect = bForceDisconnect; }	int getVersionNumber() const throw();	int getMinusIntervalInt() const throw ();	string getMinusInterval() const throw ();private:	CBillingPlayer*		m_pCBillingPlayer;	mutable Mutex		m_Mutex;	mutable Mutex		m_SendMutex;	bool				m_bForceDisconnect;};// global variable declarationextern CBillingPlayerManager* g_pCBillingPlayerManager;#endif

⌨️ 快捷键说明

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