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

📄 gcmorph1.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//--------------------------------------------------------------------------------// // Filename    : GCMorph1.h // Written By  : crazydog// Description : // //--------------------------------------------------------------------------------#ifndef __GC_MORPH1_H__#define __GC_MORPH1_H__// include files#include "Packet.h"#include "PacketFactory.h"#include "GameTime.h"#include "PCSlayerInfo2.h"#include "PCVampireInfo2.h"#include "InventoryInfo.h"#include "GearInfo.h"#include "ExtraInfo.h"#include "Assert.h"//--------------------------------------------------------------------------------//// class GCMorph1;////	slayer殿捞 vampire肺 函脚且锭, 函脚窍矫绰 盒俊霸 焊郴绰 菩哦.//--------------------------------------------------------------------------------class GCMorph1 : public Packet {public :	// constructor	GCMorph1() throw();	// destructor	~GCMorph1() 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_MORPH_1; }		// get packet's body size	PacketSize_t getPacketSize() const throw() 	{ 		// [PCType][PCInfo]		// [GameTime][Weather][WeatherLevel][DarkLevel][LightLevel]		// [#NPCTypes][NPCType1]...[NPCTypeN]		// [#MonsterTypes][MonsterType1]...[MonsterTypeM]		return m_pPCInfo->getSize() 			+ m_pInventoryInfo->getSize()			+ m_pGearInfo->getSize()			+ m_pExtraInfo->getSize();	}	// get packet name	string getPacketName() const throw() { return "GCMorph1"; }		// get packet's debug string	string toString() const throw();//--------------------------------------------------// methods//--------------------------------------------------public :	// get/set PC info	PCInfo* getPCInfo2() const throw() { return m_pPCInfo; }	void setPCInfo2(PCInfo* pPCInfo) throw(Error) { m_pPCInfo = pPCInfo; }	// get/set Inventory Info	InventoryInfo* getInventoryInfo() const throw() { return m_pInventoryInfo; }	void setInventoryInfo(InventoryInfo* pInventoryInfo) throw(Error) { m_pInventoryInfo = pInventoryInfo; }	// get/set Gear Info	GearInfo* getGearInfo() const throw() { return m_pGearInfo; }	void setGearInfo(GearInfo* pGearInfo) throw(Error) { m_pGearInfo = pGearInfo; }	// get/set ExtraInfo	ExtraInfo* getExtraInfo() const throw() { return m_pExtraInfo; }	void setExtraInfo(ExtraInfo* pExtraInfo) throw(Error) { m_pExtraInfo = pExtraInfo; }//--------------------------------------------------// data members//--------------------------------------------------private :	//--------------------------------------------------------------------------------	// PC Information	//--------------------------------------------------------------------------------	// PCSlayerInfo2 肚绰 PCVampireInfo2 甫 荤侩茄促.	PCInfo* m_pPCInfo;	//--------------------------------------------------------------------------------	// Inventory Information	//--------------------------------------------------------------------------------	InventoryInfo* m_pInventoryInfo;	//--------------------------------------------------------------------------------	// Gear Information	//--------------------------------------------------------------------------------	GearInfo* m_pGearInfo;	//--------------------------------------------------------------------------------	// Extra Information	//--------------------------------------------------------------------------------	ExtraInfo* m_pExtraInfo;		// inventory	// quick item slot	// gear	// 历澄(PDA)	// 荐青 涅胶飘 沥焊	// 傍瘤荤亲, 捞亥飘 沥焊	// 儒褥.. 娟甸篮 贸澜 PDS甫 挠 锭 促款罐阑鳖唱.. - -;};//--------------------------------------------------------------------------------//// class GCMorph1Factory;//// Factory for GCMorph1////--------------------------------------------------------------------------------class GCMorph1Factory : public PacketFactory {public :		// create packet	Packet* createPacket() throw() { return new GCMorph1(); }	// get packet name	string getPacketName() const throw() { return "GCMorph1"; }		// get packet id	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_MORPH_1; }	// get packet's max body size	// *OPTIMIZATION HINT*	// const static GCMorph1PacketMaxSize 甫 沥狼, 府畔窍扼.	PacketSize_t getPacketMaxSize() const throw() 	{ 		return szBYTE + PCSlayerInfo2::getMaxSize() 			+ InventoryInfo::getMaxSize()			+ GearInfo::getMaxSize()			+ ExtraInfo::getMaxSize()			;	}};//--------------------------------------------------------------------------------//// class GCMorph1Handler;////--------------------------------------------------------------------------------class GCMorph1Handler {public :	// execute packet's handler	static void execute(GCMorph1* pPacket, Player* pPlayer) throw(ProtocolException, Error);};#endif

⌨️ 快捷键说明

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