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

📄 ridemotorcycleinfo.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : RideMotorcycleInfo.h // Written By  : elca@ewestsoft.com// Description : // 鸥绊 乐绰 葛磐荤捞努俊 措茄 沥焊甫 啊瘤绊 乐绰 菩哦捞促.// 葛磐 荤捞努 磊眉俊 包茄 沥焊 寇俊档, 葛磐 荤捞努 郴何俊 乐绰// 牢亥配府俊 措茄 沥焊档 鞍捞 啊瘤绊 乐促. 牢亥配府 沥焊俊 措茄 巴篮// RideMotorcycleSlotInfo客 InventorySlotInfo甫 曼炼窍扼.//////////////////////////////////////////////////////////////////////////////#ifndef __RIDE_MOTORCYCLE_INFO_H__#define __RIDE_MOTORCYCLE_INFO_H__#include "Types.h"#include "Exception.h"#include "RideMotorcycleSlotInfo.h"#include "Packet.h"#include <list>//////////////////////////////////////////////////////////////////////////////// class RideMotorcycleInfo;//////////////////////////////////////////////////////////////////////////////class RideMotorcycleInfo {public:	RideMotorcycleInfo () throw ();	~RideMotorcycleInfo () throw ();	public:    void read (SocketInputStream & iStream) throw (ProtocolException, Error);    void write (SocketOutputStream & oStream) const throw (ProtocolException, Error);	PacketSize_t getSize() throw ();	static uint getMaxSize() throw() 	{		return szObjectID +  // motorcycle object id			szItemType +  // motorcycle type			szBYTE + 255 + // motorcycle option type			szBYTE + // number of item in motorcycle inventory			RideMotorcycleSlotInfo::getMaxSize()* 60;	}	string toString () const throw ();public:	void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; }	ObjectID_t getObjectID() const throw() { return m_ObjectID; }	void setItemType(ItemType_t ItemType) throw() { m_ItemType = ItemType; }	ItemType_t getItemType() const throw() { return m_ItemType; }	void addOptionType(OptionType_t OptionType) throw() { m_OptionType.push_back( OptionType ); }	void setOptionType(const list<OptionType_t>& OptionType) throw() { m_OptionType = OptionType; }	int getOptionTypeSize() const throw()	{ return m_OptionType.size(); }	const list<OptionType_t>& getOptionType() const throw() { return m_OptionType; }	OptionType_t popOptionType() throw()	{		if (m_OptionType.empty()) return 0;        OptionType_t optionType = m_OptionType.front();        m_OptionType.pop_front();	    return optionType;	}public:	BYTE getListNum() const throw() { return m_ListNum; }	void setListNum(BYTE ListNum) throw() { m_ListNum = ListNum; }	void addListElement(RideMotorcycleSlotInfo* pRideMotorcycleSlotInfo) throw() { m_RideMotorcycleSlotInfoList.push_back(pRideMotorcycleSlotInfo); }	void clearList() throw() { m_RideMotorcycleSlotInfoList.clear(); m_ListNum = 0; }	RideMotorcycleSlotInfo* popFrontListElement() throw() 	{ 		RideMotorcycleSlotInfo* TempRideMotorcycleSlotInfo = m_RideMotorcycleSlotInfoList.front(); m_RideMotorcycleSlotInfoList.pop_front(); return TempRideMotorcycleSlotInfo; 	}private:	ObjectID_t   		m_ObjectID;   // motorcycle object id	ItemType_t   		m_ItemType;   // motorcycle item type	list<OptionType_t> 	m_OptionType; // motorcycle option type	BYTE         		m_ListNum;    // number of item in motorcycle inventory	// actual item info in motorcycle inventory	list<RideMotorcycleSlotInfo*> m_RideMotorcycleSlotInfoList;};#endif

⌨️ 快捷键说明

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