VASSAL.build.module
Class DieManager.DieServer
java.lang.Object
|
+--VASSAL.build.module.DieManager.DieServer
- Enclosing class:
- DieManager
- public abstract static class DieManager.DieServer
- extends java.lang.Object
Base DieServer Class
Does most of the work. Individual Die Servers just need to implement
buildInternetRollString(VASSAL.build.module.DieManager.RollSet) and parseInternetRollString(VASSAL.build.module.DieManager.RollSet, java.util.Vector) methods.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ran
protected java.util.Random ran
name
protected java.lang.String name
description
protected java.lang.String description
emailOnly
protected boolean emailOnly
maxRolls
protected int maxRolls
maxEmails
protected int maxEmails
serverURL
protected java.lang.String serverURL
passwdRequired
protected boolean passwdRequired
password
protected java.lang.String password
useEmail
protected boolean useEmail
primaryEmail
protected java.lang.String primaryEmail
secondaryEmail
protected java.lang.String secondaryEmail
canDoSeperateDice
protected boolean canDoSeperateDice
DieManager.DieServer
public DieManager.DieServer()
buildInternetRollString
public abstract java.lang.String[] buildInternetRollString(DieManager.RollSet mr)
parseInternetRollString
public abstract void parseInternetRollString(DieManager.RollSet rollSet,
java.util.Vector results)
roll
public abstract void roll(DieManager.RollSet mr,
FormattedString format)
getnDiceList
public int[] getnDiceList()
getnSideList
public int[] getnSideList()
getName
public java.lang.String getName()
getDescription
public java.lang.String getDescription()
isPasswdRequired
public boolean isPasswdRequired()
getPasswd
public java.lang.String getPasswd()
setPasswd
public void setPasswd(java.lang.String s)
setPrimaryEmail
public void setPrimaryEmail(java.lang.String e)
getPrimaryEmail
public java.lang.String getPrimaryEmail()
setSecondaryEmail
public void setSecondaryEmail(java.lang.String e)
getSecondaryEmail
public java.lang.String getSecondaryEmail()
setUseEmail
public void setUseEmail(boolean use)
getUseEmail
public boolean getUseEmail()
getMaxEmails
public int getMaxEmails()
getReportPrefix
protected java.lang.String getReportPrefix(java.lang.String d)
- The text reported before the results of the roll
getReportSuffix
protected java.lang.String getReportSuffix()
- Deprecated.
- The text reported after the results of the roll;
doInbuiltRoll
public void doInbuiltRoll(DieManager.RollSet mroll)
doInternetRoll
public void doInternetRoll(DieManager.RollSet mroll,
FormattedString format)
formatResult
protected java.lang.String formatResult(java.lang.String description,
java.lang.String result,
FormattedString format)
- Use the configured FormattedString to format the result of a roll
- Parameters:
result - - Returns:
-
reportResult
public void reportResult(DieManager.RollSet mroll,
FormattedString format)
doIRoll
public void doIRoll(DieManager.RollSet toss)
throws java.io.IOException