cgstashdeposit.h

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

H
71
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : CGStashDeposit.h // Written By  : 辫己刮// Description : ////////////////////////////////////////////////////////////////////////////////#ifndef __CG_STASH_DEPOSIT_H__#define __CG_STASH_DEPOSIT_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////////// class CGStashDeposit;//////////////////////////////////////////////////////////////////////////////////class CGStashDeposit : 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_DEPOSIT; }	PacketSize_t getPacketSize() const throw() { return szGold; }	string getPacketName() const throw() { return "CGStashDeposit"; }	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 CGStashDepositFactory;//////////////////////////////////////////////////////////////////////////////////class CGStashDepositFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new CGStashDeposit(); }	string getPacketName() const throw() { return "CGStashDeposit"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_STASH_DEPOSIT; }	PacketSize_t getPacketMaxSize() const throw() { return szGold; }};//////////////////////////////////////////////////////////////////////////////////// class CGStashDepositHandler;//////////////////////////////////////////////////////////////////////////////////class CGStashDepositHandler {	public:	// execute packet's handler	static void execute(CGStashDeposit* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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