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

📄 netmsg.h

📁 Visual C++ 游戏开发与设计实例 源代码(所有)
💻 H
字号:

#ifndef _NETWORK_H
#define _NETWORK_H

//////////////////////////////////////////////////////////
// Messages' definitions for communicating with clients
// Make sure to keep the values same with client's.

// preparation
#define NETMSGTK_ANSWERSEATINFO			0x4850
#define NETMSGTK_ASKSEATINFO			0x4050
#define NETMSGTK_ASKGROUPINFO			0x4004
#define NETMSGTK_ANSWERGROUPINFO		0x4804

#define NETMSGTK_WAITMOREPLAYER			0x4451
#define NETMSGTK_MOREPLAYER				0x4454

#define NETMSGTK_GAMEREADY				0x4808
#define NETMSGTK_PLAYERREADY			0x4008

#define NETMSGTK_GAMESTART				0x4807
#define NETMSGTK_GAMEEND				0x4007

#define NETMSGTK_TEAMVICTORY			0x4458
// command
#define NETMSGTK_CMDINFO				0x4409
#define NETMSGTK_CMDTIMEOUT				0x440A
#define NETMSGTK_CMDFOODCREATE			0x4410
#define NETMSGTK_CMDFOODDELETE			0x4411

// exception
#define NETMSGTK_PLAYERERROR			0x4452
#define NETMSGTK_SERVERERROR			0x4453

#define NETMSGTK_PLAYERQUIT				0x400B
#define NETMSGTK_QUITOK					0x480B

#define NETMSGTK_WAITTIMEOUT			0x4406

#define NETMSGTK_SERVERSHUT				0x440D

//////////////////////////////////////////////////////////
// Status about players and tables 

// player
#define PLASTAT_UNUSED					0x0000
#define PLASTAT_WAITOTHER				0x1005
#define PLASTAT_READY					0x1006
#define PLASTAT_PLAY					0x1001
#define PLASTAT_IDLE					0x1007
#define PLASTAT_WATCH					0x1002
#define PLASTAT_QUIT					0x1003

// table
#define TABSTAT_UNUSED					0x0000
#define TABSTAT_WAITMORE				0x2001
#define TABSTAT_WAITREADY				0x2003
#define TABSTAT_READY					0x2004
#define TABSTAT_PLAY					0x2002
#define TABSTAT_WAITCONT				0x2005


#endif	// _NETWORK_H

⌨️ 快捷键说明

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