VASSAL.build.module
Class InternetDiceButton
java.lang.Object
|
+--VASSAL.build.AbstractBuildable
|
+--VASSAL.build.AbstractConfigurable
|
+--VASSAL.build.module.DiceButton
|
+--VASSAL.build.module.InternetDiceButton
- All Implemented Interfaces:
- AutoConfigurable, Buildable, CommandEncoder, Configurable, GameComponent
- public class InternetDiceButton
- extends DiceButton
- implements GameComponent, CommandEncoder
This component places a button into the controls window toolbar.
Pressing the button generates random numbers and displays the
result in the Chatter
| Fields inherited from class VASSAL.build.module.DiceButton |
BUTTON_TEXT, DEPRECATED_NAME, HOTKEY, ICON, launch, N_DICE, N_SIDES, NAME, nDice, nSides, plus, PLUS, PROMPT_ALWAYS, promptAlways, ran, REPORT_TOTAL, reportTotal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dieManager
protected static DieManager dieManager
InternetDiceButton
public InternetDiceButton()
getConfigureTypeName
public static java.lang.String getConfigureTypeName()
DR
protected void DR()
- Ask the die manager to do our roll!
- Overrides:
DR in class DiceButton
addTo
public void addTo(Buildable parent)
- Expects to be added to the DieManager.
- Overrides:
addTo in class DiceButton
initDieManager
protected void initDieManager()
removeFrom
public void removeFrom(Buildable b)
- Description copied from interface:
Configurable
- Remove this component from its parent
- Overrides:
removeFrom in class DiceButton
setup
public void setup(boolean gameStarting)
- Description copied from interface:
GameComponent
- Notify the GameComponent that a game has started/ended
- Specified by:
setup in interface GameComponent
- Following copied from interface:
VASSAL.build.module.GameComponent
- Parameters:
gameStarting - if true, a game is starting. If false, then a game is ending
getRestoreCommand
public Command getRestoreCommand()
- Description copied from interface:
GameComponent
- When saving a game, each GameComponent should return a
Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null
- Specified by:
getRestoreCommand in interface GameComponent
decode
public Command decode(java.lang.String command)
- Description copied from interface:
CommandEncoder
- Translate a String into a
Command
- Specified by:
decode in interface CommandEncoder
encode
public java.lang.String encode(Command c)
- Description copied from interface:
CommandEncoder
- Translate a
Command into a String
- Specified by:
encode in interface CommandEncoder
getHelpFile
public HelpFile getHelpFile()
- Overrides:
getHelpFile in class DiceButton
- Following copied from interface:
VASSAL.build.Configurable
- Returns:
- a HelpFilte describing how to use and configure
this component