billingplayer.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 80 行
H
80 行
//////////////////////////////////////////////////////////////////////// // Filename : BillingPlayer.h // Written by : reiot@ewestsoft.com// Description :// //////////////////////////////////////////////////////////////////////#ifndef __BILLING_PLAYER_H__#define __BILLING_PLAYER_H__// include files#include "Types.h"#include "Exception.h"#include "Player.h"#include "BillingInfo.h"class CommonBillingPacket;////////////////////////////////////////////////////////////////////////// class BillingPlayer////////////////////////////////////////////////////////////////////////class BillingPlayer : public Player {public : // constructor BillingPlayer () throw (Error); BillingPlayer (Socket * pSocket) throw ( Error ); // destructor virtual ~BillingPlayer () throw (Error); virtual void processInput () throw (IOException, Error); virtual void processOutput () throw (IOException, Error); // parse packet and execute handler for the packet virtual void processCommand () throw (IOException, Error); // send packet to player's output buffer virtual void sendPacket (Packet* pPacket) throw (ProtocolException, Error); // disconnect // 敲饭捞绢狼 楷搬阑 辆丰且 锭, 惑措祈捞 利例窍霸 肺弊酒眶窍瘤 臼阑 版快 家南狼 楷搬捞 // 捞固 谗败 乐栏骨肺 disconnect(DISCONNECTED) 甫 荤侩秦辑 楷搬阑 辆丰秦具 茄促. 馆搁, // 沥寸窍霸 肺弊酒眶阑 茄 版快俊绰 disconnect(UNDISCONNECTED) 甫 荤侩秦具 茄促. virtual void disconnect (bool bDisconnected = DISCONNECTED) throw (InvalidProtocolException, Error); void setSocket ( Socket * pSocket ) throw (); // get debug string virtual string toString () const throw (Error);public : 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 ); int getRetryCount() const { return m_RetryCount; } int getRetryValue() const { return m_RetryValue; } void resetRetryCount() { m_RetryCount = 0; } void resetRetryValue() { m_RetryValue = 0; } protected : // 老沥 矫埃救俊 货肺 PayLogin 阑 货肺 焊辰(Retry) 敲饭捞绢 荐 int m_RetryCount; // 老沥 矫埃救俊 货肺 PayLogin 阑 货肺 焊辰(Retry) 敲饭捞绢狼 醚 Retry 钦 int m_RetryValue;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?