View Javadoc

1   /*
2    * AI Soccer Project - network gaming environment for AI warriors.
3    * Copyright (C) 2001-2004  Marcin Werla, Pawel Widera
4    *
5    * This program is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU General Public License
7    * as published by the Free Software Foundation; either version 2
8    * of the License, or (at your option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, you can find it here:
17   * http://www.gnu.org/licenses/gpl.html
18   */
19  
20  package snifos.common.test;
21  
22  
23  /***
24   * This interface contains requests and reponses used by dummy implementations
25   * of application and communication module.
26   * @version $Id: DummyMessages.java,v 1.2 2004/05/08 21:55:31 mwerla Exp $
27   */
28  public interface DummyMessages {
29      /*** Dummy client requests */
30      public static final String[] requests = {
31          "<message type=\"hello\" id=\"1\">" + "<mod-type>player</mod-type>" +
32          "<name>Wymiatacz</name>" + "</message>",
33          
34          "<message type=\"confirmation\" id=\"2\">" + "<accepted/>" +
35          "</message>"
36      };
37  
38      /*** Dummy application responses */
39      public static final String[] responses = {
40          "<message type=\"confirmation\" id=\"1\">" + "<accepted/>" +
41          "</message>",
42          
43          "<message type=\"params\" id=\"2\">" +
44          "<map width=\"10\" height=\"8\" goal=\"2\"/>" +
45          "<attack side=\"1\" begin=\"true\"/>" + "</message>"
46      };
47  }