📄 gameserverinfo.h
字号:
//----------------------------------------------------------------------//// Filename : GameServerInfo.h// Written By : Reiot// Description : 肺弊牢 辑滚俊辑 爱绊 乐绰 阿 霸烙 辑滚俊 措茄 沥焊////----------------------------------------------------------------------#ifndef __GAME_SERVER_INFO_H__#define __GAME_SERVER_INFO_H__// include files#include "Types.h"#include "Exception.h"#include "StringStream.h"//----------------------------------------------------------------------//// class GameServerInfo;//// GAME DB狼 GameServerInfo 抛捞喉俊辑 佬绢甸牢 阿 霸烙 辑滚狼 沥焊甫// 淬篮 努贰胶捞促.////----------------------------------------------------------------------class GameServerInfo {public : // get/set GameServerID ServerID_t getServerID() const throw() { return m_ServerID; } void setServerID( ServerID_t ServerID ) throw() { m_ServerID = ServerID; } // get/set host name string getNickname () const throw () { return m_Nickname; } void setNickname ( string nickname ) throw () { m_Nickname = nickname; } // get/set ip address string getIP () const throw () { return m_IP; } void setIP ( string ip ) throw () { m_IP = ip; } // get/set port uint getTCPPort () const throw () { return m_TCPPort; } void setTCPPort ( uint port ) throw () { m_TCPPort = port; } // get/set UDP port uint getUDPPort () const throw () { return m_UDPPort; } void setUDPPort ( uint port ) throw () { m_UDPPort = port; } // get/set GameServerGroupID ServerGroupID_t getGroupID() const throw() { return m_GroupID; } void setGroupID( ServerGroupID_t GroupID ) { m_GroupID = GroupID; } // get/set GameWorldID WorldID_t getWorldID() const throw() { return m_WorldID; } void setWorldID( WorldID_t WorldID ) { m_WorldID= WorldID; } // get/set ServerStat ServerStatus getServerStat() const throw() { return m_ServerStat; } void setServerStat( ServerStatus Stat ) throw() { m_ServerStat = Stat; } // get debug string string toString () const throw () { StringStream msg; msg << "GameServerInfo(" << "ServerID: " << (int)m_ServerID << ",Nickname:" << m_Nickname << ",IP: " << m_IP << ",TCPPort:" << m_TCPPort << ",UDPPort:" << m_UDPPort << ",GroupID:" << (int)m_GroupID << ",WorldID:" << (int)m_WorldID << ",ServerStat:" << (int)m_GroupID << ")"; return msg.toString(); }private : // GameServer ID ServerID_t m_ServerID; // GameServer Process's nick name string m_Nickname; // Host's IP address string m_IP; // GameServer's port uint m_TCPPort; uint m_UDPPort; // GameServerGroupID ServerGroupID_t m_GroupID; // GameServerWorld WorldID_t m_WorldID; // Server Stat ServerStatus m_ServerStat;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -