cgshoprequestsell.h

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

H
103
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : CGShopRequestSell.h // Written By  : 辫己刮// Description : // 敲饭捞绢俊霸 磊脚捞 啊瘤绊 乐绰 酒捞袍阑 惑痢 NPC俊霸// 迫扁甫 夸没且 锭 静捞绰 菩哦捞促.////////////////////////////////////////////////////////////////////////////////#ifndef __CG_SHOP_REQUEST_SELL_H__#define __CG_SHOP_REQUEST_SELL_H__// include files#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////////////// CGShopRequestSell operation code////////////////////////////////////////////////////////////////////////////////enum{	SHOP_REQUEST_SELL_NORMAL = 0,	SHOP_REQUEST_SELL_ALL_SKULL,	SHOP_REQUEST_SELL_MAX};//////////////////////////////////////////////////////////////////////////////////// class CGShopRequestSell;//////////////////////////////////////////////////////////////////////////////////class CGShopRequestSell : public Packet {public:	CGShopRequestSell() { m_ObjectID = 0; m_ItemObjectID = 0; m_OpCode = SHOP_REQUEST_SELL_NORMAL; }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_SHOP_REQUEST_SELL; }	PacketSize_t getPacketSize() const throw() { return szObjectID+szObjectID+szBYTE; }	string getPacketName() const throw() { return "CGShopRequestSell"; }	string toString() const throw();	public:	ObjectID_t getObjectID() throw() { return m_ObjectID; }	void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; }	ObjectID_t getItemObjectID() throw() { return m_ItemObjectID;}	void setItemObjectID(ObjectID_t oid) { m_ItemObjectID = oid;}	BYTE getOpCode(void) const { return m_OpCode; }	void setOpCode(BYTE code) { m_OpCode = code; }private:	ObjectID_t m_ObjectID;     // NPC ID	ObjectID_t m_ItemObjectID; // Item Object ID	BYTE       m_OpCode;       // operation code};//////////////////////////////////////////////////////////////////////////////////// class CGShopRequestSellFactory;//////////////////////////////////////////////////////////////////////////////////class CGShopRequestSellFactory : public PacketFactory {public:	Packet* createPacket() throw() { return new CGShopRequestSell(); }	string getPacketName() const throw() { return "CGShopRequestSell"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_SHOP_REQUEST_SELL; }	PacketSize_t getPacketMaxSize() const throw() { return szObjectID+szObjectID+szBYTE; }};//////////////////////////////////////////////////////////////////////////////////// class CGShopRequestSellHandler;//////////////////////////////////////////////////////////////////////////////////class CGShopRequestSellHandler {public:	static void execute(CGShopRequestSell* pPacket, Player* player) throw(ProtocolException, Error);	static void executeNormal(CGShopRequestSell* pPacket, Player* player) throw(ProtocolException, Error);	static void executeMotorcycle(CGShopRequestSell* pPacket, Player* player) throw(ProtocolException, Error);	static void executeOpAllSkull(CGShopRequestSell* pPacket, Player* player) throw(ProtocolException, Error);	static void sendFailPacket(CGShopRequestSell* pPacket, Player* player) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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