⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcshopsellok.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//--------------------------------------------------------------------------------// // Filename    : GCShopSellOK.h // Written By  : 辫己刮// Description : 敲饭捞绢啊 惑痢 NPC俊霸 拱扒 备涝阑 夸没沁阑 锭, 力措肺//               牢刘捞 登搁 捞 菩哦捞 敲饭捞绢俊霸 朝酒埃促.//               努扼捞攫飘绰 捞 菩哦阑 罐酒辑 惑痢 滚傈阑 诀单捞飘窍绊,//               坷宏璃飘 ID肺 酒捞袍 沥焊甫 眉农秦 初绊, 啊拜阑 捞侩秦//               敲饭捞绢狼 捣阑 诀单捞飘茄促.// //--------------------------------------------------------------------------------#ifndef __GC_SHOP_SELL_OK_H__#define __GC_SHOP_SELL_OK_H__// include files#include "Packet.h"#include "PacketFactory.h"//--------------------------------------------------------------------------------//// class GCShopSellOK;////--------------------------------------------------------------------------------class GCShopSellOK : public Packet {public :	GCShopSellOK() throw();	virtual ~GCShopSellOK() throw();		// 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促.	void read(SocketInputStream & iStream) throw(ProtocolException, Error);		    	// 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促.	void write(SocketOutputStream & oStream) const throw(ProtocolException, Error);	// execute packet's handler	void execute(Player* pPlayer) throw(ProtocolException, Error);	// get packet id	PacketID_t getPacketID() const throw() { return PACKET_GC_SHOP_SELL_OK; }		// get packet's body size	PacketSize_t getPacketSize() const throw() 	{ 		return szObjectID + szShopVersion + szObjectID + szPrice;	}	// get packet name	string getPacketName() const throw() { return "GCShopSellOK"; }		// get packet's debug string	string toString() const throw();public :	// get/set NPC's object id	ObjectID_t getObjectID() const throw() { return m_ObjectID; }	void setObjectID(ObjectID_t creatureID) throw() { m_ObjectID = creatureID; }	// get/set shop version		ShopVersion_t getShopVersion(void) const throw() { return m_Version;}	void setShopVersion(const ShopVersion_t ver) throw() { m_Version = ver;}	// get/set item object id	ObjectID_t getItemObjectID() const throw() { return m_ItemObjectID;}	void setItemObjectID(ObjectID_t id) throw() { m_ItemObjectID = id;}	// get/set price	Price_t getPrice() const throw() { return m_Price;}	void setPrice(Price_t price) { m_Price = price;}private :		// NPC's object id	ObjectID_t m_ObjectID;		// 惑痢 滚怜	ShopVersion_t m_Version;		// 酒捞袍 沥焊	ObjectID_t    m_ItemObjectID;	// 啊拜	Price_t       m_Price;};////////////////////////////////////////////////////////////////////////// class GCShopSellOKFactory;//// Factory for GCShopSellOK////////////////////////////////////////////////////////////////////////class GCShopSellOKFactory : public PacketFactory {public :		// create packet	Packet* createPacket() throw() { return new GCShopSellOK(); }	// get packet name	string getPacketName() const throw() { return "GCShopSellOK"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_SHOP_SELL_OK; }	// get packet's max body size	PacketSize_t getPacketMaxSize() const throw() 	{ 		return szObjectID + szShopVersion + szObjectID + szPrice;	}};////////////////////////////////////////////////////////////////////////// class GCShopSellOKHandler;////////////////////////////////////////////////////////////////////////class GCShopSellOKHandler {	public :		// execute packet's handler	static void execute(GCShopSellOK* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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