1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package net.sf.magicproject.network;
23
24 /***
25 * @author Fabrice Daugan
26 * @since 0.2c
27 */
28 public interface IdMessages {
29
30 /***
31 * Comment for <code>MSG_CHOICE</code>
32 */
33 byte MSG_CHOICE = 1;
34
35 /***
36 * Comment for <code>MSG_CLICK_CARD</code>
37 */
38 byte MSG_CLICK_CARD = 2;
39
40 /***
41 * Comment for <code>MSG_DISCONNECT</code>
42 */
43 byte MSG_DISCONNECT = 3;
44
45 /***
46 * Comment for <code>MSG_CLICK_MANA</code>
47 */
48 byte MSG_CLICK_MANA = 4;
49
50 /***
51 * Comment for <code>MSG_CLICK_PLAYER</code>
52 */
53 byte MSG_CLICK_PLAYER = 5;
54
55 /***
56 * Comment for <code>REPLACEMENT_ANSWER</code>
57 */
58 byte REPLACEMENT_ANSWER = 6;
59
60 /***
61 * Comment for <code>MOVE_ORDER_ANSWER</code>
62 */
63 byte MOVE_ORDER_ANSWER = 7;
64
65 /***
66 * Code identifying an 16 bits integer answer.
67 */
68 byte INTEGER_ANSWER = 9;
69
70 /***
71 * Comment for <code>MSG_ANSWER</code>
72 */
73 byte MSG_ANSWER = 10;
74
75 /***
76 * Comment for <code>MSG_SKIP</code>
77 */
78 byte MSG_SKIP = 11;
79
80 /***
81 * Comment for <code>ID_BEGIN_MESSAGE_DATA</code>
82 */
83 byte BEGIN_MESSAGE_DATA = 12;
84
85 /***
86 * Comment for <code>ID_END_MESSAGE_DATA</code>
87 */
88 byte END_MESSAGE_DATA = 13;
89
90 /***
91 * Comment for <code>ID_BEGIN_GAME_DATA</code>
92 */
93 byte BEGIN_GAME_DATA = 14;
94
95 /***
96 * Comment for <code>ID_END_GAME_DATA</code>
97 */
98 byte END_GAME_DATA = 15;
99
100 /***
101 * Comment for <code>MSG_CLICK_ABILITY</code>
102 */
103 byte MSG_CLICK_ABILITY = 16;
104
105 /***
106 * Comment for <code>MSG_CLICK_TRIGGERED_CARD</code>
107 */
108 byte MSG_CLICK_TRIGGERED_CARD = 17;
109
110 /***
111 * Comment for <code>COLOR_ANSWER</code>
112 */
113 byte COLOR_ANSWER = 18;
114
115 /***
116 * Comment for <code>TRIGGERED_CARD_CHOICE</code>
117 */
118 byte TRIGGERED_CARD_CHOICE = 19;
119
120 /***
121 * An Choosen action choice.
122 */
123 byte MSG_CLICK_ACTION = 20;
124
125 /***
126 * An Mana choice.
127 */
128 byte CLICK_MANA = 21;
129
130 /***
131 * Comment for <code>ZONE_ANSWER</code>
132 */
133 byte ZONE_ANSWER = 22;
134
135 /***
136 * Comment for <code>PROPERTY_ANSWER</code>
137 */
138 byte PROPERTY_ANSWER = 23;
139
140 /***
141 * Comment for <code>STR_PASSWD</code>
142 */
143 String STR_PASSWD = "?PASSWD?";
144
145 /***
146 * Comment for <code>STR_OK</code>
147 */
148 String STR_OK = "OK";
149
150 /***
151 * Comment for <code>STR_NOPASSWD</code>
152 */
153 String STR_NOPASSWD = "";
154
155 /***
156 * Comment for <code>STR_WRONGPASSWD</code>
157 */
158 String STR_WRONGPASSWD = "WRONGPASSWD";
159
160 /***
161 * The wrong version message.
162 */
163 String STR_WRONGVERSION = "WRONGVERSION";
164
165 /***
166 * Comment for <code>STR_DISCONNECT</code>
167 */
168 String STR_DISCONNECT = "?DISCONNECT?";
169
170 /***
171 * Comment for <code>STR_NEED_ACK</code>
172 */
173 String STR_NEED_ACK = "?";
174
175 /***
176 * Comment for <code>STR_DONE</code>
177 */
178 String STR_DONE = "DONE";
179
180 /***
181 * Comment for <code>MAX_PLAYERS</code>
182 */
183 int MAX_PLAYERS = 4;
184
185 /***
186 * Comment for <code>TIME_OUT</code>
187 */
188 int TIME_OUT = 2000;
189 }