View Javadoc

1   /*
2    * IdMessages.java 
3    * Created on 31 oct. 2003
4    * 
5    *   Magic-Project is a turn based strategy simulator
6    *   Copyright (C) 2003-2007 Fabrice Daugan
7    *
8    *   This program is free software; you can redistribute it and/or modify it 
9    * under the terms of the GNU General Public License as published by the Free 
10   * Software Foundation; either version 2 of the License, or (at your option) any
11   * later version.
12   *
13   *   This program is distributed in the hope that it will be useful, but WITHOUT 
14   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15   * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
16   * details.
17   *
18   *   You should have received a copy of the GNU General Public License along  
19   * with this program; if not, write to the Free Software Foundation, Inc., 
20   * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 }