games.strategy.engine.random
Interface IRemoteDiceServer

All Known Implementing Classes:
PropertiesDiceRoller

public interface IRemoteDiceServer


Method Summary
 int[] getDice(java.lang.String string, int count)
          Given the html page returned from postRequest, return the dice [] throw an InvocationTargetException to indicate an error message to be returned
 java.lang.String getName()
          Get the display name for this dice server
 java.lang.String postRequest(java.lang.String player1, java.lang.String player2, int max, int numDice, java.lang.String text, java.lang.String gameID, java.lang.String gameUUID)
          Post a request to the dice server, and return the resulting html page as a string
 

Method Detail

postRequest

java.lang.String postRequest(java.lang.String player1,
                             java.lang.String player2,
                             int max,
                             int numDice,
                             java.lang.String text,
                             java.lang.String gameID,
                             java.lang.String gameUUID)
                             throws java.io.IOException
Post a request to the dice server, and return the resulting html page as a string

Throws:
java.io.IOException

getDice

int[] getDice(java.lang.String string,
              int count)
              throws java.io.IOException,
                     java.lang.reflect.InvocationTargetException
Given the html page returned from postRequest, return the dice [] throw an InvocationTargetException to indicate an error message to be returned

Throws:
java.io.IOException
java.lang.reflect.InvocationTargetException

getName

java.lang.String getName()
Get the display name for this dice server