|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgames.strategy.engine.random.PropertiesDiceRoller
public class PropertiesDiceRoller
A pbem dice roller that reads its configuration from a properties file
| Constructor Summary | |
|---|---|
PropertiesDiceRoller(java.util.Properties props)
|
|
| 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 |
getWebText()
|
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 |
boolean |
sendsEmail()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesDiceRoller(java.util.Properties props)
| Method Detail |
|---|
public java.lang.String getName()
IRemoteDiceServer
getName in interface IRemoteDiceServerpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean sendsEmail()
public 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
IRemoteDiceServer
postRequest in interface IRemoteDiceServerjava.io.IOExceptionpublic java.lang.String getWebText()
public int[] getDice(java.lang.String string,
int count)
throws java.io.IOException,
java.lang.reflect.InvocationTargetException
IRemoteDiceServer
getDice in interface IRemoteDiceServerjava.io.IOException - if there was an error parsing the string
java.lang.reflect.InvocationTargetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||