Class DieServer
java.lang.Object
VASSAL.build.module.dice.DieServer
- All Implemented Interfaces:
Auditable
- Direct Known Subclasses:
BonesDiceServer
,ShadowDiceDieServer
Base DieServer Class
Does most of the work. Individual Die Servers just need to implement
buildInternetRollString(VASSAL.build.module.dice.RollSet)
and parseInternetRollString(VASSAL.build.module.dice.RollSet, java.util.Vector<java.lang.String>)
methods.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String[]
void
doInternetRoll
(RollSet mroll, FormattedString format) void
extractEmail
(String email) protected String
formatResult
(String description, String result, FormattedString format) Use the configured FormattedString to format the result of a rollint
getName()
int[]
int[]
protected String
The text reported before the results of the rollboolean
boolean
abstract void
parseInternetRollString
(RollSet rollSet, Vector<String> results) void
reportResult
(RollSet mroll, FormattedString format) abstract void
roll
(RollSet mr, FormattedString format) void
void
void
void
setUseEmail
(boolean use) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.script.expression.Auditable
getComponentName, getComponentTypeName
-
Field Details
-
ran
-
name
-
description
-
emailOnly
protected boolean emailOnly -
maxRolls
protected int maxRolls -
maxEmails
protected int maxEmails -
serverURL
-
passwdRequired
protected boolean passwdRequired -
password
-
useEmail
protected boolean useEmail -
-
secondaryEmail
-
canDoSeparateDice
protected boolean canDoSeparateDice
-
-
Constructor Details
-
DieServer
public DieServer()
-
-
Method Details
-
buildInternetRollString
-
parseInternetRollString
-
roll
-
getnDiceList
public int[] getnDiceList() -
getnSideList
public int[] getnSideList() -
getName
-
getDescription
-
isPasswdRequired
public boolean isPasswdRequired() -
getPasswd
-
setPasswd
-
setPrimaryEmail
-
getPrimaryEmail
-
setSecondaryEmail
-
getSecondaryEmail
-
setUseEmail
public void setUseEmail(boolean use) -
getUseEmail
public boolean getUseEmail() -
getMaxEmails
public int getMaxEmails() -
getReportPrefix
-
doInternetRoll
-
formatResult
Use the configured FormattedString to format the result of a roll- Parameters:
description
- Roll Descriptionresult
- Roll Resultformat
- Report Format- Returns:
- Formatted roll result
-
reportResult
-
doIRoll
- Throws:
IOException
-
extractEmail
-