cgstashwithdraw.h

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

H
71
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : CGStashWithdraw.h // Written By  : 辫己刮// Description : ////////////////////////////////////////////////////////////////////////////////#ifndef __CG_STASH_WITHDRAW_H__#define __CG_STASH_WITHDRAW_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////////// class CGStashWithdraw;//////////////////////////////////////////////////////////////////////////////////class CGStashWithdraw : public Packet {public:    void read(SocketInputStream & iStream) throw(ProtocolException, Error);    void write(SocketOutputStream & oStream) const throw(ProtocolException, Error);	void execute(Player* pPlayer) throw(ProtocolException, Error);	PacketID_t getPacketID() const throw() { return PACKET_CG_STASH_WITHDRAW; }	PacketSize_t getPacketSize() const throw() { return szGold; }	string getPacketName() const throw() { return "CGStashWithdraw"; }	string toString() const throw();	public:	Gold_t getAmount(void) const throw() { return m_Amount;}	void setAmount(Gold_t amount) throw() { m_Amount = amount;}private :	Gold_t m_Amount;};//////////////////////////////////////////////////////////////////////////////////// class CGStashWithdrawFactory;//////////////////////////////////////////////////////////////////////////////////class CGStashWithdrawFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new CGStashWithdraw(); }	string getPacketName() const throw() { return "CGStashWithdraw"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_STASH_WITHDRAW; }	PacketSize_t getPacketMaxSize() const throw() { return szGold; }};//////////////////////////////////////////////////////////////////////////////////// class CGStashWithdrawHandler;//////////////////////////////////////////////////////////////////////////////////class CGStashWithdrawHandler {	public:	// execute packet's handler	static void execute(CGStashWithdraw* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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