net.sf.groovydice.plugin.builtin
Class DiceExpressionPlugin
java.lang.Object
net.sf.groovydice.plugin.builtin.DiceExpressionPlugin
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class DiceExpressionPlugin
- extends Object
- implements groovy.lang.GroovyObject
This plugin adds support to dice expressions like '1.d6'.
- Since:
- 1.3
- Version:
- 2
- Author:
- Daniel F.
Martins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiceExpressionPlugin
public DiceExpressionPlugin()
getConfig
public Object getConfig()
setConfig
public void setConfig(Object value)
getOnInitialize
public Object getOnInitialize()
setOnInitialize
public void setOnInitialize(Object value)
getDynamicMethods
public Object getDynamicMethods()
setDynamicMethods
public void setDynamicMethods(Object value)
rollCommand
public Object rollCommand(Object sides,
Object rolls)
- Create and roll a dice rolling command.
- Parameters:
sides
- Number of sides of the dice.rolls
- Number of dice to roll.
- Returns:
- The dice rolling command .
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String name,
Object args)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String name,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
Copyright © 2008-2010 Daniel F. Martins. All Rights Reserved.