📄 worldinfo.h
字号:
//////////////////////////////////////////////////////////////////////// // Filename : WorldInfo.h // Written By : elca@ewestsoft.com// Description : 牢亥配府 酒捞袍狼 沥焊甸// //////////////////////////////////////////////////////////////////////#ifndef __WORLD_INFO_H__#define __WORLD_INFO_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"////////////////////////////////////////////////////////////////////////// class WorldInfo;//// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶////////////////////////////////////////////////////////////////////////class WorldInfo {public : // constructor WorldInfo () throw (); // destructor ~WorldInfo () throw ();public : // 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促. void read (SocketInputStream & iStream) throw (ProtocolException, Error); // 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促. void write (SocketOutputStream & oStream) const throw (ProtocolException, Error); // get packet's body size // 弥利拳矫, 固府 拌魂等 沥荐甫 荤侩茄促. PacketSize_t getSize () throw (); static uint getMaxSize() throw() { return (szBYTE + szBYTE + 20 + szBYTE)* 37; } // get packet's debug string string toString () const throw (); // get / set ID BYTE getID() const throw() { return m_ID; } void setID(WorldID_t ID) throw() { m_ID = ID; } // get / set Name string getName() const throw() { return m_Name; } void setName(string Name) throw() { m_Name = Name; } // get / set Stat BYTE getStat() const throw() { return m_Stat; } void setStat(BYTE Stat) throw() { m_Stat = Stat; }private : // 弊缝 酒捞叼 WorldID_t m_ID; // 弊缝 捞抚 string m_Name; // 弊缝狼 惑怕 BYTE m_Stat;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -