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

📄 global.h

📁 一个小游戏五子棋的浙江大学开发我的课程设计
💻 H
字号:
//	global file
//	declaration of user-defined types and defination of constants

#ifndef __SXD_GOBANG_GLOBAL__
#define __SXD_GOBANG_GLOBAL__

typedef  enum { PLAY, RESTART, EXIT } ACTIONTYPE;
typedef  struct {	
					unsigned int UserID; 
					ACTIONTYPE  Action; 
					unsigned int  ActionInfo;
				} ACTION;
typedef  struct { 
					bool GameEnd;  
					unsigned int NextPlayerID;
				} GAMERESULT;

// communication language between server and client
const int OK=0;
const int FAILED=1;

const int QUERY_USERS=100;
const int ENTER_ROOM=101;
const int EXIT_ROOM=102;
const int USER_ACTION=103;
const int REGISTER_USER=104;
const int QUERY_BOARD=105;
const int LOGOUT=106;


#endif
									

⌨️ 快捷键说明

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