📄 msgtype.java
字号:
public interface MsgType
{
int PORT=4444; // Server // Client
static final int REGISTER = 1; // format : msg_id user_id password *****
static final int REGFAIL = 2; // format : ****** msg_id
static final int REGOK = 3; // format : ****** msg_id
static final int LOGON = 4; // format : msg_id user_id password msg_id user_id user_score
static final int WRONGPASSWD= 5; // format : ****** msg_id
static final int PASSWDOK = 6; // format : ****** msg_id
static final int ONLINE = 7; // format : ****** msg_id
static final int SENDLIST = 8; // format : ****** msg_id list
static final int LOGOUT = 9; // format : msg_id user_id
static final int GAMEEND = 10; // format : msg_id user1 user2
static final int REQUEST = 11; // format : msg_id from_user to_user msg_id from_user
static final int ACCEPT = 12; // format : msg_id from_user to_user msg_id
static final int REFUSE = 13; // format : msg_id to_user msg_id
static final int PUTCHESS = 14; // format : msg_id to_user row column msg_id row column
static final int CHAT = 15; // format : msg_id from_user to_user msg msg_id from_user to_user msg
static final int WIN = 16; // format : msg_id from_user to_user msg_id
static final int LOSS = 17; // format : msg_id from_user to_user msg_id
static final int DRAW = 18; // format : msg_id to_user msg_id
static final int DRAWOK = 19; // format : msg_id to_user msg_id
static final int DRAWFAIL = 20; // format : msg_id to_user msg_id
static final int GAMESTART = 21; // format : msg_id user1 user2
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -