gcstashsell.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 72 行
H
72 行
////////////////////////////////////////////////////////////////////////////////// // Filename : GCStashSell.h // Written By : 辫己刮// Description : // ////////////////////////////////////////////////////////////////////////////////#ifndef __GC_STASH_SELL_H__#define __GC_STASH_SELL_H__#include "Packet.h"#include "PacketFactory.h"//////////////////////////////////////////////////////////////////////////////////// class GCStashSell;//////////////////////////////////////////////////////////////////////////////////class GCStashSell : 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_GC_STASH_SELL; } PacketSize_t getPacketSize() const throw() { return szGold; } string getPacketName() const throw() { return "GCStashSell"; } string toString() const throw();public: Gold_t getPrice(void) const throw() { return m_Price; } void setPrice(Gold_t price) throw() { m_Price = price; }private: Gold_t m_Price;};//////////////////////////////////////////////////////////////////////////////////// class GCStashSellFactory;//////////////////////////////////////////////////////////////////////////////////class GCStashSellFactory : public PacketFactory {public: Packet* createPacket() throw() { return new GCStashSell(); } string getPacketName() const throw() { return "GCStashSell"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_STASH_SELL; } PacketSize_t getPacketMaxSize() const throw() { return szGold; }};//////////////////////////////////////////////////////////////////////////////////// class GCStashSellHandler;//////////////////////////////////////////////////////////////////////////////////class GCStashSellHandler {public: static void execute(GCStashSell* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?