View Javadoc

1   package net.sourceforge.simplegamenet.framework.transport;
2   
3   interface PacketCodes {
4   
5       public static final int CON_CLIENT_CON_OPEN = 0x01100100;
6       public static final int E_CON_BANNED = 0xF0100100;
7       public static final int E_CON_CLIENT_CON_OPEN = 0xF0100101;
8       public static final int CON_SERVER_CON_OPEN = 0x00100200;
9       public static final int CON_SGN_VERSION = 0x01100300;
10      public static final int E_CON_CLIENT_SGN_VERSION = 0xF0100300;
11      public static final int E_CON_SERVER_SGN_VERSION = 0xF0100301;
12      public static final int GAME_OPEN = 0x00200400;
13      public static final int E_GAME_NOT_FOUND = 0xF1200400;
14      public static final int E_GAME_CLIENT_GAME_VERSION = 0xF1200401;
15      public static final int E_GAME_SERVER_GAME_VERSION = 0xF1200402;
16      public static final int CON_LOGIN_NICKNAME = 0x01100600;
17      public static final int E_CON_LOGIN = 0xF0100600;
18      public static final int CON_LOGIN_DATA = 0x00100700;
19  
20      public static final int CON_CLIENT_PING = 0x01100900;
21      public static final int CON_SERVER_PONG = 0x00100900;
22      public static final int CON_SERVER_PING = 0x00100901;
23      public static final int CON_CLIENT_PONG = 0x01100901;
24  
25      public static final int CHAT_ASK_MESSAGE = 0x01300A00;
26      public static final int E_CHAT_MESSAGE = 0xF0300A00;
27      public static final int CHAT_GRANT_MESSAGE = 0x00300A00;
28  
29      public static final int GAME_CHANGE_GAME_SETTINGS = 0x01200B00;
30      public static final int E_GAME_CHANGE_GAME_SETTINGS_GAME_IN_PROGRESS = 0xF0200B00;
31      public static final int E_GAME_CHANGE_GAME_SETTINGS_NOT_ACCEPTED = 0xF0200B01;
32      public static final int GAME_UPDATE_GAME_SETTINGS = 0x00200B00;
33  
34      public static final int CON_ADD_PLAYER = 0x00100800;
35  
36      public static final int GAME_CHANGE_PLAYER_SETTINGS = 0x01200C00;
37      public static final int E_GAME_CHANGE_PLAYER_SETTINGS_GAME_IN_PROGRESS = 0xF0200C00;
38      public static final int E_GAME_CHANGE_PLAYER_SETTINGS_NOT_ACCEPTED = 0xF0200C01;
39      public static final int GAME_UPDATE_PLAYER_SETTINGS = 0x00200C00;
40  
41      public static final int CON_CLIENT_CON_CLOSE = 0x0110F000;
42      public static final int CON_REMOVE_PLAYER_BY_LEFT = 0x0010F000;
43      public static final int CON_KICK = 0x0010F100;
44      public static final int CON_REMOVE_PLAYER_BY_KICK = 0x0010F101;
45      public static final int CON_BAN = 0x0010F200;
46      public static final int CON_REMOVE_PLAYER_BY_BAN = 0x0010F201;
47      public static final int CON_REMOVE_PLAYER_BY_DISCONNECTION = 0x0010F301;
48      public static final int E_CON_CLIENT_VIOLATION = 0xF010F400;
49      public static final int CON_REMOVE_PLAYER_BY_CLIENT_VIOLATION = 0x0010F401;
50      public static final int E_CON_SERVER_VIOLATION = 0xF110F500;
51      public static final int CON_REMOVE_PLAYER_BY_SERVER_VIOLATION = 0x0010F501;
52      public static final int CON_SERVER_CON_CLOSE = 0x0010FF00;
53  
54      public static final int GAME_CLIENT_START_GAME = 0x01200D00;
55      public static final int E_GAME_CLIENT_START_GAME = 0xF0200D00;
56      public static final int GAME_SERVER_GAME_STARTED = 0x00200D00;
57  
58      public static final int GAME_CLIENT_SEND_DATA = 0x01201000;
59      public static final int GAME_SERVER_SEND_DATA = 0x00201000;
60  
61      public static final int GAME_CLIENT_ABORT_GAME = 0x01200F01;
62      public static final int E_GAME_CLIENT_ABORT_GAME = 0xF0200F01;
63      public static final int GAME_SERVER_GAME_STOPPING = 0x00200F10;
64      public static final int GAME_SERVER_GAME_ABORTING = 0x00200F11;
65      public static final int GAME_CLIENT_CONFIRM_GAME_STOPPING = 0x01200F10;
66      public static final int GAME_CLIENT_CONFIRM_GAME_ABORTING = 0x01200F11;
67      public static final int GAME_SERVER_GAME_ENDED = 0x00200F22;
68  
69  }