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.


Field Summary
protected  boolean canDoSeperateDice
           
protected  java.lang.String description
           
protected  boolean emailOnly
           
protected  int maxEmails
           
protected  int maxRolls
           
protected  java.lang.String name
           
protected  boolean passwdRequired
           
protected  java.lang.String password
           
protected  java.lang.String primaryEmail
           
protected  java.util.Random ran
           
protected  java.lang.String secondaryEmail
           
protected  java.lang.String serverURL
           
protected  boolean useEmail
           
 
Constructor Summary
DieManager.DieServer()
           
 
Method Summary
abstract  java.lang.String[] buildInternetRollString(DieManager.RollSet mr)
           
 void doInbuiltRoll(DieManager.RollSet mroll)
           
 void doInternetRoll(DieManager.RollSet mroll)
           
 void doIRoll(DieManager.RollSet toss)
           
 java.lang.String getDescription()
           
 int getMaxEmails()
           
 java.lang.String getName()
           
 int[] getnDiceList()
           
 int[] getnSideList()
           
 java.lang.String getPasswd()
           
 java.lang.String getPrimaryEmail()
           
protected  java.lang.String getReportPrefix(java.lang.String d)
          The text reported before the results of the roll
protected  java.lang.String getReportSuffix()
          The text reported after the results of the roll;
 java.lang.String getSecondaryEmail()
           
 boolean getUseEmail()
           
 boolean isPasswdRequired()
           
abstract  void parseInternetRollString(DieManager.RollSet rollSet, java.util.Vector results)
           
 void reportResult(DieManager.RollSet mroll)
           
abstract  void roll(DieManager.RollSet mr)
           
 void setPasswd(java.lang.String s)
           
 void setPrimaryEmail(java.lang.String e)
           
 void setSecondaryEmail(java.lang.String e)
           
 void setUseEmail(boolean use)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DieManager.DieServer

public DieManager.DieServer()
Method Detail

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)

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()
The text reported after the results of the roll;

doInbuiltRoll

public void doInbuiltRoll(DieManager.RollSet mroll)

doInternetRoll

public void doInternetRoll(DieManager.RollSet mroll)

reportResult

public void reportResult(DieManager.RollSet mroll)

doIRoll

public void doIRoll(DieManager.RollSet toss)
             throws java.io.IOException