~ubuntu-branches/ubuntu/precise/triplea/precise

« back to all changes in this revision

Viewing changes to src/games/strategy/engine/random/IRemoteDiceServer.java

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-11-11 21:40:11 UTC
  • Revision ID: package-import@ubuntu.com-20111111214011-sehf2rwat36o2xqf
Tags: upstream-1.3.2.2
ImportĀ upstreamĀ versionĀ 1.3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package games.strategy.engine.random;
 
2
 
 
3
import java.io.IOException;
 
4
import java.lang.reflect.InvocationTargetException;
 
5
 
 
6
public interface IRemoteDiceServer
 
7
{
 
8
    
 
9
    /**
 
10
     * Post a request to the dice server, and return the resulting html page as a string 
 
11
     */
 
12
    public String postRequest(String player1, String player2, int max, int numDice, String text, String gameID, String gameUUID) throws IOException;
 
13
    
 
14
    
 
15
    /**
 
16
     * Given the html page returned from postRequest, return the dice []
 
17
     * 
 
18
     *  throw an InvocationTargetException to indicate an error message to be returned
 
19
     */
 
20
    public int[] getDice(String string, int count) throws IOException, InvocationTargetException;
 
21
    
 
22
    
 
23
    /**
 
24
     * Get the display name for this dice server
 
25
     */
 
26
    public String getName();
 
27
 
 
28
}
 
 
b'\\ No newline at end of file'