Class DieServer

java.lang.Object
VASSAL.build.module.dice.DieServer
All Implemented Interfaces:
Auditable
Direct Known Subclasses:
BonesDiceServer, ShadowDiceDieServer

public abstract class DieServer extends Object implements Auditable
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 Details Link icon

    • ran Link icon

      protected Random ran
    • name Link icon

      protected String name
    • description Link icon

      protected String description
    • emailOnly Link icon

      protected boolean emailOnly
    • maxRolls Link icon

      protected int maxRolls
    • maxEmails Link icon

      protected int maxEmails
    • serverURL Link icon

      protected String serverURL
    • passwdRequired Link icon

      protected boolean passwdRequired
    • password Link icon

      protected String password
    • useEmail Link icon

      protected boolean useEmail
    • primaryEmail Link icon

      protected String primaryEmail
    • secondaryEmail Link icon

      protected String secondaryEmail
    • canDoSeparateDice Link icon

      protected boolean canDoSeparateDice
  • Constructor Details Link icon

    • DieServer Link icon

      public DieServer()
  • Method Details Link icon

    • buildInternetRollString Link icon

      public abstract String[] buildInternetRollString(RollSet mr)
    • parseInternetRollString Link icon

      public abstract void parseInternetRollString(RollSet rollSet, Vector<String> results)
    • roll Link icon

      public abstract void roll(RollSet mr, FormattedString format)
    • getnDiceList Link icon

      public int[] getnDiceList()
    • getnSideList Link icon

      public int[] getnSideList()
    • getName Link icon

      public String getName()
    • getDescription Link icon

      public String getDescription()
    • isPasswdRequired Link icon

      public boolean isPasswdRequired()
    • getPasswd Link icon

      public String getPasswd()
    • setPasswd Link icon

      public void setPasswd(String s)
    • setPrimaryEmail Link icon

      public void setPrimaryEmail(String e)
    • getPrimaryEmail Link icon

      public String getPrimaryEmail()
    • setSecondaryEmail Link icon

      public void setSecondaryEmail(String e)
    • getSecondaryEmail Link icon

      public String getSecondaryEmail()
    • setUseEmail Link icon

      public void setUseEmail(boolean use)
    • getUseEmail Link icon

      public boolean getUseEmail()
    • getMaxEmails Link icon

      public int getMaxEmails()
    • getReportPrefix Link icon

      protected String getReportPrefix(String d)
      The text reported before the results of the roll
    • doInternetRoll Link icon

      public void doInternetRoll(RollSet mroll, FormattedString format)
    • formatResult Link icon

      protected String formatResult(String description, String result, FormattedString format)
      Use the configured FormattedString to format the result of a roll
      Parameters:
      description - Roll Description
      result - Roll Result
      format - Report Format
      Returns:
      Formatted roll result
    • reportResult Link icon

      public void reportResult(RollSet mroll, FormattedString format)
    • doIRoll Link icon

      public void doIRoll(RollSet toss) throws IOException
      Throws:
      IOException
    • extractEmail Link icon

      public String extractEmail(String email)